Bug adding modded building ( Memory overwritten towngen2.cpp line 324)[solved]
Posted: Sat Jan 08, 2022 4:52 am
Hello !
I have encountered several other errors while investigating a previous 'bug' in this topic : https://capitalism2.com/forum/viewtopic.php?f=39&t=8660 But it's mostly when using wrong image format, or wrong image size, and most of them i was able to correct, and i'm starting to get familiar with the error messages.
However this one like the other one I can't understand why they are happening. I made different topic because it's different 'bug' but sounding similar. It look like this :
This one is easy to reproduce you need to change only 1 file from the regular mod_kit : building.dbf
I know what you are thinking, obviously with something this ridiculous it will create errors. BUT the error happens only with the line 19, if you only copy 18 line it is ok. 19=>error message.
I attempted this test after many tests on my images. Each of my custom building works when used individually but everytime i try to add several of them it seem like it reaches a limit and then it start to throw error. So i decided to test with the images from the mod_kit in an attempt to rule out the possibility that my custom sprites are responsible.
Why 17 custom identical buiding is ok but not 18 ?
maybe this is related as both error occur during the loading of a game, and relate to the towngen2.cpp file. Maybe this can hint that something is wrong with my setup. I have read (again) the whole modding forum that is related to buildings but couldn't find anything Therefore I am in hope that mister David could help me, or indicate me other thing i could do to possibly resolve my problem or tests what could cause it.
For this one no need to download additionnal files to possibly let me know if the resulst i encountered are not reproductible. One would need to edit the building.dbf.
I have encountered several other errors while investigating a previous 'bug' in this topic : https://capitalism2.com/forum/viewtopic.php?f=39&t=8660 But it's mostly when using wrong image format, or wrong image size, and most of them i was able to correct, and i'm starting to get familiar with the error messages.
However this one like the other one I can't understand why they are happening. I made different topic because it's different 'bug' but sounding similar. It look like this :
This one is easy to reproduce you need to change only 1 file from the regular mod_kit : building.dbf
I know what you are thinking, obviously with something this ridiculous it will create errors. BUT the error happens only with the line 19, if you only copy 18 line it is ok. 19=>error message.
I attempted this test after many tests on my images. Each of my custom building works when used individually but everytime i try to add several of them it seem like it reaches a limit and then it start to throw error. So i decided to test with the images from the mod_kit in an attempt to rule out the possibility that my custom sprites are responsible.
Why 17 custom identical buiding is ok but not 18 ?
maybe this is related as both error occur during the loading of a game, and relate to the towngen2.cpp file. Maybe this can hint that something is wrong with my setup. I have read (again) the whole modding forum that is related to buildings but couldn't find anything Therefore I am in hope that mister David could help me, or indicate me other thing i could do to possibly resolve my problem or tests what could cause it.
For this one no need to download additionnal files to possibly let me know if the resulst i encountered are not reproductible. One would need to edit the building.dbf.