terrain script problem
Author | Topic: terrain script problem |
---|---|
Master
Member # 5977
|
written Thursday, January 5 2006 02:43
Profile
Homepage
So it took about two hours, not one, since my last question was solved. Again I'm dumping a problem on your plates. the code below has a small problem: It says "Bad term in expression in line 58." The the linbe where it says "terrain = get_terrain(get_memory_cell(2),get_memory_cell(3));" what is the bad term? i don't understand what the problem is, or is it again soemthing which is in another line, but the program gives me another line because the error occured later then it should have occured. EDIT: replaced code with newer version [ Tuesday, January 10, 2006 06:59: Message edited by: Thralni, Nephil translators & co. ] -------------------- Play and rate my scenarios: Where the rivers meet View my upcoming scenario: The Nephil Search: Escape. Give us your drek! Posts: 3029 | Registered: Saturday, June 18 2005 07:00 |
The Establishment
Member # 6
|
written Thursday, January 5 2006 07:13
Profile
Try using a different variable name than "terrain". This may be an internal variable the engine uses and it does not like that. Also, check to make sure the memory cells are set to sensical values. -------------------- Your flower power is no match for my glower power! Posts: 3726 | Registered: Tuesday, September 18 2001 07:00 |
Master
Member # 5977
|
written Thursday, January 5 2006 08:05
Profile
Homepage
I'll try that, but what do you mean with more sensical memory cell values? -------------------- Play and rate my scenarios: Where the rivers meet View my upcoming scenario: The Nephil Search: Escape. Give us your drek! Posts: 3029 | Registered: Saturday, June 18 2005 07:00 |
Shock Trooper
Member # 932
|
written Thursday, January 5 2006 08:14
Profile
Sensical, i.e, making sense. -------------------- Microsoft Patents Ones, Zeroes (March 25, 1998) "Asians are good at Starcraft because they're always squinting, thus they can see things sharply. Remember to always squint in war." ~ Sun-Tzu Posts: 215 | Registered: Sunday, April 7 2002 08:00 |
Master
Member # 5977
|
written Thursday, January 5 2006 08:49
Profile
Homepage
Yes, that I did understand, but how can't it make sense? for a SDF it can't be higher then 255, but a memory cell can be much higher then that, so, again: what do you mean? -------------------- Play and rate my scenarios: Where the rivers meet View my upcoming scenario: The Nephil Search: Escape. Give us your drek! Posts: 3029 | Registered: Saturday, June 18 2005 07:00 |
Agent
Member # 5814
|
written Thursday, January 5 2006 09:33
Profile
For example, make sure that cells 2,3 actually correspond to a a location in the town. [ Thursday, January 05, 2006 09:33: Message edited by: Notty ] -------------------- quote: Posts: 1115 | Registered: Sunday, May 15 2005 07:00 |
? Man, ? Amazing
Member # 5755
|
written Thursday, January 5 2006 09:33
Profile
Your failure message, toward the end, should be corrected to read. It stays tight in this position. Just a little alpha testing for ya.*this message sponsored by the grammarian* -------------------- quote: Posts: 4114 | Registered: Monday, April 25 2005 07:00 |
Master
Member # 5977
|
written Thursday, January 5 2006 09:53
Profile
Homepage
quote:That is something that isn't wrong in the script then, but it is something you do wrong while designing with the editor. I can assure you that is something I do without mistakes. Thanks, salmon. extra help is always welcome. EDIT: it still doesn't work [ Thursday, January 05, 2006 10:09: Message edited by: Thralni, chicken god prophet ] -------------------- Play and rate my scenarios: Where the rivers meet View my upcoming scenario: The Nephil Search: Escape. Give us your drek! Posts: 3029 | Registered: Saturday, June 18 2005 07:00 |
Shock Trooper
Member # 4557
|
written Thursday, January 5 2006 10:54
Profile
I don't know if this is it, but you seem to be missing a parentheses on line 55. (Where you call get_flag.) Posts: 264 | Registered: Wednesday, June 16 2004 07:00 |
...b10010b...
Member # 869
|
written Thursday, January 5 2006 12:52
Profile
Homepage
He's right. That line should read: if (get_flag(get_memory_cell(0),get_memory_cell(1)) == 1) { That could easily be causing an error that's reported as being in line 58; BoA isn't good at working out the line number of an error due to a missing right parenthesis. [ Thursday, January 05, 2006 12:53: Message edited by: Thuryl ] -------------------- The Empire Always Loses: This Time For Sure! Posts: 9973 | Registered: Saturday, March 30 2002 08:00 |
Master
Member # 5977
|
written Tuesday, January 10 2006 06:54
Profile
Homepage
It works now, at least a part of it. the problem moved now to line 67, and it gives the same error. I checked all parenthesis's (if that's the way you spell it) and they seem okay. What could it be this time? -------------------- Play and rate my scenarios: Where the rivers meet View my upcoming scenario: The Nephil Search: Escape. Give us your drek! Posts: 3029 | Registered: Saturday, June 18 2005 07:00 |
Shock Trooper
Member # 4557
|
written Tuesday, January 10 2006 09:31
Profile
Try changing the name of the flag variable. Posts: 264 | Registered: Wednesday, June 16 2004 07:00 |
Off With Their Heads
Member # 4045
|
written Tuesday, January 10 2006 10:21
Profile
Homepage
I love Alint. It tells me that the real problem is in line 64. Your "while (x = 1) {" should read instead "while (x == 1) {". -------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr. Kelandon's Pink and Pretty Page!!: the authorized location for all things by me The Archive of all released BoE scenarios ever Posts: 7968 | Registered: Saturday, February 28 2004 08:00 |
Master
Member # 5977
|
written Wednesday, January 11 2006 08:13
Profile
Homepage
Thanks, kelandon. I'll test it later. it would have been nice if I could use Alint to, but I keep not understanding it, which keeps preventing me from succeding in checking files, whih keeps making me irritated, which keeps... I'll stop here. EDIT: it works, Thanks kelandon [ Wednesday, January 11, 2006 10:05: Message edited by: Thralni, Nephil translators & co. ] -------------------- Play and rate my scenarios: Where the rivers meet View my upcoming scenario: The Nephil Search: Escape. Give us your drek! Posts: 3029 | Registered: Saturday, June 18 2005 07:00 |
Off With Their Heads
Member # 4045
|
written Wednesday, January 11 2006 11:11
Profile
Homepage
Thralni: Did you try following the step-by-step instructions that CPeters posted? -------------------- Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens. Smoo: Get ready to face the walls! Ephesos: In conclusion, yarr. Kelandon's Pink and Pretty Page!!: the authorized location for all things by me The Archive of all released BoE scenarios ever Posts: 7968 | Registered: Saturday, February 28 2004 08:00 |
Master
Member # 5977
|
written Thursday, January 12 2006 07:12
Profile
Homepage
Yes, I did, but got irritated when I didn't succeed. maybe I should try it again... -------------------- Play and rate my scenarios: Where the rivers meet View my upcoming scenario: The Nephil Search: Escape. Give us your drek! Posts: 3029 | Registered: Saturday, June 18 2005 07:00 |