[3.1][Cam 4] Got a new (rather odd) issue

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base

[3.1][Cam 4] Got a new (rather odd) issue

Post by Goth Zagog-Thou »

I'm converting the Campaign over to 3.1. Lots of 'file not found' stuff, as expected which I fixed with no problem. Been through this before. :D

The log says this:

Code: Select all

info    |12:20:37: [loadDroidWeapons:1534] Allocating more weapons than allowed for Template ZNULLDESIGN
info    |12:20:37: [loadDroidWeapons:1534] Assert in Warzone: droid.cpp:1534 (pTemplate->storeCount <= pTemplate->numWeaps), last script event: '<none>'
info    |12:20:37: [resLoadFile:474] The load function for resource type "STEMPWEAP" failed for file "assignweapons.txt"
info    |12:20:37: [resLoadFile:474] Assert in Warzone: frameresource.cpp:474 (false), last script event: '<none>'
fatal   |12:20:37: [resLoad:130] Failed to parse wrf/stats.wrf
fatal   |12:20:39: [startGameLoop:784] Shutting down after failure
Any idea what this could be? I've never seen it complain about ZNULLDESIGN before. And yes, I've been through Templates.txt and Assignweapons.txt and all seems well.
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: [3.1][Cam 4] Got a new (rather odd) issue

Post by Per »

What does your ZNULLDESIGN line in templates.txt say?
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base

Re: [3.1][Cam 4] Got a new (rather odd) issue

Post by Goth Zagog-Thou »

Templates.txt says:

Code: Select all

ZNULLDESIGN,389,ZNULLBODY,ZNULLBRAIN,ZNULLCONSTRUCT,ZNULLECM,0,ZNULLPROP,ZNULLREPAIR,ZNULLDROID,ZNULLSENSOR,1
Assignweapons.txt says:

Code: Select all

ZNULLDESIGN,ZNULLWEAPON,NULL,NULL,0
So I dunno.
User avatar
Flail13
Code contributor
Code contributor
Posts: 263
Joined: 16 May 2008, 12:00

Re: [3.1][Cam 4] Got a new (rather odd) issue

Post by Flail13 »

IIRC, the last 1 in the templates line means that template wants 1 weapon. It's 0 in the normal 3.1 data. That could be the problem.
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base

Re: [3.1][Cam 4] Got a new (rather odd) issue

Post by Goth Zagog-Thou »

Thanks, that solved *that* problem. :D