New scripter needs a little help

unnonymous

New member
Joined
Aug 1, 2009
Messages
25
Ok, ive been trying to figure out the whole making maps and scripting thing for a few days now. So far ive made a map from leveling land 5 and designing it from the water up (though it looks horrible) and got it saved. Next i tried to make a script using that map so i can try it out (nothing fancy), but whenever i try to load that skirmish script the game crashes :angry... ive looked it over and cant find an error, but im sure its just something stupid im forgetting or overlooking like a value (?). i tried changing the map to the real land 5 but it still crashes. This is what i have so far (sorry if its a little long)

Code:
VERSION(2.300)
SET_LAND_NUMBER(0)
LOAD_LANDSCAPE(".\DATA\LANDSCAPE\Land5.lnd")
SET_T0WN_INFLUENCE_MULTIPLIER(1.000000)
SET_PLAYER_INFLUENCE_MULTIPLIER(1.000000)
SET_NIGHTTIME(1700.000000, 0.230000, 0.070000)
START_GAME_MESSAGE("TESTER 1")
ADD_GAME_MESSAGE_LINE("HOPE IT DONT CRASH")
SET_GLOBAL_LAND_BALANCE(0, 1.000000)
SET_GLOBAL_LAND_BALANCE(1, 1.000000)
SET_GLOBAL_LAND_BALANCE(2, 1.000000)
SET_GLOBAL_LAND_BALANCE(3, 1.000000)
SET_GLOBAL_LAND_BALANCE(4, 1.000000)
SET_GLOBAL_LAND_BALANCE(5, 1.000000)
SET_GLOBAL_LAND_BALANCE(6, 1.000000)
SET_GLOBAL_LAND_BALANCE(7, 1.000000)
START_CAMERA_POS("2553.50,2710.89")


rem *********************** PLAYER_ONE ***********************

- - - - - - - - - - - - - - TOWN 0 - - - - - - - - - - - - - - 
CREATE_CREATURE_FROM_FILE("PLAYER_ONE", 10, "C4a2af57e.erc", "1401.46,3756.77")
CREATE_TOWN (0, "1420.02,3993.62", "PLAYER_ONE", O, "GREEK")
SET_TOWN_BELIEF_CAP(0, "PLAYER_ONE", 9.0000000
SET_TOWN_BELIEF_CAP(0, "PLAYER_TWO", 1.0000000)
CREATE_NEW_TOWN_SPELL(0, "HEAL_PU1")
CREATE_NEW_TOWN_SPELL(0, "WOOD")
CREATE_NEW_TOWN_SPELL(0, "FOOD")
CREATE_NEW_TOWN_SPELL(0, "WATER")
CREATE_NEW_TOWN_SPELL(0, "FLYING_FLOCK")
CREATE_NEW_TOWN_SPELL(0, "LIGHTNING")
SET_TOWN_BELIEF(0, "PLAYER_ONE", 3.000000)
CREATE_NEW_TOWN_FIELD(0, "1470.25,4060.61", 2, 0.000000)
CREATE_NEW_TOWN_FIELD(0, "1417.14,4068.39", 2, 0.000000)
CREATE_NEW_TOWN_FIELD(0, "1345.63,4062.42", 2, 0.000000)
CREATE_NEW_TOWN_FIELD(0, "1349.07,4091.10", 2, 0.000000)
CREATE_NEW_TOWN_FIELD(0, "1395.39,4086.33", 2, 0.000000)
CREATE_TOWN_FISH_FARM(0, "1305.60,4108.53", 0, 0)
CREATE_TOWN_FISH_FARM(0, "1553.94,4128.32", 0, 0)
CREATE_TOWN_CENTRE(0, "1417.16,4021.67", "GREEK_ABODE_TOWN_CENTRE", 4385, 1000, 0)
CREATE_ABODE(0, "1340.97,4022.75", "GREEK_ABODE_STORAGE_PIT", 5301, 1000, 10000, 10000)
CREATE_ABODE(0, "1450.88,3981.45", "GREEK_ABODE_WORKSHOP", 5301, 1000, 0, 0)
CREATE_ABODE(0, "1369.26,3962.05", "GREEK_ABODE_C", 5301, 1000, 0, 0)
CREATE_VILLAGER_POS("1369.26,3962.05", 1369.58,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_VILLAGER_POS("1369.26,3962.05", 1369.78,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_VILLAGER_POS("1369.26,3962.05", 1369.98,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_TOWN_VILLAGER(0, "1369.54,3962.05", "GREEK_FARMER", 21)
CREATE_TOWN_VILLAGER(0, "1369.84,3962.05", "GREEK_FARMER", 21)
CREATE_TOWN_VILLAGER(0, "1369.14,3962.05", "GREEK_FISHERMAN", 21)
CREATE_TOWN_VILLAGER(0, "1369.44,3962.05", "GREEK_FISHERMAN", 21)
CREATE_TOWN_VILLAGER(0, "1369.64,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_TOWN_VILLAGER(0, "1369.74,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_TOWN_VILLAGER(0, "1369.94,3962.05", "GREEK_FORESTER", 21)
CREATE_CITADEL("1194.93,3748.03", 0, "PLAYER_ONE", 900, 1000)
CREATE_STREET_LANTEN("1500.54,3807.51", 7)
CREATE_NEW_BIG_FOREST("1435.62,3598.78", 1, 0, 0.000000, 0.888000)
CREATE_FLOCK(1, "1596.28,3683.53", "1638.84,3635.39", 50, 50, 0)
CREATE_NEW_ANIMAL("1596.28,3683.23", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.28,3683.33", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.28,3683.43", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.28,3683.63", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.28,3683.73", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.08,3683.53", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.18,3683.53", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.38,3683.53", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.48,3683.53", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.58,3683.53", 8, 1, 0, 30)
rem *********************** PLAYER_TWO ***********************

TOGGLE_COMPUTER_PLAYER("PLAYER_TWO", 1)
CREATE_CREATURE_FROM_FILE("PLAYER_TWO", 2, "FB2", "2079.00,2159.54")
SET_COMPUTER_PLAYER_CREATURE_LIKE("PLAYER_TWO", "LETHYS")
rem ---------------- Town: 1 ----------------
CREATE_TOWN(1, "2059.96,2021.20", "PLAYER_TWO", 0, "CELTIC")
SET_TOWN_BELIEF_CAP(1, "PLAYER_TWO", 1.0000000)
CREATE_NEW_TOWN_SPELL(1, "HEAL")
SET_TOWN_BELIEF(1, "PLAYER_TWO", 1.0000000)
CREATE_TOWN_CENTRE(1, "2072.04,2030.95", "CELTIC_ABODE_TOWN_CENTRE", 850, 1000, 0)
CREATE_TOWN_VILLAGER(1, "2072.54,2030.95", "CELTIC_HOUSEWIFE", 21)
CREATE_TOWN_VILLAGER(1, "2118.91,2083.39", "CELTIC_SHEPHERD", 24)
CREATE_TOWN_VILLAGER(1, "2118.71,2083.39", "CELTIC_FARMER", 27)
CREATE_TOWN_VILLAGER(1, "2118.51,2083.39", "CELTIC_FISHERMAN", 21)
CREATE_TOWN_VILLAGER(1, "2118.31,2083.39", "CELTIC_HOUSEWIFE", 22)
CREATE_CITADEL("1787.08,2066.63", 1, "PLAYER_TWO", 4500, 1000)
CREATE_ABODE(1, "1994.92,2005.61", "CELTIC_ABODE_B", 2861, 1000, 0, 0)
CREATE_ABODE(1, "1554.60,2329.75", "CELTIC_ABODE_WORKSHOP", 2534, 1000, 0, 0)
CREATE_ABODE(1, "1534.20,2209.85", "CELTIC_ABODE_STORAGE_PIT", 2679, 1000, 5000, 5000)

If anyone sees the problem your help would be greatly appreciated
 
Just use the [esc]
Code:
[/esc] tags the next time. :)

I don't see anything obvious. But it's been a while. What I do in a case like this is to break a line at the coordinates about half way down the script.
[code]CREATE_TOWN (0, "1420.02,39
93.62", "PLAYER_ONE", O, "GREEK")

What this does is stops the script from loading and takes you into the game without error. So if the game crashes when loading, you know that the problem is before that point. If it loads, the problem is after. Just keep repleating until you pin point the line causing the problem.

You don't need to load your own creature. That's automatic.

A tip if you haven't done this. Open the shortcut to B&W right click on it and choose Properties. In the Target line add  "    /skirmish"  Without the quotes and with a space before it. This will take you straight in the Skirmish game screen from the shortcut. Cuts down in loading time if you just want to play just a map.
 
:D thanks i didnt know you could do that :D and sorry, didnt know about the code tag either (just put creature in to see if thats why it wouldnt work)
 
The code tags make it look a bit neater and if you haven't used them before it's understandable. You can also use the buton with the # on it.

Duhh.. I just saw what your problem is. I was looking at just the code before and didn't notice this. :rolleyes

Code:
- - - - - - - - - - - - - - TOWN 0 - - - - - - - - - - - - - -

Should be:
Code:
REM- - - - - - - - - - - - - - TOWN 0 - - - - - - - - - - - - - -
 
Is the rem that important? i got it to load with half the create town command, but none after. Tried to split greek to go further down the line an that crashed too. also, i noticed i made a create town O instead of 0. Last the world i tried to make is garbage (dont load), but i want to get the scripting down before i try that
 
If a line doesn't have any code in it you need to preceed that line with REM which tells the parser to ignore that line.
 
I put the rem in, brought create town centre below create town, and fixed the O0 but it still doesnt want to load.
note- splitting create town coords will load the game, but not splitting create town centre coords (think its a vista thing?)
Code:
VERSION(2.300)
SET_LAND_NUMBER(0)
START_CAMERA_POS("2553.50,2710.89")
LOAD_LANDSCAPE(".\DATA\LANDSCAPE\Land5.lnd")
SET_T0WN_INFLUENCE_MULTIPLIER(1.000000)
SET_PLAYER_INFLUENCE_MULTIPLIER(1.000000)
SET_NIGHTTIME(1700.000000, 0.230000, 0.070000)
START_GAME_MESSAGE("TESTER 1")
ADD_GAME_MESSAGE_LINE("HOPE IT DONT CRASH")
SET_GLOBAL_LAND_BALANCE(0, 1.000000)
SET_GLOBAL_LAND_BALANCE(1, 1.000000)
SET_GLOBAL_LAND_BALANCE(2, 1.000000)
SET_GLOBAL_LAND_BALANCE(3, 1.000000)
SET_GLOBAL_LAND_BALANCE(4, 1.000000)
SET_GLOBAL_LAND_BALANCE(5, 1.000000)
SET_GLOBAL_LAND_BALANCE(6, 1.000000)
SET_GLOBAL_LAND_BALANCE(7, 1.000000)



rem *********************** PLAYER_ONE ***********************

rem - - - - - - - - - - - - - - TOWN 0 - - - - - - - - - - - - - - 

CREATE_TOWN (0, "1293.50,3634.88", "PLAYER_ONE", 0, "GREEK")
CREATE_TOWN_CENTRE(0, "1293.50,36
34.88", "GREEK_ABODE_TOWN_CENTRE", 4385, 1000, 0)
SET_TOWN_BELIEF_CAP(0, "PLAYER_ONE", 9.000000)
SET_TOWN_BELIEF_CAP(0, "PLAYER_TWO", 1.000000)
CREATE_NEW_TOWN_SPELL(0, "HEAL_PU1")
CREATE_NEW_TOWN_SPELL(0, "WOOD")
CREATE_NEW_TOWN_SPELL(0, "FOOD")
CREATE_NEW_TOWN_SPELL(0, "WATER")
CREATE_NEW_TOWN_SPELL(0, "FLYING_FLOCK")
CREATE_NEW_TOWN_SPELL(0, "LIGHTNING")
SET_TOWN_BELIEF(0, "PLAYER_ONE", 3.000000)
CREATE_NEW_TOWN_FIELD(0, "1470.25,4060.61", 2, 0.000000)
CREATE_NEW_TOWN_FIELD(0, "1417.14,4068.39", 2, 0.000000)
CREATE_NEW_TOWN_FIELD(0, "1345.63,4062.42", 2, 0.000000)
CREATE_NEW_TOWN_FIELD(0, "1349.07,4091.10", 2, 0.000000)
CREATE_NEW_TOWN_FIELD(0, "1395.39,4086.33", 2, 0.000000)
CREATE_TOWN_FISH_FARM(0, "1305.60,4108.53", 0, 0)
CREATE_TOWN_FISH_FARM(0, "1553.94,4128.32", 0, 0)

CREATE_ABODE(0, "1340.97,4022.75", "GREEK_ABODE_STORAGE_PIT", 5301, 1000, 10000, 10000)
CREATE_ABODE(0, "1450.88,3981.45", "GREEK_ABODE_WORKSHOP", 5301, 1000, 0, 0)
CREATE_ABODE(0, "1369.26,3962.05", "GREEK_ABODE_C", 5301, 1000, 0, 0)
CREATE_VILLAGER_POS("1369.26,3962.05", 1369.58,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_VILLAGER_POS("1369.26,3962.05", 1369.78,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_VILLAGER_POS("1369.26,3962.05", 1369.98,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_TOWN_VILLAGER(0, "1369.54,3962.05", "GREEK_FARMER", 21)
CREATE_TOWN_VILLAGER(0, "1369.84,3962.05", "GREEK_FARMER", 21)
CREATE_TOWN_VILLAGER(0, "1369.14,3962.05", "GREEK_FISHERMAN", 21)
CREATE_TOWN_VILLAGER(0, "1369.44,3962.05", "GREEK_FISHERMAN", 21)
CREATE_TOWN_VILLAGER(0, "1369.64,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_TOWN_VILLAGER(0, "1369.74,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_TOWN_VILLAGER(0, "1369.94,3962.05", "GREEK_FORESTER", 21)
CREATE_CITADEL("1194.93,3748.03", 0, "PLAYER_ONE", 900, 1000)
CREATE_STREET_LANTEN("1500.54,3807.51", 7)
CREATE_NEW_BIG_FOREST("1435.62,3598.78", 1, 0, 0.000000, 0.888000)
CREATE_FLOCK(1, "1596.28,3683.53", "1638.84,3635.39", 50, 50, 0)
CREATE_NEW_ANIMAL("1596.28,3683.23", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.28,3683.33", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.28,3683.43", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.28,3683.63", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.28,3683.73", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.08,3683.53", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.18,3683.53", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.38,3683.53", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.48,3683.53", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.58,3683.53", 8, 1, 0, 30)
rem *********************** PLAYER_TWO ***********************

TOGGLE_COMPUTER_PLAYER("PLAYER_TWO", 1)
CREATE_CREATURE_FROM_FILE("PLAYER_TWO", 2, "FB2", "2079.00,2159.54")
SET_COMPUTER_PLAYER_CREATURE_LIKE("PLAYER_TWO", "LETHYS")
rem ---------------- Town: 1 ----------------
CREATE_TOWN(1, "2059.96,2021.20", "PLAYER_TWO", 0, "CELTIC")
SET_TOWN_BELIEF_CAP(1, "PLAYER_TWO", 1.0000000)
CREATE_NEW_TOWN_SPELL(1, "HEAL")
SET_TOWN_BELIEF(1, "PLAYER_TWO", 1.0000000)
CREATE_TOWN_CENTRE(1, "2072.04,2030.95", "CELTIC_ABODE_TOWN_CENTRE", 850, 1000, 0)
CREATE_TOWN_VILLAGER(1, "2072.54,2030.95", "CELTIC_HOUSEWIFE", 21)
CREATE_TOWN_VILLAGER(1, "2118.91,2083.39", "CELTIC_SHEPHERD", 24)
CREATE_TOWN_VILLAGER(1, "2118.71,2083.39", "CELTIC_FARMER", 27)
CREATE_TOWN_VILLAGER(1, "2118.51,2083.39", "CELTIC_FISHERMAN", 21)
CREATE_TOWN_VILLAGER(1, "2118.31,2083.39", "CELTIC_HOUSEWIFE", 22)
CREATE_CITADEL("1787.08,2066.63", 1, "PLAYER_TWO", 4500, 1000)
CREATE_ABODE(1, "1994.92,2005.61", "CELTIC_ABODE_B", 2861, 1000, 0, 0)
CREATE_ABODE(1, "1554.60,2329.75", "CELTIC_ABODE_WORKSHOP", 2534, 1000, 0, 0)
CREATE_ABODE(1, "1534.20,2209.85", "CELTIC_ABODE_STORAGE_PIT", 2679, 1000, 5000, 5000)
Thanks for all the help but i think ill have to start a new script line by line and test each to get a handle on this
 
It's not a Vista problem. It's a unnonymous problem. :p

There were a lot of little things.

Something in the first create town lines. Can't quite see what.

Missing double quotes (") in several of the create villlagers lines

Incorrect spelling of lantern.

SET_COMPUTER_PLAYER_CREATURE_LIKE("PLAYER_TWO", "PLAYER_ONE")

Code:
VERSION(2.300)
SET_LAND_NUMBER(0)
rem START_CAMERA_POS("2553.50,2710.89")
LOAD_LANDSCAPE(".\DATA\LANDSCAPE\Land5.lnd")
SET_T0WN_INFLUENCE_MULTIPLIER(1.000000)
SET_PLAYER_INFLUENCE_MULTIPLIER(1.000000)
SET_NIGHTTIME(1700.000000, 0.230000, 0.070000)
START_GAME_MESSAGE("TESTER 1")
ADD_GAME_MESSAGE_LINE("HOPE IT DONT CRASH")
SET_GLOBAL_LAND_BALANCE(0, 1.000000)
SET_GLOBAL_LAND_BALANCE(1, 1.000000)
SET_GLOBAL_LAND_BALANCE(2, 1.000000)
SET_GLOBAL_LAND_BALANCE(3, 1.000000)
SET_GLOBAL_LAND_BALANCE(4, 1.000000)
SET_GLOBAL_LAND_BALANCE(5, 1.000000)
SET_GLOBAL_LAND_BALANCE(6, 1.000000)
SET_GLOBAL_LAND_BALANCE(7, 1.000000)



rem *********************** PLAYER_ONE ***********************

rem - - - - - - - - - - - - - - TOWN 0 - - - - - - - - - - - - - - 

CREATE_TOWN(0, "1294.81,3551.24", "PLAYER_ONE", 6, "GREEK")
CREATE_TOWN_CENTRE(0, "1294.81,3551.24", "GREEK_ABODE_TOWN_CENTRE", 4385, 1000, 0)
SET_TOWN_BELIEF_CAP(0, "PLAYER_ONE", 9.000000)
SET_TOWN_BELIEF_CAP(0, "PLAYER_TWO", 1.000000)
CREATE_NEW_TOWN_SPELL(0, "HEAL_PU1")
CREATE_NEW_TOWN_SPELL(0, "WOOD")
CREATE_NEW_TOWN_SPELL(0, "FOOD")
CREATE_NEW_TOWN_SPELL(0, "WATER")
CREATE_NEW_TOWN_SPELL(0, "FLYING_FLOCK")
CREATE_NEW_TOWN_SPELL(0, "LIGHTNING")
SET_TOWN_BELIEF(0, "PLAYER_ONE", 3.000000)
CREATE_NEW_TOWN_FIELD(0, "1470.25,4060.61", 2, 0.000000)
CREATE_NEW_TOWN_FIELD(0, "1417.14,4068.39", 2, 0.000000)
CREATE_NEW_TOWN_FIELD(0, "1345.63,4062.42", 2, 0.000000)
CREATE_NEW_TOWN_FIELD(0, "1349.07,4091.10", 2, 0.000000)
CREATE_NEW_TOWN_FIELD(0, "1395.39,4086.33", 2, 0.000000)
CREATE_TOWN_FISH_FARM(0, "1305.60,4108.53", 0, 0)
CREATE_TOWN_FISH_FARM(0, "1553.94,4128.32", 0, 0)

CREATE_ABODE(0, "1340.97,4022.75", "GREEK_ABODE_STORAGE_PIT", 5301, 1000, 10000, 10000)
CREATE_ABODE(0, "1450.88,3981.45", "GREEK_ABODE_WORKSHOP", 5301, 1000, 0, 0)
CREATE_ABODE(0, "1369.26,3962.05", "GREEK_ABODE_C", 5301, 1000, 0, 0)
CREATE_VILLAGER_POS("1369.26,3962.05", "1369.58,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_VILLAGER_POS("1369.26,3962.05", "1369.78,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_VILLAGER_POS("1369.26,3962.05", "1369.98,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_TOWN_VILLAGER(0, "1369.54,3962.05", "GREEK_FARMER", 21)
CREATE_TOWN_VILLAGER(0, "1369.84,3962.05", "GREEK_FARMER", 21)
CREATE_TOWN_VILLAGER(0, "1369.14,3962.05", "GREEK_FISHERMAN", 21)
CREATE_TOWN_VILLAGER(0, "1369.44,3962.05", "GREEK_FISHERMAN", 21)
CREATE_TOWN_VILLAGER(0, "1369.64,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_TOWN_VILLAGER(0, "1369.74,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_TOWN_VILLAGER(0, "1369.94,3962.05", "GREEK_FORESTER", 21)
CREATE_CITADEL("1194.93,3748.03", 0, "PLAYER_ONE", 900, 1000)
CREATE_STREET_LANTERN("1500.54,3807.51", 7)
CREATE_NEW_BIG_FOREST("1435.62,3598.78", 1, 0, 0.000000, 0.888000)
CREATE_FLOCK(1, "1596.28,3683.53", "1638.84,3635.39", 50, 50, 0)
CREATE_NEW_ANIMAL("1596.28,3683.23", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.28,3683.33", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.28,3683.43", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.28,3683.63", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.28,3683.73", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.08,3683.53", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.18,3683.53", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.38,3683.53", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.48,3683.53", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.58,3683.53", 8, 1, 0, 30)
rem *********************** PLAYER_TWO ***********************

TOGGLE_COMPUTER_PLAYER("PLAYER_TWO", 1)
CREATE_CREATURE_FROM_FILE("PLAYER_TWO", 2, "FB2", "2079.00,2159.54")
SET_COMPUTER_PLAYER_CREATURE_LIKE("PLAYER_TWO", "PLAYER_ONE")
rem ---------------- Town: 1 ----------------
CREATE_TOWN(1, "2059.96,2021.20", "PLAYER_TWO", 0, "CELTIC")
SET_TOWN_BELIEF_CAP(1, "PLAYER_TWO", 1.0000000)
CREATE_NEW_TOWN_SPELL(1, "HEAL")
SET_TOWN_BELIEF(1, "PLAYER_TWO", 1.0000000)
CREATE_TOWN_CENTRE(1, "2072.04,2030.95", "CELTIC_ABODE_TOWN_CENTRE", 850, 1000, 0)
CREATE_TOWN_VILLAGER(1, "2072.54,2030.95", "CELTIC_HOUSEWIFE", 21)
CREATE_TOWN_VILLAGER(1, "2118.91,2083.39", "CELTIC_SHEPHERD", 24)
CREATE_TOWN_VILLAGER(1, "2118.71,2083.39", "CELTIC_FARMER", 27)
CREATE_TOWN_VILLAGER(1, "2118.51,2083.39", "CELTIC_FISHERMAN", 21)
CREATE_TOWN_VILLAGER(1, "2118.31,2083.39", "CELTIC_HOUSEWIFE", 22)
CREATE_CITADEL("1787.08,2066.63", 0, "PLAYER_TWO", 4500, 1000)
CREATE_ABODE(1, "1994.92,2005.61", "CELTIC_ABODE_B", 2861, 1000, 0, 0)
CREATE_ABODE(1, "1554.60,2329.75", "CELTIC_ABODE_WORKSHOP", 2534, 1000, 0, 0)
CREATE_ABODE(1, "1534.20,2209.85", "CELTIC_ABODE_STORAGE_PIT", 2679, 1000, 5000, 5000)
 
Version 2.300 should be 2.300000. I make that mistake all the time, and skimming this, that's what is immediately apparent to me. Fix that, and this should work fine, I think.  :D

(That is, including Kays's corrections.)
(It's the first line, which is probably why you can't find the error. :rolleyes)
 
Bell: Ding-Ding!  Me: Knocked out :no... im suprised i missed all that, but sadly that script still dont want to work. I did manage a few lines on a new script starting with Gremxula's minimum script in "map script help", and as long as i check to make sure it didnt  :angel every couple lines i think i got it. Thing is, it looks EXACTLY the same as the other script. Maybe its cuz i pasted onto the 1st script (but really i think its  :devil !possessed! :devil) So from now on ill be more careful, we wouldnt want that its a unnonymous problem thing to catch on :;): Thanks again for the help guys
 
I'm intrigued, which means I'm carrying this over to my gaming computer and will probably post a working code later today. I'll figure out what's going on, because I don't have anything else to do today.  :woot



EDIT: Wow. The problem was just as simple as the 2.300000 thing. The problem is three characters (, 0) left out of each message line.
If the code doesn't work now, it's a problem with your landscape, because it worked for me:

Code:
VERSION(2.300000)
SET_LAND_NUMBER(0)
rem START_CAMERA_POS("2553.50,2710.89")
LOAD_LANDSCAPE(".\DATA\LANDSCAPE\Land5.lnd")
SET_T0WN_INFLUENCE_MULTIPLIER(1.000000)
SET_PLAYER_INFLUENCE_MULTIPLIER(1.000000)
SET_NIGHTTIME(1700.000000, 0.230000, 0.070000)
START_GAME_MESSAGE("TESTER 1", 0)
ADD_GAME_MESSAGE_LINE("HOPE IT DONT CRASH", 0)
SET_GLOBAL_LAND_BALANCE(0, 1.000000)
SET_GLOBAL_LAND_BALANCE(1, 1.000000)
SET_GLOBAL_LAND_BALANCE(2, 1.000000)
SET_GLOBAL_LAND_BALANCE(3, 1.000000)
SET_GLOBAL_LAND_BALANCE(4, 1.000000)
SET_GLOBAL_LAND_BALANCE(5, 1.000000)
SET_GLOBAL_LAND_BALANCE(6, 1.000000)
SET_GLOBAL_LAND_BALANCE(7, 1.000000)



rem *********************** PLAYER_ONE ***********************

rem - - - - - - - - - - - - - - TOWN 0 - - - - - - - - - - - - - - 

CREATE_TOWN(0, "1294.81,3551.24", "PLAYER_ONE", 6, "GREEK")
CREATE_TOWN_CENTRE(0, "1294.81,3551.24", "GREEK_ABODE_TOWN_CENTRE", 4385, 1000, 0)
SET_TOWN_BELIEF_CAP(0, "PLAYER_ONE", 9.000000)
SET_TOWN_BELIEF_CAP(0, "PLAYER_TWO", 1.000000)
CREATE_NEW_TOWN_SPELL(0, "HEAL_PU1")
CREATE_NEW_TOWN_SPELL(0, "WOOD")
CREATE_NEW_TOWN_SPELL(0, "FOOD")
CREATE_NEW_TOWN_SPELL(0, "WATER")
CREATE_NEW_TOWN_SPELL(0, "FLYING_FLOCK")
CREATE_NEW_TOWN_SPELL(0, "LIGHTNING")
SET_TOWN_BELIEF(0, "PLAYER_ONE", 3.000000)
CREATE_NEW_TOWN_FIELD(0, "1470.25,4060.61", 2, 0.000000)
CREATE_NEW_TOWN_FIELD(0, "1417.14,4068.39", 2, 0.000000)
CREATE_NEW_TOWN_FIELD(0, "1345.63,4062.42", 2, 0.000000)
CREATE_NEW_TOWN_FIELD(0, "1349.07,4091.10", 2, 0.000000)
CREATE_NEW_TOWN_FIELD(0, "1395.39,4086.33", 2, 0.000000)
CREATE_TOWN_FISH_FARM(0, "1305.60,4108.53", 0, 0)
CREATE_TOWN_FISH_FARM(0, "1553.94,4128.32", 0, 0)

CREATE_ABODE(0, "1340.97,4022.75", "GREEK_ABODE_STORAGE_PIT", 5301, 1000, 10000, 10000)
CREATE_ABODE(0, "1450.88,3981.45", "GREEK_ABODE_WORKSHOP", 5301, 1000, 0, 0)
CREATE_ABODE(0, "1369.26,3962.05", "GREEK_ABODE_C", 5301, 1000, 0, 0)
CREATE_VILLAGER_POS("1369.26,3962.05", "1369.58,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_VILLAGER_POS("1369.26,3962.05", "1369.78,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_VILLAGER_POS("1369.26,3962.05", "1369.98,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_TOWN_VILLAGER(0, "1369.54,3962.05", "GREEK_FARMER", 21)
CREATE_TOWN_VILLAGER(0, "1369.84,3962.05", "GREEK_FARMER", 21)
CREATE_TOWN_VILLAGER(0, "1369.14,3962.05", "GREEK_FISHERMAN", 21)
CREATE_TOWN_VILLAGER(0, "1369.44,3962.05", "GREEK_FISHERMAN", 21)
CREATE_TOWN_VILLAGER(0, "1369.64,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_TOWN_VILLAGER(0, "1369.74,3962.05", "GREEK_HOUSEWIFE", 21)
CREATE_TOWN_VILLAGER(0, "1369.94,3962.05", "GREEK_FORESTER", 21)
CREATE_CITADEL("1194.93,3748.03", 0, "PLAYER_ONE", 900, 1000)
CREATE_STREET_LANTERN("1500.54,3807.51", 7)
CREATE_NEW_BIG_FOREST("1435.62,3598.78", 1, 0, 0.000000, 0.888000)
CREATE_FLOCK(1, "1596.28,3683.53", "1638.84,3635.39", 50, 50, 0)
CREATE_NEW_ANIMAL("1596.28,3683.23", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.28,3683.33", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.28,3683.43", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.28,3683.63", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.28,3683.73", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.08,3683.53", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.18,3683.53", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.38,3683.53", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.48,3683.53", 8, 1, 0, 30)
CREATE_NEW_ANIMAL("1596.58,3683.53", 8, 1, 0, 30)
rem *********************** PLAYER_TWO ***********************

TOGGLE_COMPUTER_PLAYER("PLAYER_TWO", 1)
CREATE_CREATURE_FROM_FILE("PLAYER_TWO", 2, "FB2", "2079.00,2159.54")
SET_COMPUTER_PLAYER_CREATURE_LIKE("PLAYER_TWO", "PLAYER_ONE")
rem ---------------- Town: 1 ----------------
CREATE_TOWN(1, "2059.96,2021.20", "PLAYER_TWO", 0, "CELTIC")
SET_TOWN_BELIEF_CAP(1, "PLAYER_TWO", 1.0000000)
CREATE_NEW_TOWN_SPELL(1, "HEAL")
SET_TOWN_BELIEF(1, "PLAYER_TWO", 1.0000000)
CREATE_TOWN_CENTRE(1, "2072.04,2030.95", "CELTIC_ABODE_TOWN_CENTRE", 850, 1000, 0)
CREATE_TOWN_VILLAGER(1, "2072.54,2030.95", "CELTIC_HOUSEWIFE", 21)
CREATE_TOWN_VILLAGER(1, "2118.91,2083.39", "CELTIC_SHEPHERD", 24)
CREATE_TOWN_VILLAGER(1, "2118.71,2083.39", "CELTIC_FARMER", 27)
CREATE_TOWN_VILLAGER(1, "2118.51,2083.39", "CELTIC_FISHERMAN", 21)
CREATE_TOWN_VILLAGER(1, "2118.31,2083.39", "CELTIC_HOUSEWIFE", 22)
CREATE_CITADEL("1787.08,2066.63", 0, "PLAYER_TWO", 4500, 1000)
CREATE_ABODE(1, "1994.92,2005.61", "CELTIC_ABODE_B", 2861, 1000, 0, 0)
CREATE_ABODE(1, "1554.60,2329.75", "CELTIC_ABODE_WORKSHOP", 2534, 1000, 0, 0)
CREATE_ABODE(1, "1534.20,2209.85", "CELTIC_ABODE_STORAGE_PIT", 2679, 1000, 5000, 5000)
 
:woot :happytears: :yourock: CONGRADULATIONS OKAPIDRAGON!!! YOU'RE THE SCRIPTING CHAMPION!!! :yourock: :happytears: :woot
Now i only wish that i hadnt erased my landscape already :upside i would have liked to see if it really would have worked
 
.......last time ill need help on this i swear...  2 real small scripts, the first one loads, the second one doesnt, please tell me what im missing here...
Code:
START_GAME_MESSAGE("TESTER2", 0)
ADD_GAME_MESSAGE_LINE("As blank as posible.", 0)
VERSION(2.300)
SET_LAND_NUMBER(0)
LOAD_LANDSCAPE(".\DATA\LANDSCAPE\Land5.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)
Code:
START_GAME_MESSAGE("TESTER4", 0)
ADD_GAME_MESSAGE_LINE("Try not to funk up", 0)
VERSION(2.300)
SET_LAND_NUMBER(0)
LOAD_LANDSCAPE(".\DATA\LANDSCAPE\Land5.lnd")
START_CAMERA_POS("1275.35,3648.18")
SET_TOWN_INFLUENCE_MULTIPLIER(0.10000)
SET_PLAYER_INFLUENCE_MULTIPLIER(1.20)
SET_NIGHTTIME(1700.000000, 0.25, 0.05000)
CREATE_TOWN(1, "1543.26,3382.10", "NEUTRAL", 0, "GREEK")
CREATE_CITADEL("1275.35,3648.18", 1, "PLAYER_ONE", 900, 1000)
sorry, just figured it out
 
It's something in the CREATE_CITADEL line.

Are the coordinates valid?
 
it was the town assigned to it, switched it to 0 and now im about 1/10 done with a script, im understanding it all alot better now thanks to you and okapidragon. Takes a LONG time but its worth it to customize everything about a map. By the way, are there any requirements to a landscape? (like the minimum you can play) Im not positive but i dont think my other lnd wanted to work
 
I'm sure that I speak for Kays as well when I say we're glad to be of assistance. :woot
 
I have the exact same problem. The screen goes black when i try to play a mod i created.

Does anyone know why this is happening? A way to correct it?
 
Hi, what type of mod? Or are you creating or altering a map?
 
I don't understand gyvasype73's question, but I can tell unnonymous that, though it might not be what you're looking for, there seems to be a rather low maximum size for landscapes made from scratch, and that there are no other restrictions on landscapes as far as I can tell.
 
Back
Top