• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Gesior AAC] No vocations while creating an account

Dumjaevl

#1 Error Maker
Joined
Sep 9, 2011
Messages
46
Reaction score
2
Location
Sweden
As the title says, i've got some problems with creating new characters.

I've imported the vocations with the install.php.

Here's an image of how it looks :
P5In8tz.png



And if i login with the admin account "1" and go to "My account" i just get an White screen, so i wanted to explore the problem. I made an new account and created an character from Phpmyadmin, and it was the same problem.

Any solution?

Regards
 
Go to config/config.php and make sure you have them set in your array like this.
PHP:
$config['site']['newchar_vocations'] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample');
 
Go to config/config.php and make sure you have them set in your array like this.
PHP:
$config['site']['newchar_vocations'] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample');

Auugh, i don't even have that file ^^
I've got config.ini, and it looks like this

Code:
install = "no"
server_path = "C:/Users/promo/Desktop/Tibiaserver/"
houseXML_file_subdir = "data\world\theend-house.xml"
vocationXML_file_subdir = "data\XML\vocations.xml"
page_path = "http://127.0.0.1"
forum_link = "http://otland.net"
logo_monster = "Demon"
default_layout = "tibiacom"
layouts = "Tibia.com,tibiacom"
user_select_layout = "no"
send_emails = "no"
mail_address = "[email protected]"
smtp_enabled = "yes"
smtp_host = "smtp.wp.pl"
smtp_port = "25"
smtp_auth = "yes"
smtp_user = "gesiormail"
smtp_pass = "gesior123"
email_lai_sec_interval = "300"
one_email = "yes"
account_number = "custom"
email_days_to_change = "1"
max_players_per_account = "15"
char_type = "main"
char_vocations = ""
towns_list = "1,Evolvera"
show_mlvl = "1"
show_creationdate = "1"
guild_need_level = "50"
guild_need_pacc = "no"
guild_image_size_kb = "50"
guild_description_chars_limit = "1000"
guild_description_lines_limit = "6"
guild_motd_chars_limit = "150"
access_tickers = "1"
access_news = "2"
access_admin_panel = "3"
last_deaths_limit = "30"
news_ticks_limit = "5"
news_big_limit = "3"
vocations_list = "None,sorcerer,druid,paladin,knight,master sorcerer,elder druid,royal paladin,elite knight"
vocations_short_list = "None,Sorcerer,Druid,Paladin,Knight,MS,ED,RP,EK"
darkborder = "#D4C0A1"
lightborder = "#F1E0C6"
vdarkborder = "#505050"
verify_code = "no"
players_group_id_block = "3"
shop_system = "1"
download_page = "1"
serverinfo_page = "1"

Found this in the "accountmanagement.php"
Is the problem here?

Code:
if($config['site']['char_type'] == "main") {
                    $main_content .= '<div class="InnerTableContainer" >          <table style="width:100%;" ><tr><td><table class="TableContent" width="100%" ><tr class="Odd" valign="top"><td width="160"><br /><b>Select your vocation:</b></td><td><table class="TableContent" width="100%" >';
                    foreach($config['char_vocations'] as $char_vocation_key => $char_vocation_value) {
                        $main_content .= '<tr><td><input type="radio" name="newcharvocation" value="'.$char_vocation_key.'" ';
                        if($newchar_vocation == $char_vocation_key) {
                            $main_content .= 'checked="checked" ';

Bump..
 
Last edited by a moderator:
That link is a local link

nevermind i got it
http://otland.net/threads/gesior-acc-maker-for-tfs.4158/

This line 543 of accountmanagement.php lists your vocations on account page
Code:
foreach($config['char_vocations'] as $char_vocation_key => $char_vocation_value) {
          $main_content .= '<tr><td><input type="radio" name="newcharvocation" value="'.$char_vocation_key.'" ';
So its looking for this in the config.ini
Code:
char_vocations
And yours is blank, so replace it with this
Code:
char_vocations = "None,Rook Sample:Sorcerer,Sorcerer Sample:Druid,Druid Sample:Paladin,Paladin Sample:Knight,Knight Sample"

Explanations are always important to give, for people with similar problems.
 
Last edited by a moderator:
This line 543 of accountmanagement.php lists your vocations on account page
Code:
foreach($config['char_vocations'] as $char_vocation_key => $char_vocation_value) {
          $main_content .= '<tr><td><input type="radio" name="newcharvocation" value="'.$char_vocation_key.'" ';
So its looking for this in the config.ini
Code:
char_vocations
And yours is blank, so replace it with this
Code:
char_vocations = "None,Rook Sample:Sorcerer,Sorcerer Sample:Druid,Druid Sample:Paladin,Paladin Sample:Knight,Knight Sample"

I reseted and loaded the vocations again and it worked, but i get this error when selecting the vocation :
The Following Errors Have Occurred:
  • Wrong characters configuration ("Load vocations" in admin panel, "character to copy" doesn't exist in DB). Try again or contact with admin.

And if i change the "Char_vocations" they disappear again :/

Got something else? ^^
 
Code:
sample  voc : voc
key : value
$char_vocation_key : $char_vocation_value
<input type="radio" name="newcharvocation" value="'.$char_vocation_key.'" ';

Get the picture?
I didn't write this, frankly I think its kind of stupid the way it is written.
 
Back
Top