Need Help with making a MOD, what am I missing here???

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket

Need Help with making a MOD, what am I missing here???

Postby Doruletz » 09 Aug 2016, 13:41

OK, so I'm messing around with creating several mods...
Up until v3.1.1-1 - I was able to add new bodies, droid weapons, create and store templates and use them via "ENABLE DEBUG" --> ctrl+O --> UNIT --> AND JUST ADD UNIT INTO THE GAME.
Of course I was getting the "YOU'RE CHEATING" message, which doesn't really hurt anyone nor matter, since I'm only playing SOLO, (SKIRMISH against AI)
Like I said, I'm just messing around, having some fun, testing new ".PIE" files for bodies, structures and weapons "implemented" from MODS like CONTINGENCY, BP REBALANCE, and other such MODS....

Now in v3.1.1-2 that is no longer working, as the game checks all saved templates at the beginning and kicks them out.

I even tried to add entries for my vehicles / droids and their weapons into:
/messages/strings/names.txt
/stats/templates.txt
/stats/assignweapons.txt
STILL NOT WORKING

Here's what I get in my log file after I start the game:

***********************************************************************************************************************************************************************
--- Starting log [/home/USER/.warzone2100-3.1/logs/WZlog-0809_064324.txt]---
info |06:43:24: [realmain:1145] Using /home/USER/.warzone2100-3.1/logs/WZlog-0809_064324.txt debug file
info |06:43:24: [realmain:1247] mod_mp (my-mp-mod.wz) is enabled
error |06:43:49: [initTemplates:162] Template 2 / template_220044 from stored templates cannot be designed
error |06:43:49: [initTemplates:162] Template 3 / template_220110 from stored templates cannot be designed
info |06:48:09: [structSetManufacture:993] Wrong template for player 1 factory, type 1.
info |06:48:09: [structSetManufacture:993] Assert in Warzone: structure.cpp:993 (!psTempl || (validTemplateForFactory(psTempl, psStruct) && researchedTemplate(psTempl, psStruct->player, true)) || psStruct->player == scavengerPlayer() || !bMultiPlayer), last script event: 'N/A'
***********************************************************************************************************************************************************************

CAN SOMEBODY PLEASE TELL ME WHAT ELSE DO I NEED TO DO TO MAKE THIS WORK LIKE IT DID IN PRIOR VERSIONS???


EDIT:
OK, HERE'S MORE....


I am player "0" (zero), right??? I did correct this in /stats/assignweapons.txt (make vehicles for player 0), yet I'm still getting more or less the same error message in my "LOG" file....

***********************************************************************************************************************************************************************
--- Starting log [/home/USER/.warzone2100-3.1/logs/WZlog-0809_074929.txt]---
info |07:49:29: [realmain:1145] Using /home/USER/.warzone2100-3.1/logs/WZlog-0809_074929.txt debug file
info |07:49:29: [realmain:1247] mod_mp (my-mp-mod.wz) is enabled
error |07:50:01: [initTemplates:162] Template 2 / template_220044 from stored templates cannot be designed
error |07:50:01: [initTemplates:162] Template 3 / template_220110 from stored templates cannot be designed
info |07:54:21: [structSetManufacture:993] Wrong template for player 1 factory, type 1.
info |07:54:21: [structSetManufacture:993] Assert in Warzone: structure.cpp:993 (!psTempl || (validTemplateForFactory(psTempl, psStruct) && researchedTemplate(psTempl, psStruct->player, true)) || psStruct->player == scavengerPlayer() || !bMultiPlayer), last script event: 'N/A'
***********************************************************************************************************************************************************************

So, obviously there's still something I'm missing here... PLEASE HELP
Thanks.
What do I think about Window$ ??? Just see my AVATAR...
User avatar
Doruletz
Trained
Trained
 
Posts: 90
Joined: 17 Sep 2015, 06:00
Location: Tennessee, USA

Return to Technical Help / Troubleshooting