advanced buildings

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
User avatar
carbon dude oxide
Trained
Trained
Posts: 141
Joined: 28 Apr 2011, 07:46

advanced buildings

Post by carbon dude oxide »

hello i am making a mod to include the material Laboratory and others but i have run into a little snag :/ i have fixed many of he other problems but i just annot get the R-Dedicat-Advmats to appear in the research center :/ this is the log file:

Code: Select all

--- Starting log [C:\Users\carbondudeoxide\Documents\Warzone 2100 3.1\logs\WZlog-1002_221418.txt]---
info    |10:14:18: [realmain:1128] Using C:\Users\carbondudeoxide\Documents\Warzone 2100 3.1\logs\WZlog-1002_221418.txt debug file
info    |10:14:22: [loadMapPreview:456] Loading map preview: "Sk-Rush" builtin t2
last message repeated 2 times
info    |10:14:29: [setIconID:1475] Invalid icon graphic 1 for topic R-Dedicat-Advmats
info    |10:14:29: [setIconID:1475] Assert in Warzone: research.cpp:1475 (false), last script event: '<none>'
info    |10:14:52: [structSetManufacture:1011] Wrong template for player 1 factory, type 1.
info    |10:14:52: [structSetManufacture:1011] Assert in Warzone: structure.cpp:1011 ((validTemplateForFactory(psTempl, psStruct) && researchedTemplate(psTempl, psStruct->player, true)) || psStruct->player == scavengerPlayer() || !bMultiPlayer), last script event: 'N/A'
info    |10:14:52: [structSetManufacture:1011] Wrong template for player 2 factory, type 1.
info    |10:14:52: [structSetManufacture:1011] Assert in Warzone: structure.cpp:1011 ((validTemplateForFactory(psTempl, psStruct) && researchedTemplate(psTempl, psStruct->player, true)) || psStruct->player == scavengerPlayer() || !bMultiPlayer), last script event: 'N/A'
info    |10:14:52: [structSetManufacture:1011] Wrong template for player 3 factory, type 1.
info    |10:14:52: [structSetManufacture:1011] Assert in Warzone: structure.cpp:1011 ((validTemplateForFactory(psTempl, psStruct) && researchedTemplate(psTempl, psStruct->player, true)) || psStruct->player == scavengerPlayer() || !bMultiPlayer), last script event: 'N/A'
please could someone help me find the problem as i have been scratching my head for three hours now :/
You do not have the required permissions to view the files attached to this post.
User avatar
carbon dude oxide
Trained
Trained
Posts: 141
Joined: 28 Apr 2011, 07:46

Re: advanced buildings

Post by carbon dude oxide »

ok i have been tinkering around for while and ive gotten it so that there are no errors but the research item is not showing up in game :/
User avatar
carbon dude oxide
Trained
Trained
Posts: 141
Joined: 28 Apr 2011, 07:46

Re: advanced buildings

Post by carbon dude oxide »

ok i have done some more edits to it and i am unable to understand why the R-Dedicat-Advancmats is not being shown along with the R-Dedicat-systems

could some one please help as i have tried everything that i remember to do.
You do not have the required permissions to view the files attached to this post.
User avatar
carbon dude oxide
Trained
Trained
Posts: 141
Joined: 28 Apr 2011, 07:46

Re: advanced buildings

Post by carbon dude oxide »

bump?.
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: advanced buildings

Post by NoQ »

info |10:14:29: [setIconID:1475] Invalid icon graphic 1 for topic R-Dedicat-Advmats
User avatar
carbon dude oxide
Trained
Trained
Posts: 141
Joined: 28 Apr 2011, 07:46

Re: advanced buildings

Post by carbon dude oxide »

What do i need to do to fix that error? (Its not comming up on my logs anymore...
KB99
New user
Posts: 1
Joined: 03 Oct 2012, 06:32

Re: advanced buildings

Post by KB99 »

Your problem is in prresearch.txt and resultstructure.txt. At the end of each entry there, there is a number at the end.The new entry you put in both have a zero so put some other nonzero number there and that should fix it.
User avatar
carbon dude oxide
Trained
Trained
Posts: 141
Joined: 28 Apr 2011, 07:46

Re: advanced buildings

Post by carbon dude oxide »

KB99 wrote:Your problem is in prresearch.txt and resultstructure.txt. At the end of each entry there, there is a number at the end.The new entry you put in both have a zero so put some other nonzero number there and that should fix it.
i chnaged them to non zero numbers ad this is now the log:

Code: Select all

--- Starting log [C:\Users\carbondudeoxide\Documents\Warzone 2100 3.1\logs\WZlog-1005_221737.txt]---
info    |10:17:37: [realmain:1128] Using C:\Users\carbondudeoxide\Documents\Warzone 2100 3.1\logs\WZlog-1005_221737.txt debug file
info    |10:17:41: [loadMapPreview:456] Loading map preview: "Sk-Rush" builtin t2
last message repeated 2 times
info    |10:18:47: [structSetManufacture:1011] Wrong template for player 1 factory, type 1.
info    |10:18:47: [structSetManufacture:1011] Assert in Warzone: structure.cpp:1011 ((validTemplateForFactory(psTempl, psStruct) && researchedTemplate(psTempl, psStruct->player, true)) || psStruct->player == scavengerPlayer() || !bMultiPlayer), last script event: 'N/A'
info    |10:18:47: [structSetManufacture:1011] Wrong template for player 2 factory, type 1.
info    |10:18:47: [structSetManufacture:1011] Assert in Warzone: structure.cpp:1011 ((validTemplateForFactory(psTempl, psStruct) && researchedTemplate(psTempl, psStruct->player, true)) || psStruct->player == scavengerPlayer() || !bMultiPlayer), last script event: 'N/A'
info    |10:18:47: [structSetManufacture:1011] Wrong template for player 3 factory, type 1.
info    |10:18:47: [structSetManufacture:1011] Assert in Warzone: structure.cpp:1011 ((validTemplateForFactory(psTempl, psStruct) && researchedTemplate(psTempl, psStruct->player, true)) || psStruct->player == scavengerPlayer() || !bMultiPlayer), last script event: 'N/A'
User avatar
carbon dude oxide
Trained
Trained
Posts: 141
Joined: 28 Apr 2011, 07:46

Re: advanced buildings

Post by carbon dude oxide »

ok have been messing around for the pas 2 hours on it and ive changed the name of the research and now i have it working, i also noticed hat if it was at the bottom of research.txt it would not load into the game (i do not know why) either way i have gotten i working :D
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: advanced buildings

Post by NoQ »

i also noticed hat if it was at the bottom of research.txt it would not load into the game (i do not know why)
You need a newline at the end of every .txt file.
User avatar
carbon dude oxide
Trained
Trained
Posts: 141
Joined: 28 Apr 2011, 07:46

Re: advanced buildings

Post by carbon dude oxide »

how would i do this on notepad++ :D (at the moment i am just putting everything second to list and its working quite nicely at the moment:D
Jorzi
Regular
Regular
Posts: 2063
Joined: 11 Apr 2010, 00:14

Re: advanced buildings

Post by Jorzi »

Just press enter ;)
I.e. there should be an empty line below the last item.
ImageImage
-insert deep philosophical statement here-