0 registered members (),
1,227
guests, and 2
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Player Pointer invalid.
[Re: fastlane69]
#212733
06/23/08 23:16
06/23/08 23:16
|
Joined: Oct 2003
Posts: 130 Wollongong Australia
Jethro
OP
Member
|
OP
Member
Joined: Oct 2003
Posts: 130
Wollongong Australia
|
Fastlane is missing the point, it's obviously not an OBVIOUS engine bug or more people would have this problem. So a simple stub won't reproduce the problem.
Even though my rating is Juniour Member(I'm 48). I've been on and off Beta programs sincs A3.9 and reported many real bugs, we've pushed the envelope of this engine in many ways.
If its a code bug, Why did this specific bug show up when converting to A7. The function in question didn't even change!First time I seen this bug is when I converted a project from A6.314 to A7, It was as if The player pointer didn't exist anymore in this area of script. Now when I add new functions below this function they are broken also. However other files included after this are not.
JCL Can it be a script size problem?
Just to test, I'm going to break the suspect script into 2 scripts. I'll see how this goes.
Jethro.
Last edited by Jethro; 06/24/08 00:28.
|
|
|
Re: Player Pointer invalid.
[Re: jcl]
#212922
06/25/08 01:02
06/25/08 01:02
|
Joined: Oct 2003
Posts: 130 Wollongong Australia
Jethro
OP
Member
|
OP
Member
Joined: Oct 2003
Posts: 130
Wollongong Australia
|
I Found the bug. I moved the problem include, 1 position down in the list of includes 1 at a time, until it started to work. Then I went over the last include I leapfrogged, mymove3_c.wdl, with a fine tooth comb.
I'm now Eating a heafty chunk of humble pie. In my code the Player pointer had been re-defined with:- Entity* player;
I take most of the blame, however the old templates are what caused it in the first place. Now because my code is converted from version to version, this has snuck in from the old A5 templates where the conitec template code actually reads:- //SYNONYM player { TYPE ENTITY; } //SYNONYM temp_ent { TYPE ENTITY; } //SYNONYM carry { TYPE ACTION; } entity* player; // pointer to player entity entity* temp_ent; action* carry; inside movement.wdl!
Obviously re-defining the player pointer will cause mass confusion to the same pointer references before this, in A7, however it must have been a requirement in A5? I was certain it was something to do with the engine because it only happenned after the A7 upgrade.
Thankyou very much JCL, for your help with this, sorry for wasting your time.
I had searched player== player= etc. across all files, however my editors search doesn't allow * char to find pointers.
You can safely remove this from the Bug list now.
Thanks again Jethro.
|
|
|
|