[Guide] Allods 1.1.02.0 Server Setup on Windows

Jinjer LC

Member
Honored Member
Guide Author
Seller
Allods 1.1.02.0 Server Setup
All files
You do not have permission to view link Log in or register now.


OR

Separate
links
You do not have permission to view link Log in or register now.

You do not have permission to view link Log in or register now.

You do not have permission to view link Log in or register now.

PostgreSQL 9.2.13-1 [WINDOWS x64]
You do not have permission to view link Log in or register now.

You do not have permission to view link Log in or register now.

You do not have permission to view link Log in or register now.
Install required java version linked in 0. Get the required files , Add an Environment variable in System Variables by pressing NEW and adding JAVA_HOME as a Variable name and path to Java folder as Value
Install Normally REMEMBER THE PASSWORD , check open stack builder and after selecting your Postgresql server download pgJDBC and psqlODBC and go through installation (errors might show up but it didn't halt my server from running)


open pgadmin, use your password to login into your server and right click databases > Create database and name it ao_account_trunk16
Install the provided version of wamp normally and extract the wamp.rar into the wamp main directory

left click wamp icon and open php.ini

look for Paths and Directories and paste this path right under it
include_path = ".;C:\wamp\allods\hessian;C:\wamp\allods\hessianPhpPatch;C:\wamp\allods\j2php"

it should look like this

With wamp running head over to
You do not have permission to view link Log in or register now.
and open database tab

1581100272147.png
and add these databases one by
Code:
allods_online_auction_trunk_10
    allods_online_billing_trunk_rc2
    allods_online_guild_trunk_6
    allods_online_mail_rc_1_1_02
    allods_online_masterserver_trunk
    allods_online_rc_1_1_02
with wamp open go to \server_bin\accountServer\cfg edit shard_local edit password to what you set your Postgresql to leave blank if there no password (example mine is 1234 here)
1581100821492.png

Test run startAccountServer.bat inside server_bin\accountServer if successful it should state
account server started, client <-> account server version = 22, shard <-> account server version = 13
if not check if you got the password right (remember it needs the one set back when installing Postgresql)

1581101033797.png
with wamp open and startAccountServer.bat running head to C:\wamp\www\php and edit accountExample.php
1581101359777.png
edit your desired account name and password and make sure AccountStatus is set to ACTIVE
go to
You do not have permission to view link Log in or register now.
to create your account
if successful you should see SUCCESS at the far end of the page

1581101637393.png

Ref for accountexample.php:
PHP:
<?php

require_once( 'HessianClient.php' );

require_once('./accountApi.inc.php');
require_once('./ServerVersion.inc.php');

$url = 'http://127.0.0.1:9337';
$version = 8;

echo "URL = $url\n";

$serverVer = new ServerVersion($url, 'AccountAPI');
$path = $serverVer->getVersionPath($version);
if (is_null($path)) {
  echo "Supported versions are:\n";
  $versions = $serverVer->getSupportedVersions();
  print_r($versions);
  echo "\n";
  die("api version $version not supported");
}

echo "Path = $path\n";

$proxy = new HessianClient($url . $path);

registerAccountMethods($url . $path);

$result = $proxy->createAccountEx('ACCOUNT_NAME', 'PASSWORD', AccessLevel::Master(), AccountStatus::Active());

if ($result->isOk()) {
  echo "Created!\n";
} else {
  echo "Failed! " . $result->toString();
}

echo "\nDEBUG\n";
var_export($result);

echo "\nDEBUG\n";
$result = $proxy->getAccountStatus('ACCOUNT_NAME');
var_export($result);

$proxy->setAccountStatus('ACCOUNT_NAME', AccountStatus::Active());

echo "\nDEBUG\n";
$result = $proxy->getAccountStatus('ACCOUNT_NAME');
var_export($result);

?>
You should only edit your shard_local.xml located inside \server_bin\masterServer\cfg only if you added a password to wamp if you didnt then leave blank
open BIMHelper.zip
extract XDB_ItemMall.Server.pak inside \game\data\Packs
extract billingServer and itemMallServer folders inside \server_bin
extract allods_online_billing_trunk_rc2.sql in \server_bin\billingServer
run startbilingServerCommon.bat in \server_bin\billingServer
run startitemMallServerCommon.bat in \server_bin\itemMallServer
head to
You do not have permission to view link Log in or register now.
and open allods_online_billing_trunk_rc2 database
1581103667113.png

choose import option and import allods_online_billing_trunk_rc2.sql
1581103717968.png

after executing you should see this
1581103762767.png
if not then make sure you are running billing and item mall bats
you need to restart them both after import so you see the changes apply (no need to restart shard)
go to \server_bin\shard\cfg and edit shard xml
your ip and ports should coincide with the respective server cfgs (change territory to USA so you can add english named characters)

1581104388377.png
inside \server_bin\shard\cfg
there are 2 files: all_maps.cfg and maps.cfg


all_maps.cfg is where you'll find reference to all maps inside the files
maps.cfg is where we put the maps we want to run in our current session not all maps need to be running for the server to run. you need 16gb of ram allocated to the server to run all maps in this version.

a simple copy of the maps you want to run from all_maps to maps will make the maps copied available


if you want to allocate more ram to your server simply edit the highlighted value in startServerDefault.bat
startaccountserver.bat
startbilingServerCommon.bat
startitemMallServerCommon.bat
startMasterServer.bat
startServerDefault.bat

Dont panic shard will take a while to boot and you should see allods online appear in startServerDefault.bat if all goes well:
1581104705940.png
 
Last edited by a moderator:

Сорок два

Administrator
Staff member
Admin
Content Creator
Guide Author
Seller
Premium
Really clean and complete guide for Windows environment ! Tyvm JinjerLC !
 
Fantastic share and rather well informed with a firm structure!
 
Не могу разобраться с пунктом 4.Setting up account server. Где находится эта папка \server_bin\accountServer\cfg ?
 
OP
Jinjer LC

Jinjer LC

Member
Honored Member
Guide Author
Seller
[QUOTE = "kaonashi, post: 4921, member: 88"]
I can not figure out 4.Setting up account server. Where is this folder \ server_bin \ accountServer \ cfg located ?
[/ QUOTE]
In your server files
 

Kralnor

Well-known member
You do not have permission to view link Log in or register now.

Not downloading

Mod Edit : The link has been updated ! Thanks Kralnor !
 
Last edited by a moderator:

cazer

New member
I will use vpn for getting access to this game
 

cazer

New member
I found different new vpn lately
 
Hello, when i start AOgame.exe and try login i receive this error. Can anybody help with this?Capture.PNG
 
Можно еще просто отключить проверку сертификата на уровне сервера, но такое.
 
Hello, direct link to PostgreSQL 9.2.13-1 [WINDOWS x64] does not work, can you tell me if there is another one?
 
Everything working, but only in local machine. Does anyone know, how to setup server on vm or another pc in LAN?
 
sorry for my english

I think I should write to the topic help. But I tried to do like in this guide, so I'll write here for now.
Now, I moved this message to help: https://community.allods-developers.eu/threads/problems-with-localshard-and-lan-access.468/

I wanna die after trying to configure access from different machines with radmin vpn.

26.36.157.123 my ip in lan

And configuration on account server is good work. And with this my friend can connect to account.
<accountServer maxUsersOnShard="1000" clientsLimit="50" build="builds/standard.xml" versionOnLogin="-1" memory="500" ip="26.36.157.123">
<approve ip="26.36.157.123" port="9318"/>
<auth ip="26.36.157.123" port="9317" timeout="30000"/>
<api protocol="http" host="127.0.0.1" port="9337"/>
<db host="127.0.0.1" user="postgres" password="spm123" config="accountserverdb-config-pgsql.properties"/>
</accountServer>


But if he try to connect to shard: failed... but i can to connect successfully.
Log of account server when he try:
[01-11 06:21:19,339, 5083743] crypt_worker_1 - INFO accountserver.helper.LoginMsgHelper : test1 (26.18.68.76) logined succesfully
[01-11 06:21:23,981, 5088385] main - INFO accountserver.shard.ShardListPipe : test1 sent to 26.36.157.123:9325(trunk_local)
[01-11 06:21:24,506, 5088910] net_worker_0 - INFO accountserver.listeners.AuthentificationListener : name "test1"; socket id = 32, socket /26.18.68.76:56565 -> /26.36.157.123:9317; closed true closed (peer closed connection; null)
[01-11 06:21:46,936, 5111340] net_worker_0 - INFO accountserver.listeners.ApproveListener : connection to frontend Socket[addr=/26.36.157.123,port=57839,localport=9318] lost, reason: connection lost, exception java.io.IOException: ”даленный хост принудительно разорвал существующее подключение
[01-11 06:21:46,940, 5111344] net_worker_0 - INFO accountserver.shard.ShardsHolder : removing front-end 31
[01-11 06:21:46,938, 5111342] net_worker_2 - INFO accountserver.listeners.ApproveListener : connection to frontend Socket[addr=/26.36.157.123,port=57838,localport=9318] lost, reason: connection lost, exception java.io.IOException: ”даленный хост принудительно разорвал существующее подключение
[01-11 06:21:46,945, 5111349] net_worker_2 - INFO accountserver.shard.ShardsHolder : removing front-end 30
[01-11 06:21:46,950, 5111354] net_worker_1 - INFO accountserver.listeners.ApproveListener : connection to frontend Socket[addr=/26.36.157.123,port=57837,localport=9318] lost, reason: connection lost, exception java.io.IOException: ”даленный хост принудительно разорвал существующее подключение
[01-11 06:21:46,950, 5111354] net_worker_0 - INFO accountserver.listeners.ApproveListener : connection to frontend Socket[addr=/26.36.157.123,port=57836,localport=9318] lost, reason: connection lost, exception java.io.IOException: ”даленный хост принудительно разорвал существующее подключение
[01-11 06:21:46,953, 5111357] net_worker_1 - INFO accountserver.shard.ShardsHolder : removing front-end 29
[01-11 06:21:46,958, 5111362] net_worker_0 - INFO accountserver.shard.ShardsHolder : removing front-end 28
[01-11 06:22:24,030, 5148434] main - INFO accountserver.session.SessionHolder : Session of test1 is expired

Configuration of shard.xml:
<shard role="LocalShard" memory="1200" ip="26.36.157.123">
<frontEnd externalHost="26.36.157.123" ip="127.0.0.1" port="9324" timeout="60000"/>
<db host="127.0.0.1" user="root" password="" config="db/database-config-trunk.properties"/>
<auction host="127.0.0.1" user="root" password="" db="db/auctiondb-config-trunk.properties"/>
<mail host="127.0.0.1" user="root" password="" db="db/maildb-config.properties"/>
<guild host="127.0.0.1" user="root" password="" db="db/guilddb-config.properties"/>
<http host="26.36.157.123" port="82"/>
<indicator/>
<doorway/>
</shard>

If i change (frontEnd ip="26.36.157.123") than shard crashed with: local shard must start on 127.0.0.1

What am I doing wrong?
 
Last edited:
My work set
192.168.1.12 - server ip in local net

<?xml version="1.0" encoding="utf-8"?>
<config name="test_trunk_shard" build="Debug" serversNeed="1" mapServicesAmount="1">
<net basePort="9000" datagramPort="8000" bindPortsRange="15"/>
<logging args="logging.channels.local.LocalChannelEngineFactory --defaultlogpath --logpath=/local/temp --format=CSV --start"/>

<accountServer maxUsersOnShard="1000" clientsLimit="50" build="builds/standard.xml" versionOnLogin="-1" memory="500" ip="127.0.0.1">
<approve ip="192.168.1.12" port="9318"/>
<auth ip="192.168.1.12" port="9317" timeout="30000"/>
<api protocol="http" host="127.0.0.1" port="9337"/>
<db host="127.0.0.1" user="postgres" password="postgres" config="accountserverdb-config-pgsql.properties"/>
</accountServer>
</config>

<?xml version="1.0" encoding="utf-8"?>
<config name="cbt_local" build="Debug" serversNeed="8" mapServicesAmount="1">

<logging kind="local">
<local format="csv"/>
</logging>

<billingServer ip="192.168.1.12">
<net port="9320" host="192.168.1.12"/>
<api port="8080" host="192.168.1.12"/>
<db host="127.0.0.1" user="allods_online" password="" config="billingdb-config-trunk.properties"/>
</billingServer>
</config>

<?xml version="1.0" encoding="utf-8"?>
<config name="cbt_local" build="Debug" serversNeed="8" mapServicesAmount="1">
<net basePort="9000" datagramPort="8000" bindPortsRange="15"/>
<resourceSystem skipClientResources="true" restrictedMapsLoading="true"/>

<logging kind="local">
<local format="csv"/>
</logging>

<itemMallServer ip="192.168.1.12">
<net ip="192.168.1.12" port="9321"/>
<assortment banners-config="banners.cfg"/>
</itemMallServer>

<billingServer>
<net port="9320" host="192.168.1.12"/>
</billingServer>
</config>

<?xml version="1.0" encoding="utf-8"?>
<config>
<resourceSystem restrictedMapsLoading="true" checkResourceSystemIndex="false"/>

<masterServer memory="1024" ip="192.168.1.12">
<db host="127.0.0.1" user="allods_online" password="" config="masterserverdb-config-trunk.properties"/>
<net ip="192.168.1.12" port="9500"/>
<api ip="127.0.0.1" port="10500"/>
</masterServer>
</config>

<?xml version="1.0" encoding="utf-8"?>
<config name="AOSRV" comment="" build="Debug" serversNeed="1" maxUsers="5000">
<net basePort="10000" consoleAccessPort="9856"/>
<resourceSystem storeXdbLinks="true" useInternalization="true"/>

<content territory="Russia" pack="Base"/>

<logging kind="local">
<local format="csv"/>
<remote host="localhost" port="8888"/>
</logging>

<shard role="LocalShard" memory="16384" ip="192.168.1.12">
<frontEnd externalHost="192.168.1.12" ip="192.168.1.12" port="9322" timeout="60000"/>
<db host="127.0.0.1" user="allods_online" password="" config="db/database-config-trunk.properties"/>
<auction host="127.0.0.1" user="allods_online" password="" db="db/auctiondb-config-trunk.properties"/>
<mail host="127.0.0.1" user="allods_online" password="" db="db/maildb-config.properties"/>
<guild host="127.0.0.1" user="allods_online" password="" db="db/guilddb-config.properties"/>
<http host="192.168.1.12" port="82"/>
<indicator/>
<doorway/>
</shard>

<itemMallServer>
<net ip="192.168.1.12" port="9321" reconnect-timeout="30"/>
</itemMallServer>

<accountServer maxUsersOnShard="1000" build="builds/standard.xml">
<approve ip="192.168.1.12" port="9318"/>
<auth ip="192.168.1.12" port="9317" timeout="30000"/>
<api protocol="http" host="192.168.1.12" port="9337"/>
</accountServer>

<masterServer>
<net ip="192.168.1.12" port="9500"/>
<api ip="192.168.1.12" port="10500"/>
</masterServer>

<billingServer>
<net port="9320" host="192.168.1.12"/>
<api port="8080" host="-1"/>
</billingServer>

<resourceErrorsEnabled>false</resourceErrorsEnabled>

<gameMechanics>
<characterCreation allowDiffFactions="true"/>
<character levelCap="42"/>
<shipRate build="1" buildReduce="1"/>
<mobExpRate>1</mobExpRate>
<questExpRate>1</questExpRate>
</gameMechanics>

<!-- use fake address of gametool - 127.0.0.2 - to avoid same ip as local shard -->
<gametoolEAR ip="127.0.0.2" lang="rus">
<standard-gametool-config>
<mode name="single"/>
<instance name="Trunk shard"/>
<database-defaults>
<default-gametool-database port="5432" database="gametool" login="gametool" password="gametool"/>
<default-logserver-database host="127.0.0.1" port="5432" database="logserver" login="logserver" password="logserver"/>
</database-defaults>
<master address="127.0.0.1" login="*" password="*"/>
<shard id="trunk_local" name="trunk_local" address="127.0.0.1"
login="*" password="*"/>
</standard-gametool-config>
</gametoolEAR>

</config>
 

Paulus

Administrator
Staff member
Admin
Content Creator
Guide Author
sorry for my english

I think I should write to the topic help. But I tried to do like in this guide, so I'll write here for now.
Now, I moved this message to help: https://community.allods-developers.eu/threads/problems-with-localshard-and-lan-access.468/

I wanna die after trying to configure access from different machines with radmin vpn.

26.36.157.123 my ip in lan

And configuration on account server is good work. And with this my friend can connect to account.
<accountServer maxUsersOnShard="1000" clientsLimit="50" build="builds/standard.xml" versionOnLogin="-1" memory="500" ip="26.36.157.123">
<approve ip="26.36.157.123" port="9318"/>
<auth ip="26.36.157.123" port="9317" timeout="30000"/>
<api protocol="http" host="127.0.0.1" port="9337"/>
<db host="127.0.0.1" user="postgres" password="spm123" config="accountserverdb-config-pgsql.properties"/>
</accountServer>


But if he try to connect to shard: failed... but i can to connect successfully.
Log of account server when he try:
[01-11 06:21:19,339, 5083743] crypt_worker_1 - INFO accountserver.helper.LoginMsgHelper : test1 (26.18.68.76) logined succesfully
[01-11 06:21:23,981, 5088385] main - INFO accountserver.shard.ShardListPipe : test1 sent to 26.36.157.123:9325(trunk_local)
[01-11 06:21:24,506, 5088910] net_worker_0 - INFO accountserver.listeners.AuthentificationListener : name "test1"; socket id = 32, socket /26.18.68.76:56565 -> /26.36.157.123:9317; closed true closed (peer closed connection; null)
[01-11 06:21:46,936, 5111340] net_worker_0 - INFO accountserver.listeners.ApproveListener : connection to frontend Socket[addr=/26.36.157.123,port=57839,localport=9318] lost, reason: connection lost, exception java.io.IOException: ”даленный хост принудительно разорвал существующее подключение
[01-11 06:21:46,940, 5111344] net_worker_0 - INFO accountserver.shard.ShardsHolder : removing front-end 31
[01-11 06:21:46,938, 5111342] net_worker_2 - INFO accountserver.listeners.ApproveListener : connection to frontend Socket[addr=/26.36.157.123,port=57838,localport=9318] lost, reason: connection lost, exception java.io.IOException: ”даленный хост принудительно разорвал существующее подключение
[01-11 06:21:46,945, 5111349] net_worker_2 - INFO accountserver.shard.ShardsHolder : removing front-end 30
[01-11 06:21:46,950, 5111354] net_worker_1 - INFO accountserver.listeners.ApproveListener : connection to frontend Socket[addr=/26.36.157.123,port=57837,localport=9318] lost, reason: connection lost, exception java.io.IOException: ”даленный хост принудительно разорвал существующее подключение
[01-11 06:21:46,950, 5111354] net_worker_0 - INFO accountserver.listeners.ApproveListener : connection to frontend Socket[addr=/26.36.157.123,port=57836,localport=9318] lost, reason: connection lost, exception java.io.IOException: ”даленный хост принудительно разорвал существующее подключение
[01-11 06:21:46,953, 5111357] net_worker_1 - INFO accountserver.shard.ShardsHolder : removing front-end 29
[01-11 06:21:46,958, 5111362] net_worker_0 - INFO accountserver.shard.ShardsHolder : removing front-end 28
[01-11 06:22:24,030, 5148434] main - INFO accountserver.session.SessionHolder : Session of test1 is expired

Configuration of shard.xml:
<shard role="LocalShard" memory="1200" ip="26.36.157.123">
<frontEnd externalHost="26.36.157.123" ip="127.0.0.1" port="9324" timeout="60000"/>
<db host="127.0.0.1" user="root" password="" config="db/database-config-trunk.properties"/>
<auction host="127.0.0.1" user="root" password="" db="db/auctiondb-config-trunk.properties"/>
<mail host="127.0.0.1" user="root" password="" db="db/maildb-config.properties"/>
<guild host="127.0.0.1" user="root" password="" db="db/guilddb-config.properties"/>
<http host="26.36.157.123" port="82"/>
<indicator/>
<doorway/>
</shard>

If i change (frontEnd ip="26.36.157.123") than shard crashed with: local shard must start on 127.0.0.1

What am I doing wrong?

A java class from client must be edited to allow other IP than local ip
 
Good afternoon!
I did everything according to the instructions, everything was fine (masterserver, accountstatus, accountserver)
But when i try to load "startServerDefault" nothing happens.
Could you help me please.
 

Attachments

  • account.png
    account.png
    30 KB · Views: 51
  • accountserver.png
    accountserver.png
    63.4 KB · Views: 54
  • masterserver.png
    masterserver.png
    66.4 KB · Views: 59
  • serverdefault.png
    serverdefault.png
    87.3 KB · Views: 53
Good afternoon!
I did everything according to the instructions, everything was fine (masterserver, accountstatus, accountserver)
But when i try to load "startServerDefault" nothing happens.
Could you help me please.
Good afternoon again!
I started the server with first locations.
But when i change memory size more then 1400 in bat "startServerDefault " an error occurs (for more locations, step 9 in example).
With 1400 memory size and all locations server didnt start (error).
I think this is related to the java version (x86). But i dont know what to do.
 

Attachments

  • 2048.png
    2048.png
    58.3 KB · Views: 41
  • error.png
    error.png
    57.5 KB · Views: 40
Last edited:

Top Bottom