Sign in to follow this  
chazcat124

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

Recommended Posts

chazcat124    18
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
 

Share this post


Link to post
Share on other sites
Hornete    8361

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.

Share this post


Link to post
Share on other sites
chazcat124    18

+
| W
| E
| E
| E
| E
| e
| e
| e
 end

  end

the line doesn't stop going so it's saying 'weeeeeee'...-

it was a dumb joke :/

image.thumb.png.f4e246b289c5f28ce4091af12c415f98.png

i deleted one of the things, this looks better i think.

i think i should test it again.

Share this post


Link to post
Share on other sites
Hornete    8361
Just now, chazcat124 said:

uh oh

 

U H O H

You forgot an inst! Haha
 

Quote

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

 

Share this post


Link to post
Share on other sites
chazcat124    18

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

Share this post


Link to post
Share on other sites
chazcat124    18

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

Share this post


Link to post
Share on other sites
Ultroman    735

Look at that line and compare it to the ones above. There's something missing. Try fixing the indentation first. Might make it easier to see :)

Share this post


Link to post
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
Sign in to follow this