mikey99222 Posted February 28, 2015 Share Posted February 28, 2015 I have three characters in this mod, i know what the "Registering default mod prefab" error is, and have beaten it before... i just cannot seem to beat it again... i can't find what is wrong with my prefabs, will attach mod and log... workshop-398761260.ziplog.txt Link to comment Share on other sites More sharing options...
rezecib Posted February 28, 2015 Share Posted February 28, 2015 @mikey99222, Hmm... That's not an error, it's something that should be getting printed out. The problem is that it crashed after that, right? Unfortunately I'm not seeing anything wrong, either... As a side note, you should pass the gender to AddModCharacter now, e.g.:AddModCharacter("attack", "ROBOT") Link to comment Share on other sites More sharing options...
mikey99222 Posted February 28, 2015 Author Share Posted February 28, 2015 @mikey99222, Hmm... That's not an error, it's something that should be getting printed out. The problem is that it crashed after that, right? Unfortunately I'm not seeing anything wrong, either... As a side note, you should pass the gender to AddModCharacter now, e.g.:AddModCharacter("attack", "ROBOT") ok, then why does it break? *i know that is like saying "my pc broke, fix it" but hey * Link to comment Share on other sites More sharing options...
mikey99222 Posted February 28, 2015 Author Share Posted February 28, 2015 (edited) so... it looks like something may be wrong in the "prefab" files like the io, attack and tank.lua... i will check EDIT: I decided to go to a mid i knew had more than 1 character (TheOrder) and copied the anim's into "modmain" and renamed them... the mod is still broken but i will look for other anomalies (however you spell it...) Second EDIT: ok i replaced (as a function) local function Health(StartRegen,amount, period) self:StopRegen() self.regen = {} self.regen.amount = 1 self.regen.period = 5 self.regen.task = self.inst:DoPeriodicTask(self.regen.period, function() self:DoRegen() end) end with inst.components.health:StartRegen(1, 0.25)(in master_postinit) i still get the [00:00:16]: Mod: workshop-398761260 (The BOTS!) Registering prefabs [00:00:16]: Mod: workshop-398761260 (The BOTS!) Registering prefab file: prefabs/io [00:00:16]: Mod: workshop-398761260 (The BOTS!) io [00:00:16]: Mod: workshop-398761260 (The BOTS!) Registering prefab file: prefabs/attack [00:00:16]: Mod: workshop-398761260 (The BOTS!) attack [00:00:16]: Mod: workshop-398761260 (The BOTS!) Registering prefab file: prefabs/tank [00:00:16]: Mod: workshop-398761260 (The BOTS!) tank [00:00:16]: Mod: workshop-398761260 (The BOTS!) Registering default mod prefab and am looking for other sources...log.txt Edited February 28, 2015 by mikey99222 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now