You must be logged in to post messages.
Please login or register

AI & RM Scripting
Moderated by Sebastien, Leif Ericson

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: Question concerning the standard map like Arabia
posted 07-02-15 03:59 PM CT (US)   
Hi all,
I start by sayng that I never edited or made by my self a random map script, but the question I will ask you is: "It is possible to modify standard maps like Arabia or Black Forest just for adding or replacing new wild animals on it?"

Thanks in advance to all!

Affa the Cleric
Replies:
posted 07-02-15 04:00 PM CT (US)     1 / 3  
Yes. Check out the gamedata_x1.drs file, many of its files are rm scripts.
posted 07-02-15 05:58 PM CT (US)     2 / 3  
Thanks John for your kind support, I'll check that file and try to "messing up" a bit with it, if I will need further helps I'll keep asking in this section!

[This message has been edited by AFFA the Cleric (edited 07-02-2015 @ 06:29 PM).]

posted 07-03-15 09:41 AM CT (US)     3 / 3  
Sorry for double post;
I managed to edit the bina file in gamedata_x1.dat file, but it dont work, can someone give me a step to step guide or redirecting me to an already existing guide?

This is what I've done in order to add the white wolf to random maps:

-Edited the first bina file 54000 by adding the new unit at the end of this string:

/* OBJECT TYPES *

#const WOLF 126
#const JAGUAR 812
#const RELIC285
#const PLANTS 818
#const JAVELINA 822
#const SNOWWOLF 127

-then at the end of this string:

/* EXPORTED FROM THE DATABASE */

#const WOAD_RAIDER 232
/* #const WOLF 126 */
#const WONDER 276
#const YURT 712
#const YURT2 713
#const YURT3 714
#const YURT4 715
#const YURT5 716
#const YURT6 717
#const YURT7 718
#const YURT8 719
/* #const SNOWWOLF 127 */

-Opened both the bina files number 54102 and 54103 and adding this at the end of the strings:

if TROPICAL_MAP
create_object JAGUAR
{
number_of_groups 3
set_loose_grouping
start_random
percent_chance 75
number_of_objects 1
percent_chance 25
number_of_objects 2
end_random
set_scaling_to_map_size
set_gaia_object_only
min_distance_group_placement 12
min_distance_to_players 40
max_distance_to_players 120
}
if FROZEN_MAP
create_object SNOWWOLF
{
number_of_groups 3
set_loose_grouping
start_random
percent_chance 75
number_of_objects 1
percent_chance 25
number_of_objects 2
end_random
set_scaling_to_map_size
set_gaia_object_only
min_distance_group_placement 12
min_distance_to_players 40
max_distance_to_players 120
}
else
create_object WOLF
{
number_of_groups 3
set_loose_grouping
start_random
percent_chance 75
number_of_objects 1
percent_chance 25
number_of_objects 2
end_random
set_scaling_to_map_size
set_gaia_object_only
min_distance_group_placement 12
min_distance_to_players 40
max_distance_to_players 120
}
endif

-after this I've tested the map Scandinavia but nothing has changed, no white wolves appears on the map, only the standard wolves appears...

Maybe I missing somthings or I need to add the white wolf in each maps bina files?
___________________________________________________________________________________________________________

EDIT: I've managed to put withe wolves in Scandinavia random map, but a new problem has rised, the computer players AIs don't respond to the atacks of the withe wolves, so a single wolf is able to asphalt an empire without being killed...

[This message has been edited by AFFA the Cleric (edited 07-03-2015 @ 04:09 PM).]

Age of Kings Heaven » Forums » AI & RM Scripting » Question concerning the standard map like Arabia
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Age of Kings Heaven | HeavenGames