Game crashes when I put "dc:" in front of "SIDE" in .lua
Posted: Sun Jul 03, 2016 3:12 pm
by KimochiCompadre
Recently, I've been toying around with making very small mods for my own personal use (basically editing default maps and such). However, I recently decided to reskin a few of my units for the republic side. So i loaded the .tga into GIMP, did all of my edits, and exported it (yes, I disabled RLE compression). Then, I went into my world's script for OMGc_con.lua, and went to where the sides are loaded in. I promptly added "dc:" in front of "SIDE" to change where the game looks to load the side, saved my script, and munged. Once the munge finished, I moved my world into the SWBF2's "addon" folder (idk how to use modtools' test environment) and then loaded up my game. Tried to start up my map, and as soon as it was done loading, the game completely crashed, and shut down. I'm willing to share my .lua code and everything, just need help possibly fixing this issue. Please help.
Re: Game crashes when I put "dc:" in front of "SIDE" in .lua
Posted: Sun Jul 03, 2016 3:37 pm
by Samee3
Sounds like there is a problem with the model/texture.
Re: Game crashes when I put "dc:" in front of "SIDE" in .lua
Posted: Sun Jul 03, 2016 4:21 pm
by KimochiCompadre
I didnt change the model at all. Just the tga (without RLE compression as I've heard that causes issues).
Re: Game crashes when I put "dc:" in front of "SIDE" in .lua
Posted: Sun Jul 03, 2016 6:00 pm
by Kingpin
Could you please post your LUA, the .req of your side, and your BF2log? Thanks
Re: Game crashes when I put "dc:" in front of "SIDE" in .lua
Posted: Sun Jul 03, 2016 6:11 pm
by KimochiCompadre
I'm not modifying the side itself, just the .tga of a few units on the the rep side. So the req would be the same as the republic req file.
Re: Game crashes when I put "dc:" in front of "SIDE" in .lua
Posted: Sun Jul 03, 2016 7:17 pm
by Kingpin
KimochiCompadre wrote:I'm not modifying the side itself, just the .tga of a few units on the the rep side. So the req would be the same as the republic req file.
If you are just loading in the textures as a custom side, you will want to first use dc:SIDE...... as well as that without DC. You need them both, and DC needs to be first.
Re: Game crashes when I put "dc:" in front of "SIDE" in .lua
Posted: Sun Jul 03, 2016 7:23 pm
by KimochiCompadre
Would you mind posting an example .lua?
Re: Game crashes when I put "dc:" in front of "SIDE" in .lua
Posted: Sun Jul 03, 2016 7:25 pm
by Kingpin
Let's say you are replacing the textures of all the CIS units. You have them loaded in your custom side. You don't have all of the various weapons, models, and so forth, so you will also need to load in the stock side.