Jump to content

Registering default mod prefab error on character mod.


Recommended Posts

@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

 

@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

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 by mikey99222
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...