Re: [Warzone-dev] Scriptai.c errors?

2007-02-07 Thread Dennis Schridde
Am Mittwoch, 7. Februar 2007 schrieb [EMAIL PROTECTED]:
> On Tue, 06 Feb 2007 19:02:39 -0500 Dennis Schridde
>
> <[EMAIL PROTECTED]> wrote:
> >Am Dienstag, 6. Februar 2007 schrieb [EMAIL PROTECTED]:
> >> Who made the changes in this part/file ?
>
> 
>
> >As it looks it is unmodified since more than 200 commits...
> >Nothing that
> >crashes just since a while. Maybe the problem is at another place,
> >when
> >initializing whatever variable is causing problems.
> >(I had a bit of problems understanding your email after the "crash
> >here"
> >bit... "psWstats = undefined"? Undefined Symbol? Or what do you
> >mean? And
> >what does the rest of the mail want to tell me?
> >
> >--Dennis
>
> It crashes at the function proj_Direct(psWStats).
> It crashes since psWStats is undefined (value is 0x0 for this
> variable).
> As I talk in the  other mail, I don't know if it is this specific
> file, but I do know it crashed here.  I check other version from
> berlios, and it is fine there.
>
> I couldn't check the svn log since I got a strange svn (or maybe
> tsvn) error.
>
> You can test this yourself, run game with select CAM_2A level.
> (--game CAM_2A)  You can also do this to other levels so you no
> need to play from begining, or have save games.  I was testing
> different levels this way.
Cool, didn't know of that feature...

As savegames from CAM1 and between CAM1 and CAM2 work well, I think the 
problem is with the direct loading...

I attached a backtrace.
(gdb) run --datadir data/ --game CAM_2A
Starting program: /home/sevendays/Warzone/Gna/trunk/_build_/debug/warzone2100 
--datadir data/ --game CAM_2A
[Thread debugging using libthread_db enabled]
[New Thread -1209407792 (LWP 9363)]
[New Thread -1236386928 (LWP 9366)]
error:  gwCheckZoneSizes: warning zone 4 at (61,23) is too large 1068 tiles 
(max 600)
error:  gwCheckZoneSizes: warning zone 5 at (89,31) is too large 671 tiles 
(max 600)
error:  gwCheckZoneSizes: warning zone 6 at (114,21) is too large 713 tiles 
(max 600)
error:  gwCheckZoneSizes: warning zone 41 at (15,13) is too large 822 tiles 
(max 600)
warning:loadFile2: optional file sequenceaudio/cam2/c002.txt could not be 
opened: No such file or directory

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1209407792 (LWP 9363)]
0x0818fde1 in proj_Direct (psStats=0x0) at ../src/projectile.c:2008
2008switch (psStats->movementModel)
(gdb) bt full
#0  0x0818fde1 in proj_Direct (psStats=0x0) at ../src/projectile.c:2008
__FUNCTION__ = "proj_Direct"
__PRETTY_FUNCTION__ = "proj_Direct"
#1  0x0819e212 in scrStructTargetMask (psStruct=0xb5b58ac4) at 
../src/scriptai.c:926
mask = 0
psStats = (STRUCTURE_STATS *) 0xb2cb8ae0
psWStats = (WEAPON_STATS *) 0x0
__FUNCTION__ = "scrStructTargetMask"
__PRETTY_FUNCTION__ = "scrStructTargetMask"
#2  0x0819e8e4 in scrTargetInArea (tarPlayer=0, visPlayer=2, tarType=0, 
cluster=1, x1=8192, y1=8192, x2=16384, y2=16384)
at ../src/scriptai.c:1214
psTarget = (BASE_OBJECT *) 0x0
psCurr = (BASE_OBJECT *) 0xb5b58ac4
temp = 1
bVisCheck = 0
tarMask = 3048720204
getTargetMask = (TARGET_MASK) 0x819e16b 
targetPriority = (TARGET_PREF) 0x819e321 
prefer = 1
ignore = 16
__FUNCTION__ = "scrTargetInArea"
__PRETTY_FUNCTION__ = "scrTargetInArea"
#3  0x0819ee24 in scrTargetInCluster () at ../src/scriptai.c:1353
tarPlayer = 0
tarType = 0
---Type  to continue, or q  to quit---
visPlayer = 2
clusterID = 1
cluster = 1
psTarget = (BASE_OBJECT *) 0xc1b3518
__FUNCTION__ = "scrTargetInCluster"
__PRETTY_FUNCTION__ = "scrTargetInCluster"
#4  0x0807fb3d in interpRunScript (psContext=0xb5b7f23c, runType=IRT_EVENT, 
index=0, offset=0) at ../lib/script/interp.c:783
data = 0
opcode = OP_CALL
sVal = {type = VAL_BOOL, v = {sval = 0x1 , 
pObjGetSet = 0x1, pFuncExtern = 0x1, oval = 0x1,
fval = 1.40129846e-45, ival = 1, bval = 1}}
psVar = (INTERP_VAL *) 0xb2bee2bc
InstrPointer = (INTERP_VAL *) 0xc1b3560
psGlobals = (VAL_CHUNK *) 0xb2bee5dc
numGlobals = 25
pCodeStart = (INTERP_VAL *) 0xc1b3350
pCodeEnd = (INTERP_VAL *) 0xc1b36d0
pCodeBase = (INTERP_VAL *) 0xc1b3350
scriptFunc = (SCRIPT_FUNC) 0x819ecc9 
scriptVarFunc = (SCRIPT_VARFUNC) 0x81bbac0 
psProg = (SCRIPT_CODE *) 0xa68c548
instructionCount = 44
CurEvent = 0
bStop = 0
bEvent = 1
---Type  to continue, or q  to quit---
callDepth = 0
pTrigLab = 0x1 
pEventLab = 0x10 
bTraceOn = 0
__FUNCTION__ = "interpRunScript"
__PRETTY_FUNCTION__ = "interpRunScript"
#5  0x0807b719 in eventFireCallbackTrigger (callback=42) at 
../lib/script/event.c:1064
psPrev = (ACTIVE_TRIGGER *) 0xb5b7ece0
psCurr = (ACTIVE_T

Re: [Warzone-dev] Scriptai.c errors?

2007-02-06 Thread vs2k5


On Tue, 06 Feb 2007 19:02:39 -0500 Dennis Schridde 
<[EMAIL PROTECTED]> wrote:
>Am Dienstag, 6. Februar 2007 schrieb [EMAIL PROTECTED]:
>> Who made the changes in this part/file ?

>As it looks it is unmodified since more than 200 commits... 
>Nothing that 
>crashes just since a while. Maybe the problem is at another place, 
>when 
>initializing whatever variable is causing problems.
>(I had a bit of problems understanding your email after the "crash 
>here" 
>bit... "psWstats = undefined"? Undefined Symbol? Or what do you 
>mean? And 
>what does the rest of the mail want to tell me?
>
>--Dennis

It crashes at the function proj_Direct(psWStats).
It crashes since psWStats is undefined (value is 0x0 for this 
variable).  
As I talk in the  other mail, I don't know if it is this specific 
file, but I do know it crashed here.  I check other version from 
berlios, and it is fine there.  

I couldn't check the svn log since I got a strange svn (or maybe 
tsvn) error.  

You can test this yourself, run game with select CAM_2A level.
(--game CAM_2A)  You can also do this to other levels so you no 
need to play from begining, or have save games.  I was testing 
different levels this way.






--
Click to become your own boss, make millions by owning a franchise
http://tagline.hushmail.com/fc/CAaCXv1Qv79PDTDFf90dtURCLAOfJT0y/


___
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev


Re: [Warzone-dev] Scriptai.c errors?

2007-02-06 Thread Dennis Schridde
Am Dienstag, 6. Februar 2007 schrieb [EMAIL PROTECTED]:
> Who made the changes in this part/file ?
> It crashes when you load a level now :(
>
> ==
>   //if (psStats->numWeaps == 0 && psStats->pSensor != NULL)
> if (psStats->psWeapStat == NULL && psStats->pSensor != NULL)
>   {
>   mask = SCR_ST_SENSOR;
>   }
>   //else if (psStats->numWeaps > 0)
> else if (psStats->psWeapStat != NULL)
>   {
>   //psWStats = psStats->asWeapList[0];
> psWStats = psStats->psWeapStat[0];
>   if (!proj_Direct(psWStats))
> ** crash here  psWstats = undefined.
> --
> + psStats->psWeapStat[0]  0x {ref=??? pName=???
> techLevel=??? ...}_weapon_stats *
> -
> + psStats->psWeapStat 0x086480c4  _weapon_stats * [4]
> --
> + psStats 0x08648068 {ref=852072 pName=0x0859c7e4 "Sys-
> SensoTower02" type=6 ...} _structure_stats *

I guess you are refering to this chunk?
  4  per  break;
  4  per  case REF_DEFENSE:
  4  per  //if (psStats->numWeaps == 0 && psStats->pSensor != NULL)
  4  perif (psStats->psWeapStat == NULL && psStats->pSensor != NULL)
  4  per  {
  4  per  mask = SCR_ST_SENSOR;
  4  per  }
  4  per  //else if (psStats->numWeaps > 0)
  4  perelse if (psStats->psWeapStat != NULL)
  4  per  {
  4  per  //psWStats = psStats->asWeapList[0];
499 troman   psWStats = psStats->psWeapStat[0];
  4  per  if (!proj_Direct(psWStats))
  4  per  {
  4  per  mask = SCR_ST_DEF_IDF;
  4  per  }
  4  per  else if (psWStats->surfaceToAir & SHOOT_IN_AIR)
  4  per  {
  4  per  mask = SCR_ST_DEF_AIR;
  4  per  }
  4  per  else

As it looks it is unmodified since more than 200 commits... Nothing that 
crashes just since a while. Maybe the problem is at another place, when 
initializing whatever variable is causing problems.
(I had a bit of problems understanding your email after the "crash here" 
bit... "psWstats = undefined"? Undefined Symbol? Or what do you mean? And 
what does the rest of the mail want to tell me?

--Dennis


pgp56r1zGvh2F.pgp
Description: PGP signature
___
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev


Re: [Warzone-dev] Scriptai.c errors?

2007-02-06 Thread vs2k5
On Tue, 06 Feb 2007 18:09:18 -0500 Giel van Schijndel 
<[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] schreef:
>> Who made the changes in this part/file ?
>> It crashes when you load a level now :(

>As for that ^^ I'm not sure what line numbers you are referring 
>to, so I
>took a guess: 916-926 of r714.
>
>Listed below:
>> line   revdate  
>> author content
>>
>>916  419-11-2005 20:12:57
>> perif (psStats->psWeapStat 
>== NULL
>> && psStats->pSensor != NULL)
>>917  419-11-2005 20:12:57
>> per{
>>918  419-11-2005 20:12:57
>> permask = SCR_ST_SENSOR;
>>919  419-11-2005 20:12:57
>> per}
>>920  419-11-2005 20:12:57
>> per//else if (psStats-
>>numWeaps > 0)
>>921  419-11-2005 20:12:57
>> perelse if (psStats-
>>psWeapStat !=
>> NULL)
>>922  419-11-2005 20:12:57
>> per{
>>923  419-11-2005 20:12:57
>> per//psWStats =
>> psStats->asWeapList[0];
>>92449925-11-2006 18:38:27
>> troman psWStats =
>> psStats->psWeapStat[0];
>>925  419-11-2005 20:12:57
>> perif 
>(!proj_Direct(psWStats))
>>926  419-11-2005 20:12:57
>> per{
>-- 
>Giel
I try that, and get a 'malformed network data' error?

Yes, it was those line ranges, but while it crashes there, I do not 
know if the commented out lines fix, since too much changed? 




--
Click to reduce wrinkles, increase energy and sex drive - anti-aging
http://tagline.hushmail.com/fc/CAaCXv1LY0UNAcdKHahMbiooHagnJpNm/


___
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev


Re: [Warzone-dev] Scriptai.c errors?

2007-02-06 Thread Giel van Schijndel
[EMAIL PROTECTED] schreef:
> Who made the changes in this part/file ?
> It crashes when you load a level now :(
>
> ==
>   //if (psStats->numWeaps == 0 && psStats->pSensor != NULL)
> if (psStats->psWeapStat == NULL && psStats->pSensor != NULL)
>   {
>   mask = SCR_ST_SENSOR;
>   }
>   //else if (psStats->numWeaps > 0)
> else if (psStats->psWeapStat != NULL)
>   {
>   //psWStats = psStats->asWeapList[0];
> psWStats = psStats->psWeapStat[0];
>   if (!proj_Direct(psWStats))
> ** crash here  psWstats = undefined.
> --  
> + psStats->psWeapStat[0]  0x {ref=??? pName=??? 
> techLevel=??? ...}_weapon_stats *
> -
> + psStats->psWeapStat 0x086480c4  _weapon_stats * [4]
> --
> + psStats 0x08648068 {ref=852072 pName=0x0859c7e4 "Sys-
> SensoTower02" type=6 ...} _structure_stats *
>   
`svn blame' is your friend for what you're trying to do here.

just hit `svn blame http://svn.gna.org/svn/warzone/trunk/src/scriptai.c'
on you console and you should see who and when the current line is changed.

As for that ^^ I'm not sure what line numbers you are referring to, so I
took a guess: 916-926 of r714.

Listed below:
> line   revdate  
> author content
>
>916  419-11-2005 20:12:57
> perif (psStats->psWeapStat == NULL
> && psStats->pSensor != NULL)
>917  419-11-2005 20:12:57
> per{
>918  419-11-2005 20:12:57
> permask = SCR_ST_SENSOR;
>919  419-11-2005 20:12:57
> per}
>920  419-11-2005 20:12:57
> per//else if (psStats->numWeaps > 0)
>921  419-11-2005 20:12:57
> perelse if (psStats->psWeapStat !=
> NULL)
>922  419-11-2005 20:12:57
> per{
>923  419-11-2005 20:12:57
> per//psWStats =
> psStats->asWeapList[0];
>92449925-11-2006 18:38:27
> troman psWStats =
> psStats->psWeapStat[0];
>925  419-11-2005 20:12:57
> perif (!proj_Direct(psWStats))
>926  419-11-2005 20:12:57
> per{
-- 
Giel




signature.asc
Description: OpenPGP digital signature
___
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev


Re: [Warzone-dev] Scriptai.c errors?

2007-02-06 Thread vs2k5
On Tue, 06 Feb 2007 17:57:32 -0500 [EMAIL PROTECTED] wrote:
>Who made the changes in this part/file ?
>It crashes when you load a level now :(
>
>==
>   //if (psStats->numWeaps == 0 && psStats->pSensor != NULL)
>if (psStats->psWeapStat == NULL && psStats->pSensor != 
>NULL)
>   {
>   mask = SCR_ST_SENSOR;
>   }
>   //else if (psStats->numWeaps > 0)
>else if (psStats->psWeapStat != NULL)
>   {
>   //psWStats = psStats->asWeapList[0];
>psWStats = psStats->psWeapStat[0];
>   if (!proj_Direct(psWStats))
>** crash here  psWstats = undefined.
>--  
>+  psStats->psWeapStat[0]  0x {ref=??? pName=??? 
>techLevel=??? ...} _weapon_stats *
>-
>+  psStats->psWeapStat 0x086480c4  _weapon_stats * [4]
>--
>+  psStats 0x08648068 {ref=852072 pName=0x0859c7e4 "Sys-
>SensoTower02" type=6 ...}  _structure_stats *

Forgot to mention, this is level CAM_2A




--
Free Tradeshow Display Price Quotes
Compare tradeshow display prices from multiple suppliers and save!
http://tagline.hushmail.com/fc/MhtZOXMo4XV9nT2pE2BGy5IOEuA1iH211MEWR/


___
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev