Map Crashes Consistently

warriorpega

New member
Joined
Nov 11, 2009
Messages
2
I'm new to mapping for BW, but I wanted to try my hand at making a very simplistic little village. So far, all my script has done is crash. While trying to open it, BW made it all the way to just before the game message. As far as I know, I have everything needed in the map file to create one.

Code is as follows:

VERSION(2.300000)
SET_LAND_NUMBER(0)
LOAD_LANDSCAPE(".\DATA\LANDSCAPE\Land1.lnd")
START_CAMERA_POS("2569.87,2676.76")
SET_GLOBAL_LAND_BALANCE(4, 1.00000)
SET_GLOBAL_LAND_BALANCE(5, 1.00000)
SET_GLOBAL_LAND_BALANCE(6, 50.00000)

SET_TOWN_INFLUENCE_MULTIPLIER(1.00000)
SET_PLAYER_INFLUENCE_MULTIPLIER(1.000000)
SET_NIGHTTIME(1700.000000, 0.45000, 0.50000)

START_GAME_MESSAGE("Once upon a time...", 0)
ADD_GAME_MESSAGE_LINE("...and then there were two.", 0)


rem *********************** GENERAL ***********************
rem -------------Insert General Settings Here-------------



rem *********************** PLAYER_ONE ***********************
rem -------------Insert Player One Settings Here-------------
rem --------------Town 0----------------------------------------
CREATE_TOWN(0, "2458.32,2791.16", "PLAYER_ONE", 0, "AFRICAN")
SET_TOWN_BELIEF(0, "PLAYER_ONE", 8000)
CREATE_TOWN_CENTRE(0, "2409.23,2793.74", "AFRICAN_ABODE_TOWN_CENTRE", 180, 1000, 0)
CREATE_NEW_TOWN_SPELL(0, "FOOD_PU1")
CREATE_NEW_TOWN_SPELL(0, "HEAL_PU1")
CREATE_NEW_TOWN_SPELL(0, "WOOD")
CREATE_NEW_TOWN_SPELL(0, "WATER_PU1")
CREATE_NEW_TOWN_SPELL(0, "FLYING_FLOCK")
CREATE_NEW_TOWN_SPELL(0, "FIRE")
CREATE_NEW_TOWN_SPELL(0, "LIGHTNING_BOLT_PU1")
CREATE_SPELL_DISPENSER(0, "2357.55,2736.89", "AFRICAN_ABODE_SPELL_DISPENSER", "CREATURE_SPELL_COMPASSION", 20, 1.0, 100)
CREATE_CITADEL("2261.96,2946.19", 0, "PLAYER_ONE", 0, 1000)
CREATE_ABODE(0, "2504.82,2829.91", "AFRICAN_ABODE_STORAGE_PIT", 0, 1000, 1000000, 2000000)
CREATE_ABODE(0, "2440.23,2796.32", "AFRICAN_ABODE_F", 0, 200, 0, 0)
CREATE_TOWN_VILLAGER(0, "2445.40,2785.99", "HOUSEWIFE", 21)
CREATE_TOWN_VILLAGER(0, "2440.23,2785.99", "FARMER", 21)
CREATE_NEW_TOWN_FIELD(0, "2463.48,2791.16", 2, 0)
CREATE_NEW_TOWN_FIELD(0, "2442.81,2832.50", 2, 0)
CREATE_NEW_TOWN_FIELD(0, "2460.90,2814.41", 2, 0)
 
Hi, glad to see that there's still an interest in BW1 mapping. :)

I don't see any obvious errors in that script.

What to do is to break a line up in the middle of the coordinates. What this does is to stop the map from loading and starts the game. If the game crashes, the poblem is before that point. If it loads then it's after that spot.
 
EDIT: Problem solved! Was missing the nationality before the Tribe_Job.

Using your method, I've managed to narrow it down (hopefully) to this updated piece of code, which still crashes the game:

CREATE_VILLAGER_POS("2440.23,2786.32", "2440.23,2785.99", "FARMER", 21)
CREATE_VILLAGER_POS("2440.23,2786.32", "2445.40,2785.99", "HOUSEWIFE", 21)
 
Yah, debugging B&W is a pain since there's no way to output an error so you can see what the problem is.

You don't need a town affiliation for CREATE_VILLAGER_POS. But there should be an adobe very close by for them to occupy. They will then be a part of that village.

Code:
CREATE_VILLAGER_POS("2440.23,2786.32", "2440.23,2785.99", "[color=red]AFRICAN_[/color]FARMER", 21)
CREATE_VILLAGER_POS("2440.23,2786.32", "2445.40,2785.99", "[color=red]AFRICAN_[/color]HOUSEWIFE", 21)

I don't know if African will work here. If not use one of the other tribe types
 
Back
Top