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

Modding and Scripting
Moderated by Yeebaagooon, TAG

Hop to:    
Welcome! You are not logged in. Please Login or Register.3 replies
Age of Mythology Heaven » Forums » Modding and Scripting » FairLoc Source Code available?
Bottom
Topic Subject:FairLoc Source Code available?
Izalith
Mortal
(id: Lilitu)
posted 29 December 2018 08:47 AM EDT (US)         
Hello,


does anyone know how the function FairLoc works internally & could provide the code?

Knowing how to imitate FairLoc properly is kinda useful when you want some RMS on which some of the players don't spawn.

Azarath Metrion Zinthos

Steam: Order of Azarath
Twitch: twitch.tv/orderofazarath
Discord: Azarath @ https://discord.gg/3ENKJeb
AuthorReplies:
TAG
That AoM Guy
(id: aom expert)
posted 06 January 2019 08:44 PM EDT (US)     1 / 3       
what is FairLoc?

Check out my YouTube
For live help with me, enter this chatroom. If I'm not on you can leave a message.
Izalith
Mortal
(id: Lilitu)
posted 07 January 2019 01:45 AM EDT (US)     2 / 3       
FairLoc short for FairLocations are some functions in RMS scripting which are used to place e.g. Settlements fairly.

Here a Quote from MythicFreaks Code Reference:
"These special commands are designed to place critical resources, such as Settlements and sometimes Gold Mines. They are expensive and slow, so should not be used for many objects, but can insure that objects that "must place" are present on a map."

https://mythicfreak.github.io/aomcodereference/


The FairLocs are probably threated differently by the code to ensure they are being placed. That we cannot replicate, but I was more interested in the fair positioning, like placing forward or backward TCs.. x.x

Azarath Metrion Zinthos

Steam: Order of Azarath
Twitch: twitch.tv/orderofazarath
Discord: Azarath @ https://discord.gg/3ENKJeb
nottud
Mortal
posted 07 January 2019 07:30 AM EDT (US)     3 / 3       
If it is for guaranteeing placement is there a way to detect failure and try again in a different position until succeed? I had a feeling there was some sort of way to detect placement failure but I may be wrong.
You must be logged in to post messages.
Please login or register

Hop to:    

Age of Mythology Heaven | HeavenGames