Login    Forum    Search    FAQ

Board index » Scenarios & Scripting




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: few more bugs
 Post Posted: Sat Apr 03, 2010 12:40 am 
Offline

Joined: Mon Mar 02, 2009 11:00 am
Posts: 150
getVeg returned 0 for an ocean but this isn't a valid value for setting terrain;

if you play naturscaping and choose the swamp desert option it makes a swamp despite there being a picture of a desert.

Sometimes the ai freezes up and doesn't do anything on it turn, this seems to somehow depend on the location of its creatures. (this happened on a 17x17 map)

In a very large script I had some of setTerrain functions near the end not doing anything. After moving around some code in the script it worked fine

_________________
ȁ̎̉̈̂̎͋̈́̍n͂͑̿ͥͣ́̓ġͤ͑ͯe͌̓̊ͩ͗̅l̽̓ͬͬͥ̊͗aͣ̔̃ͧ̓̾̾t͊̑̆hͤ͆̓̉̌ͣ̚e̋ͩ͒̈́ĭ̌̒̎ͧ̓̋ͪs̋ͤͧ̅̇̋̎ͫ̂̾ͨ̽̄ͫͯt͒͐̌ͭ̂̃ͪ̽ͣ͗̒ͣ


Top 
 Profile  
 
 Post subject: Re: few more bugs
 Post Posted: Sat Apr 03, 2010 12:04 pm 
Offline

Joined: Tue Jan 08, 2008 2:07 am
Posts: 1045
> getVeg returned 0 for an ocean but this isn't a valid value for setting terrain;
Oceans have no veg so they will always return 0 here.


>In a very large script I had some of setTerrain functions near the end not doing anything.
>After moving around some code in the script it worked fine

Well I'd have to see the code. Maybe you were setting it one way and then changing it later?


Top 
 Profile  
 
 Post subject: Re: few more bugs
 Post Posted: Sat Apr 03, 2010 11:46 pm 
Offline

Joined: Mon Mar 02, 2009 11:00 am
Posts: 150
my issue with getVeg is that setTerrain(loc1, getTopo(loc2), getVeg(loc2)); does not work if loc2 is an ocean.

for the second issue ive put {Script,work in progress,114} into the public scripts, as it is now currently none of the terrain at 11 or above are being changed. this problem also seemed to happen with {Script,Battle Ship,104}

one other small issue ive been having is that occasionally when i try to save a script instead i get a new script like {Script,,211} without a name.

_________________
ȁ̎̉̈̂̎͋̈́̍n͂͑̿ͥͣ́̓ġͤ͑ͯe͌̓̊ͩ͗̅l̽̓ͬͬͥ̊͗aͣ̔̃ͧ̓̾̾t͊̑̆hͤ͆̓̉̌ͣ̚e̋ͩ͒̈́ĭ̌̒̎ͧ̓̋ͪs̋ͤͧ̅̇̋̎ͫ̂̾ͨ̽̄ͫͯt͒͐̌ͭ̂̃ͪ̽ͣ͗̒ͣ


Top 
 Profile  
 
 Post subject: Re: few more bugs
 Post Posted: Mon Apr 05, 2010 2:05 am 
Offline

Joined: Mon Mar 02, 2009 11:00 am
Posts: 150
ent.getLoc() == ent.getLoc() returns false.

_________________
ȁ̎̉̈̂̎͋̈́̍n͂͑̿ͥͣ́̓ġͤ͑ͯe͌̓̊ͩ͗̅l̽̓ͬͬͥ̊͗aͣ̔̃ͧ̓̾̾t͊̑̆hͤ͆̓̉̌ͣ̚e̋ͩ͒̈́ĭ̌̒̎ͧ̓̋ͪs̋ͤͧ̅̇̋̎ͫ̂̾ͨ̽̄ͫͯt͒͐̌ͭ̂̃ͪ̽ͣ͗̒ͣ


Top 
 Profile  
 
 Post subject: Re: few more bugs
 Post Posted: Mon Apr 05, 2010 4:00 pm 
Offline

Joined: Tue Jan 08, 2008 2:07 am
Posts: 1045
ok all these issues should be fixed. Except the saving the script with a blank name. I haven't been able to make that happen


Top 
 Profile  
 
 Post subject: Re: few more bugs
 Post Posted: Fri Apr 09, 2010 1:19 pm 
Offline

Joined: Mon Mar 02, 2009 11:00 am
Posts: 150
endGame(getAIPlayer(0)); causes the human player to win

_________________
ȁ̎̉̈̂̎͋̈́̍n͂͑̿ͥͣ́̓ġͤ͑ͯe͌̓̊ͩ͗̅l̽̓ͬͬͥ̊͗aͣ̔̃ͧ̓̾̾t͊̑̆hͤ͆̓̉̌ͣ̚e̋ͩ͒̈́ĭ̌̒̎ͧ̓̋ͪs̋ͤͧ̅̇̋̎ͫ̂̾ͨ̽̄ͫͯt͒͐̌ͭ̂̃ͪ̽ͣ͗̒ͣ


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 6 posts ] 

Board index » Scenarios & Scripting


Who is online

Users browsing this forum: No registered users and 1 guest

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: