Jump to content

want nightvision for a spider character(Dot). (need help again)


Recommended Posts

6 minutes ago, chazcat124 said:

[00:00:05]: WARNING: icon paths for mod dot (Dot, The Deep Chef) are not valid. Got icon_atlas="modicon.xml" and icon="modicon.tex".
Please ensure that these point to valid files in your mod folder, or else comment out those lines from your modinfo.lua.    

uh oh... i just saw this...
is this a problem i should be worrying about?

25 minutes ago, Omaremad74 said:
Quote

local common_postinit = function(inst) 
    inst:WatchWorldState( "isday", function() SetNightVision(inst) end)
      inst:WatchWorldState( "isdusk", function() SetNightVision(inst) end)
      inst:WatchWorldState( "isnight", function() SetNightVision(inst)  end)
    inst:WatchWorldState( "iscaveday", function() SetNightVision(inst) end)
      inst:WatchWorldState( "iscavedusk", function() SetNightVision(inst) end)
      inst:WatchWorldState( "iscavenight", SetNightVision)
    
    SetNightVision(inst)
    end

You forgot the word function() for iscavenight
 

Quote

inst:WatchWorldState( "iscavenight", function() SetNightVision end)

You also seemed to have forgotten your end command... This might fix it? Not sure

oh man, i totally didn't see this till' now.
um... uh um
 

Link to comment
Share on other sites

Uh no thats not good, haha. See on the left how the gray/red line extends all the way down? That means the common postinit hasn't been ended properly. Here let me see 

Uh you have 2 "local common_postinit = function(inst)" haha, delete one.

Link to comment
Share on other sites

this forge BG really sets the whole 'mods breaking' mood, huh?

i may, or may not have deleted the wrong thinggy earlier.

...
i'm guessing i did.

i'll CTRL Z it and then delete the top one this time.

*crosses fingers*

the game...
error messaged me...
then forced-closed a moment later...

Link to comment
Share on other sites

ok.
man, i hope DST isn't mad at me now...

image.thumb.png.a0ba136d1a4b2dab3b5395dca24f6d6e.png

if anyone's interested, here's the current(as of now) error.
i'm off to bed now, see this screen tomorrow!

image.thumb.png.b1329f08bd59b6c1adf6bba40bdcdebc.png

oh, one more thing:
to those who are curious, i highlighted the line it doesn't seem to like in that error message(line 63).

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...