Imagine having a shelf with three drawers (the classical analogy for arrays). You need to also attack memory management. I'm not strong at с/с++ and assembler, usually i'am working with c#. DEBUG_save_map_csv("BuildingIndexMap1.csv", read_map_raw(BuildingIndexMap1)) -DEBUG_save_map_csv("BuildingIndexMap2.csv", read_map_raw(BuildingIndexMap2)) -DEBUG_save_map_csv("FlagsMap.csv", read_map_raw(FlagsMap)) -DEBUG_save_map_csv("HeightMap1.csv", read_map_raw(HeightMap1)) -DEBUG_save_map_csv("HeightMap2.csv", read_map_raw(HeightMap2)) -DEBUG_save_map_csv("UnknownMap.csv", read_map_raw(UnknownMap)) -DEBUG_save_map_csv("BuildingTypeMap.csv", read_map_raw(BuildingTypeMap)) end DEBUG_maps()Įven if i edit every static 400 value (0190 in hex) in assembler? My idea was to edit all array definitions too (when you pass array length), but maybe in assembly arrays works not like i think. write_map_raw(HeightMap2) write_map_raw(BuildingTypeMap, 0)
write_map_raw(BuildingIndexMap2) write_map_raw(HeightMap1, 32768) Sep = " " end local file = io.open(target_file, "w ")įor i, row in ipairs(data) do for j, v in ipairs(row) do if v = nil then print(i, " ", j) end end end function read_map_coordinates( source_array)įor j = 0, 399 do local value = source_array: read( Coordinate2BuildingOffset(j, i))Įnd function DEBUG_save_map_csv( target_file, data, sep) Local result_address = '"Stronghold Crusader.exe"+1F37300 ' local result = FirstCoordinateOffsetArray: read(second)ĭata = source_array: read( 160 *i +j)Įnd function write_map_raw( source_array, item) Local base_address = getAddress(MapDataBaseAddressName) GlobalBuildingLookupStride = 2 function Coordinate2BuildingOffset( first, second) '+1C7B80 ', 1, 1) - Set to 2 when building is placedīuildingTypeMap = MakeStridedArray(MapDataBaseAddressName. UnknownMap = MakeStridedArray(MapDataBaseAddressName. HeightMap2 = MakeStridedArray(MapDataBaseAddressName. HeightMap1 = MakeStridedArray(MapDataBaseAddressName. '+1895BB8 ', 2, 2) - alternative: "Stronghold Crusader.exe"+1895BB8įlagsMap = MakeStridedArray(MapDataBaseAddressName. '+2029B0 ', 2, 2)īuildingIndexMap2 = MakeStridedArray(MapDataBaseAddressName. Local FirstCoordinateOffsetArray = MakeStridedArray( '"Stronghold Crusader.exe"+1F37300 ', 12, 4, "First Coordinate Offsets ")īuildingIndexMap1 = MakeStridedArray(MapDataBaseAddressName.
Local TileFirstCoordinateOffsetArray = MakeStridedArray( '"Stronghold Crusader.exe"+AD31E4 ', 24, 4, "Second Coordinate Tile Offsets ") There is a lot of resources and every position has its own shortcomings and advantages.- This is the base address that is used for any map data accesses local MapDataBaseAddressName = '"Stronghold Crusader.exe"+1693208 ' - The following two offsets are probably used when iterating over the positions that belong to a building local MapDataSecondOffset = 0x554990 local MapDataFirstOffset = 0x55498C local MapDataAreaOffset = 0x554984 - entry = 196 * + local TileFirstCoordinateOffsetArray = MakeStridedArray( '"Stronghold Crusader.exe"+AD31E0 ', 24, 4, "First Coordinate Tile Offsets ") Unbalanced skirmish map with mountain walls between the keepsīalanced skirmish map with enough building space and resources Map for 8 kings, you have more grass in the north but less resources but in the south less grass but more resources. 4 lords of Georgia, 2 of Azerbaijan, 1 of Armenia and 1 of Turkey. Put correctly, Wolf-AI will automatically build his large castle.ħ player map with beautiful scenery, balanced This download includes 12 maps, 4 have outpost, 2 have castles to defend, and 12 new aiv "ai files" castles for stronghold crusaderġ2 Stronghold Crusader Maps And 12 AI Castles Designed By DK, Each Map is 400x400 and 2 of which are Castles, AIs For Abbot, Caliph, Frederick, Marshal-(2 AIs), Nizar, Pig, Rat-(2 AIs), Richard, Snake, And Sultan Included.Īn 8 player map by Dialkira. RESOURCES HERE ARE SCARSE - WILL GIVE YOU THE EXPERIENCE OF POOR ECONOMY AND REQUIREMENT TO MANAGE - Ambush your enemies using the ravines or hills! Just a pretty map with a bridge at its centerĪ three player UNBALANCED map which takes place in a mountainous area with a volcano.
3rd Campaign - Mission 44 - Between a rock and a hard place.Stronghold Crusader 2: Economic Missions.Stronghold Crusader 2: Military Missions.Stronghold Crusader Extreme: Walkthroughs.Stronghold Crusader Extreme: Skirmishes.Stronghold Crusader: Eyecandy and Landscapes.Stronghold Crusader: Economic Scenarios.