Jump to content

Recommended Posts

@blueberrys

i tried fixing it, then i procrastinated a bit and then forgot what i did and now the game keeps crashing everytime i try to play one of my saves and i can't find anything in the log i think and everythHING IS BROKEN OMG 

the error is contagous

log:

log.txt

mod:

dream baby cat thing.zip

Edited by The Noon Fish

@blueberrys

i tried fixing it, then i procrastinated a bit and then forgot what i did and now the game keeps crashing everytime i try to play one of my saves and i can't find anything in the log i think and everythHING IS BROKEN OMG 

the error is contagous

log:

attachicon.giflog.txt

mod:

attachicon.gifdream baby cat thing.zip

 

I found this:

 

ERROR: HWTexture::DeserializeTexture failed on MinimapFG. glGetError returned 0x505

 

@The Noon Fish, apparently it's caused when a mod is using too much memory. This mod by simplex should fix it.

Although, I think the bigger problem here might be with how you're managing your assets. (memory leak somewhere?)

Edited by Blueberrys

@The Noon Fish, in your log.txt:

error loading module 'stategraphs/SGbaby' from file '..\mods\babything\scripts\stategraphs/SGbaby.lua':..\mods\babything\scripts\stategraphs/SGbaby.lua:123: ')' expected near 'end'

Notice the part " 123: ')' expected near 'end' " ? That's the part you're looking for. It tells you that you're missing a ) symbol somewhere before "end" on line 123.

You've missed it somewhere above, check again. Computers don't make mistakes unless you (accidentally) tell them to.

Try again and search for it thoroughly at least once or twice, and if you still can't find it, I'll have a look.

Edited by Blueberrys

@Blueberrys

(this mentioning thing is kinda getting annoying)

i tried something, but it didn't work. and i don't really see anything wrong. 

dream baby cat thing.zip

Edited by The Noon Fish

@The Noon Fish, an easier way to use the mention feature, just select a portion of someone's post and click the "mention" button. It's much faster and simpler that way.

Alternately, you could just not use it if you prefer, someone will (probably) see your post eventually.

 

In your code, SGbaby line 124 and 125:

TimeEvent(5*FRAMES, PlayFootstep (inst) end),

That random "end" isn't being started anywhere by a function or if statement. That's why it's looking for a (supposedly missing) bracket.

You need to actually declare the function before it ends, haha.

"PlayFootstep" in this case is not a function. It hasn't been declared before. Even if it was, you'd simply write "PlayFootstep" and not the parameter ( "(inst)" part) or the "end".

 

Try it like this, a generic, nameless function:

TimeEvent(5*FRAMES, function(inst) end), 
Edited by Blueberrys

@Blueberrys

did that, got a new error saying

[codesyntax]

...ata/../mods/babything/scripts/stategraphs/SGbaby.lua:65: attempt to call local 'events' (a table value)

 

[/codesyntax]how fix?

dream baby cat thing.zip

Edited by The Noon Fish

 @The Noon Fish, I highly recommend you read more on lua functions and tables.

 

Lua manual

 

 

Lua tutorial point

 

Lua tutorial for beginners

 

Lua wiki

 

Google

 

If you aren't sure which one to read, I'd recommend "Lua tutorial for beginners" as it explains in quite simple terms.

 

 

The problem, as stated by your error message, is that you're trying to call a "table" variable.

 

Tables can not be called.

Tables can be referenced to find values stored in them.

 

Functions can be called.

Functions (generally) do a set of commands when called.

 

Edited by Blueberrys

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
×
  • Create New...