Map script help

SkelApe

Member
Elder
Joined
Nov 10, 2007
Messages
651
I thought id try my hand at BW1 scripting, and i was creating a map based on the "dance" landscape. However wen i load it up the game seems to crash and i just cant work out the problem. Can anyone tell me what to fix etc?

Code:
rem ------------------------------------------DOOM ISLE SCRIPT ----------------------------------------

rem --------------- MISCELLANEOUS ---------------

VERSION(2. 3000000)
SET_LAND_NUMBER(0)
LOAD_LANDSCAPE("DATA\SCRIPTS\Dance.lnd")
SET_TOWN_INFLUENCE_MULTIPLIER(1. 0000000)
SET_PLAYER_INFLUENCE_MULTIPLIER(3. 0000000)
START_CAMERA_POSITION("2551.40,2701.17")
START_GAME_MESSAGE("Doom Isle", 0)
ADD_NEW_GAME_LINE("A small island for quick and easy Creature fights", 0)
TOGGLE_COMPUTER_PLAYER(2, 1)
SET_NIGHTTIME(900. 000, 0.4000000, 0. 1000000)

rem --------------- PLAYER RELATED ---------------

CREATE_TOWN(1, "2556.19,2676.76", "NEUTRAL", 0, "CELTIC")
CREATE_CITADEL("2556.19,2676.76", 0, "PLAYER_ONE", 2000, 1. 00)
CREATE_CITADEL("2553.49,2735.40", 0, "PLAYER_TWO", 1000, 1. 00)
CREATE_SPECIAL_TOWN_VILLAGER(1, "2555.19,2690.76", 70, 18)
CREATE_POT("2556.11,2741.23", 18, 0, 50000)

CREATE_SPELL_DISPENSER(1, "2556.10,2709.33", "GREEK_ABODE_SPELL_DISPENSER", "CREATURE_SPELL_BIG", 0, 1.0, 1)
CREATE_SPELL_DISPENSER(1, 2557.10,2691.12", "GREEK_ABODE_SPELL_DISPENSER", "FOOD_PU1", 0, 1.0, 1)

rem --------------- CREATURE ---------------

CREATE_CREATURE_FROM_FILE("PLAYER_TWO", 5, "ComputerControlledCreature", "2552.76,2730.24")
 
Code:
LOAD_LANDSCAPE("DATA\SCRIPTS\Dance.lnd")

Should be:
Code:
LOAD_LANDSCAPE(".\DATA\LANDSCAPE\dance.lnd")
 
tried doing that, and i feel im getting nearer to success, but still the same result  :rolleyes Sorry if it seems that i cant be bothered to do it myself, but im a noob in this front and cant distinguish any script problems. Heres the script at its most current, can you find any more problems?
Code:
rem ------------------------------------------DOOM ISLE SCRIPT ----------------------------------------

rem --------------- MISCELLANEOUS ---------------

VERSION(2. 3000000)
SET_LAND_NUMBER(0)
LOAD_LANDSCAPE(".\DATA\LANDSCAPE\dance.lnd")
SET_TOWN_INFLUENCE_MULTIPLIER(1. 0000000)
SET_PLAYER_INFLUENCE_MULTIPLIER(3. 0000000)
START_CAMERA_POSITION("2551.40,2701.17")
START_GAME_MESSAGE("Doom Isle", 0)
ADD_NEW_GAME_LINE("A small island for quick and easy Creature fights", 0)
TOGGLE_COMPUTER_PLAYER(2, 1)
SET_NIGHTTIME(900. 000, 0.4000000, 0. 1000000)

rem --------------- PLAYER RELATED ---------------

CREATE_TOWN(1, "2556.19,2676.76", "NEUTRAL", 0, "CELTIC")
CREATE_CITADEL("2556.19,2676.76", 0, "PLAYER_ONE", 2000, 1. 00)
CREATE_CITADEL("2553.49,2735.40", 0, "PLAYER_TWO", 1000, 1. 00)
CREATE_SPECIAL_TOWN_VILLAGER(1, "2555.19,2690.76", 70, 18)
CREATE_POT("2556.11,2741.23", 18, 0, 50000)

CREATE_SPELL_DISPENSER(1, "2556.10,2709.33", "GREEK_ABODE_SPELL_DISPENSER", "CREATURE_SPELL_BIG", 0, 1.0, 1)
CREATE_SPELL_DISPENSER(1, 2557.10,2691.12", "GREEK_ABODE_SPELL_DISPENSER", "FOOD_PU1", 0, 1.0, 1)

rem --------------- CREATURE ---------------

CREATE_CREATURE_FROM_FILE("PLAYER_TWO", 5, "ComputerControlledCreature", "2552.76,2730.24")
 
Try Grem's growth map he might have the proper replacement for the dance.lnd.
 
Its ok, i have the dance.lnd file, but i dont understand whats wrong with the script.
 
The main problem was that the Temples were too close together, and I noticed a few other mistakes that could have caused crashes also.

Code:
rem --------------- DOOM ISLE SCRIPT ---------------
rem --------------- MISCELLANEOUS ---------------

VERSION(2.300000)
SET_LAND_NUMBER(0)
LOAD_LANDSCAPE(".\DATA\LANDSCAPE\dance.lnd")
START_CAMERA_POSITION("2551.40,2701.17")
SET_TOWN_INFLUENCE_MULTIPLIER(1.0000000)
SET_PLAYER_INFLUENCE_MULTIPLIER(3.0000000)
SET_NIGHTTIME(900.000, 0.4000000, 0.1000000)

START_GAME_MESSAGE("Doom Isle", 0)
ADD_NEW_GAME_LINE("A small island for quick and easy Creature fights", 0)

rem --------------- PLAYER RELATED ---------------

rem --------------- NEUTRAL ---------------
CREATE_TOWN(1, "2556.19,2676.76", "NEUTRAL", 0, "CELTIC")
CREATE_SPECIAL_TOWN_VILLAGER(1, "2555.19,2690.76", 70, 18)
CREATE_POT("2556.11,2741.23", 18, 0, 50000)
CREATE_SPELL_DISPENSER(1, "2556.10,2709.33", "GREEK_ABODE_SPELL_DISPENSER", "CREATURE_SPELL_BIG", 0, 1.0, 1)
CREATE_SPELL_DISPENSER(1, "2557.10,2691.12", "GREEK_ABODE_SPELL_DISPENSER", "FOOD_PU1", 0, 1.0, 1)

rem --------------- PLAYER ONE ---------------

CREATE_CITADEL("2508.73,2697.07", 0, "PLAYER_ONE", 2000, 1000)

rem --------------- PLAYER TWO ---------------

TOGGLE_COMPUTER_PLAYER("PLAYER_TWO", 1)
CREATE_CITADEL("2598.36,2680.60", 0, "PLAYER_TWO", 4800, 1000)
CREATE_CREATURE_FROM_FILE("PLAYER_TWO", 5, "ComputerControlledCreature", "2552.76,2730.24")
SET_COMPUTER_PLAYER_CREATURE_LIKE("PLAYER_TWO", "PLAYER_ONE")
 
Don't quite know why, but the lines which are rem'ed are causing it to crash.

Code:
CREATE_TOWN(1, "2556.19,2676.76", "NEUTRAL", 0, "CELTIC")
CREATE_CITADEL("2556.19,2676.76", 0, "PLAYER_ONE", 2000, 1.00)
rem CREATE_CITADEL("2553.49,27 35.40", 0, "PLAYER_TWO", 1000, 1.00)
rem CREATE_SPECIAL_TOWN_VILLAGER(1, "2555.19,2690.76", 70, 18)
CREATE_POT("2556.11,2741.23", 18, 0, 50000)

rem CREATE_SPELL_DISPENSER(1, "2556.10,2709.33", "GREEK_ABODE_SPELL_DISPENSER", "CREATURE_SPELL_BIG", 0, 1.0, 1)
rem CREATE_SPELL_DISPENSER(1, 2557.10,2691.12", "GREEK_ABODE_SPELL_DISPENSER", "FOOD_PU1", 0, 1.0, 1)
 
Here is what I consider the  minimum script....
.

START_GAME_MESSAGE("Gremxulas Test map", 0)
ADD_GAME_MESSAGE_LINE("As blank as posible.", 0)
VERSION(2.300)
SET_LAND_NUMBER(0)
LOAD_LANDSCAPE(".\DATA\LANDSCAPE\dance.lnd")
START_CAMERA_POS("2592.52,2612.03")
SET_TOWN_INFLUENCE_MULTIPLIER(0.10000)
SET_PLAYER_INFLUENCE_MULTIPLIER(1.20)
SET_NIGHTTIME(1700.000000, 0.25, 0.05000)
CREATE_TOWN(2, "2543,2710", "NEUTRAL", 0, "GREEK")
CREATE_CITADEL("2553.50,2710.89", 0, "PLAYER_ONE", 900, 1000)
.
It works :D
.
Dance .lnd  has enough room  at least 2 temples maybe  4 . I may still have a map but it has probably  been lost by now. 
 
thanks guys, i really appreciate your help! Steele and kays, you get a +rep for helping me understand how parts of script are organised etc. ive included the readme and txt file to get the map working if you want to try it (get the dance.lnd file from grem's map, since its too large to post on here, http://www.bwfiles.com/files/index.php?action=file&id=150) A propper version will be released soon. The map is designed for quick and convinient fighting instead of going across an entire terrain to reach the enemy. It includes a giant fish which if you pick up and drop it will release 50,000 food, increased food and giant creature miracle dispensers and a lion creature which will always be the same size as yours and should put up a good fight. This map will go online where you can fight against your opponents creature with ease! anyway, id reccomend downloading the official version when its placed on the site, but try it if you must  :D

Thanks for your help guys.

Edit:
Thanks grem, didnt realise i could make it so short  :laugh2 Ill try and fit 4 in, maybe in the near future, but it might not leave enough room for a decent fight.
 
Ok, I guess Il try to finish my land 5 off soon. For an online version to work Skelape, there are conditions to be met.


I hope this helps you-

http://www.bwfiles.com/faqs/index.php?action=file&id=36
 
My  EG map v2.0 had 2 temples  so i know it works with 2 or possibly :laugh2  more .
 
I am working on this. The problem I get is that it quits its self when you enter the Norse village. I know I haven't got people on there yet, but is that the problem?
 
thanks for the link hidden, ive already read that FAQ, but cheers anyway  :p

is it not working because:
Code:
CREATE_TOWN(1, "1552.81,3771.13", "PLAYER_TWO", 7, "NORSE")
SET_TOWN_BELIEF(1, "NEUTRAL", 1.000000)

youve set the town belief as neutral and the town belongs to player 2?
as ive only just started mapping, this might be a pretty bad solution, but just a try =P
 
when i download BWWorldMod and click on the exe it says corrupted installation, please re install. Can anyone explain please? it just wont work.
 
and also, when i try and use the express map editor to make a map online - compatible, it says it needs 2 citadels at least to work, but i have 2 in the map  ???
Code:
rem --------------- DOOM ISLE SCRIPT ---------------
rem --------------- MISCELLANEOUS ---------------

VERSION(2.300000)
SET_LAND_NUMBER(0)
LOAD_LANDSCAPE(".\DATA\LANDSCAPE\dance.lnd")
START_CAMERA_POSITION("2551.40,2701.17")
SET_TOWN_INFLUENCE_MULTIPLIER(1.0000000)
SET_PLAYER_INFLUENCE_MULTIPLIER(3.0000000)
SET_NIGHTTIME(900.000, 0.4000000, 0.1000000)

rem --------------- PLAYER RELATED ---------------

rem --------------- NEUTRAL ---------------
CREATE_TOWN(1, "2556.19,2676.76", "NEUTRAL", 0, "CELTIC")
CREATE_SPECIAL_TOWN_VILLAGER(1, "2555.19,2690.76", 70, 18)
CREATE_POT("2556.11,2741.23", 18, 0, 50000)
CREATE_SPELL_DISPENSER(1, "2556.10,2709.33", "GREEK_ABODE_SPELL_DISPENSER", "CREATURE_SPELL_BIG", 0, 1.0, 1)
CREATE_SPELL_DISPENSER(1, "2557.10,2691.12", "GREEK_ABODE_SPELL_DISPENSER", "FOOD_PU1", 0, 1.0, 1)

rem --------------- PLAYER ONE ---------------

CREATE_CITADEL("2508.73,2697.07", 0, "PLAYER_ONE", 2000, 1000)

rem --------------- PLAYER TWO ---------------

CREATE_CITADEL("2598.36,2680.60", 0, "PLAYER_TWO", 4800, 10
 

NOTE: this is an online - compatible script, well i hope it is =P
 
Thanks for the help. Im looking forward towards your map. I think that is the problem. I will have this map ready soon, in skirmish mode.
 
Back
Top