Page 1 of 2

Waiting on Data for my own server

Posted: Tue Sep 16, 2014 6:05 am
by Blackstorm
Hello,

Last night, i tried multiples things to test the public dev project (rev635).

I was able to login with my "old" client version (probably a febuary version 1.324.1.139565) through the vgclientlauncher -> Ok
I create a new character on new telon -> Ok
I backup my character template -> Ok
I login into the new telon server -> Ok
I logout properly and close the client -> Ok

After that, i compiled, on my dedicated linux serveur, the world server rev635 -> Ok (with the modifications set on some posts)
I ran my server -> Ok without error.
I checked its status on the web site -> My serveur is displayed up : Ok (but the web site, in the account management section update the server IP from my home and not from the server IP (the update work when you run the world server but it's overwrite when you load some pages on the web site))

I restart the vgclientlauncher -> Ok
I create a new character on my server -> Ok (i saw the character added to my server on the console)

-> but when i back to the main menu to choice my character, on my own server, i have always the "Waiting on Data..." message.

Is it normal plz ? the rev642 is actually running on the new telon server, so my rev635 is it always compatible with it plz ?

So after some tries i never log on my own server same after multiple delete/create... (i have no FW enable for your IP or mine)

Another bug, i think, when i create a new character, and have the custom pannel, the login server load automatically the backuped template and erase the new 'race' (skin only??) i chose...

Thanks for your work ! ^^

Re: Waiting on Data for my onw server

Posted: Tue Sep 16, 2014 9:29 am
by Volt
That might be the issue with having characters on multiple servers you are seeing. If so, deleting any characters you have on New Telon or other servers should let you in on your own server. viewtopic.php?f=28&t=713&start=20#p6543

(I vaguely recall Jimbo posting a work around being that if you are very fast to select your toon when the character select screen pops up you will get to your server. But I can't seem to find that now.)

Re: Waiting on Data for my onw server

Posted: Tue Sep 16, 2014 1:07 pm
by Lokked
Hi Blackstorm,
Volt is right: The issue is that the VGClient will only recognize characters on the server that gets its information requested first. This means that, if by default, your Character Select screen has a New Telon character selected when you start up Vanguard, you will only be able to log into New Telon.

Jimbo and Art of War had a discussion about this in another thread (I believe "Waiting on Data" was in the thread title), and they found that if you edit one of the .ini files (maybe VGClient.ini? I'm not at my home PC to check), there is a setting for last logged in char, or something to that effect. If you change that setting to the character name you are trying to log into on your Server, when next you run VGClient, it should reach Character Select with the character you'd mentioned in the INI, and you will be able to use your server (and thus, not log into New Telon at all. New Telon chars will display "Waiting on Data from Server").

If this doesn't work for you, deleting all of your New Telon characters and then restarting the client, as Volt suggested, will work.

Re: Waiting on Data for my onw server

Posted: Tue Sep 16, 2014 3:37 pm
by Blackstorm
Hi ^^

Thanks a lot for your 2 replies, effectively i saw a post about the fact that you must have only one char. but i thank that was 1/server ^^ my bad sorry ^^
I will try asap the .ini change, if it's possible by that way, i think it's better ^^

Thanks again and have a nice day.

Re: Waiting on Data for my onw server

Posted: Tue Sep 16, 2014 9:33 pm
by jimbo
Hi - The two options I found worked are
1. Change the .ini file
2. Simply select your char on your server - as soon as the list of chars screen comes up - within about a second - that's what I do and it works fine

I have been playing with my server for quite a while now - so if you need any help - don't hesitate to ask - but there is still a lot I don't know - its quite a complicated beast - but good fun working it out

Jim

Re: Waiting on Data for my onw server

Posted: Wed Sep 17, 2014 4:01 am
by Blackstorm
Hi Jimbo,

Thanks for your reply (i read entirely the post about that, and the error in the net.h), unfortunatly your bypass it's not working for me at this moment (too tired last night to perform a complete test)

-> changing the history.ini
-> Deleting all characters, servers, session

- for the history.ini, i think it's was because i had 2 characters (1 on new telon, 1 on Apocalypse server with the same first and last name)
- for the quick change when toons appear, it's not working for me too, i have always the "waiting on data" message.

At the end, same after deleting all and recreate all directly on my own server i cannot log in.
Other thing odd, is when i do a tcpdump on the vgoemulator.net ip on my server, i see only 1 or 2 replies between my server and yours like that :

Code: Select all

    68.98.218.5.10102 > 62.210.178.23.44645: Flags [.], cksum 0xfd7e (correct), seq 284, ack 6821, win 470, options [nop,nop,TS val 417121147 ecr 2737
01529], length 0
12:31:17.008916 IP (tos 0x0, ttl 64, id 32683, offset 0, flags [DF], proto TCP (6), length 57)
    62.210.178.23.44645 > 68.98.218.5.10102: Flags [P.], cksum 0x0f7d (incorrect -> 0xdd68), seq 6821:6826, ack 284, win 123, options [nop,nop,TS val
273709279 ecr 417121147], length 5
12:31:17.191246 IP (tos 0x28, ttl 44, id 45051, offset 0, flags [DF], proto TCP (6), length 52)
    68.98.218.5.10102 > 62.210.178.23.44645: Flags [.], cksum 0xc0ec (correct), seq 284, ack 6826, win 470, options [nop,nop,TS val 417128898 ecr 2737
09279], length 0
12:31:48.010421 IP (tos 0x0, ttl 64, id 32684, offset 0, flags [DF], proto TCP (6), length 57)
    62.210.178.23.44645 > 68.98.218.5.10102: Flags [P.], cksum 0x0f7d (incorrect -> 0xa0d5), seq 6826:6831, ack 284, win 123, options [nop,nop,TS val
273717030 ecr 417128898], length 5
12:31:48.193435 IP (tos 0x28, ttl 44, id 47409, offset 0, flags [DF], proto TCP (6), length 52)
    68.98.218.5.10102 > 62.210.178.23.44645: Flags [.], cksum 0x845a (correct), seq 284, ack 6831, win 470, options [nop,nop,TS val 417136648 ecr 2737
17030], length 0
12:32:19.006318 IP (tos 0x0, ttl 64, id 32685, offset 0, flags [DF], proto TCP (6), length 57)
    62.210.178.23.44645 > 68.98.218.5.10102: Flags [P.], cksum 0x0f7d (incorrect -> 0x6445), seq 6831:6836, ack 284, win 123, options [nop,nop,TS val
273724779 ecr 417136648], length 5
no more...

i wonder, if the login server and my server communication is good... like i said my architecture is :
-> vgclientlauncher : my home IP
-> Login server : vgoemulator IP (68.98.218.5)
-> World server : a third IP (62.210.178.23)

I saw many poeple that have the world server and the vgclient on the same computer... maybe in that case it's working fine.. i don't know.. i will try to have my world server on the same computer... too bad we have 7 or 8 hours of timing delay... but i will post my result asap ^^ (actually 12:40pm here ^^).

Otherwise, i have a question about the development, Xinux said me that you will use LUA for scripting... did you have (will have) an API to implemant scripting.. or we are talking about integrate completly the LUA core/function/events... please ?

Thanks ^^

Re: Waiting on Data for my own server

Posted: Wed Sep 17, 2014 6:04 am
by jimbo
Hi
Can you post what appears in your world server window when you start it up?
Is the IP address - 62.210.178.23 - the IP of your router or your actual PC - if its your router - I assume you have routed the ports needed thru to your
local workstation address - i.e a 192.168.0.NNN address?
Post your server startup screen and I'll compare to mine.

As for the query re LUA scripting - you'll have to talk to Lokked on that one.

Re: Waiting on Data for my own server

Posted: Wed Sep 17, 2014 7:17 am
by Blackstorm
Hi Jimbo,

No, the 62.210.178.23 ip is the external ip of my dedicated server on the web (so it's a direct ip interface, i have no FW on it, only fail2ban with iptables that block some services access like ssh, ntp, ddos when to many wrong attempt are flagged...).

I just try to run the world server on the same computer of my client, after open the correct ports, all are working fine. i was able to connect on it and i don't have the "waiting on data" message. (first good news)

So the problem should appear when the client and the world server are not on the same computer (or maybe LAN if you forward the correct port to the correct computer).

I will continue my tests this afternoon if i have time between 2 works ^^ or this night at home

I think i will check if my 10194-10300 UDP ports are listening (at least one) and are not used by another service... other head too, maybe it's a wrong redirect from the login server... it's odd that i see my home ip in the web interface for my server ip when i check the server info.

NB: sry for my english ^^ i hope i am understandable ^^

-> When i am on the same computer :

Code: Select all

15:36:35.563 I General  Starting VGOEmulator WorldServer v0.1 Alpha
15:36:35.566 I Database MySQL database connected to localhost:3306
15:36:35.703 I Config   Successfully loaded 440 packet structs.
15:36:35.705 D Rules    Loaded 1 Rule Sets
15:36:35.749 I Database Successfully loaded 389 Character Titles.
15:36:35.750 I Database Successfully loaded 4 variables.
15:36:35.778 I Database Successfully loaded 467 commands.
15:36:35.949 I Database Successfully loaded 123 Emotes.
15:36:35.951 I Net      Server listening on localhost:10100
15:36:36.108 I Net      Connected to login server 68.98.218.5:10102
15:36:57.724 I UDP      New client connected from 127.0.0.1:49352
15:36:57.724 I UDP      Received session request from 127.0.0.1:49352 with connection ID 1087511470
15:36:57.820 I Net      New Session: Account ID: 266  Session ID: 'q2k5rv3op4eodoto0jm3cokef3'
15:37:38.951 I UDP      Client from 127.0.0.1:49352 set to disconnect : Timeout
15:37:39.951 I UDP      Client from 127.0.0.1:49352 has been removed.
-> when i run the world server from my dedicated server (w debug lv5)

Code: Select all

01:27:53.056 I General  Starting VGOEmulator WorldServer v0.1 Alpha
01:27:53.058 I Database MySQL database connected to localhost:3306
01:27:53.058 D Database Select:
SELECT `opcode_id`,`opcode_name`
FROM `opcodes`
01:27:53.068 I Config   Successfully loaded 440 packet structs.
01:27:53.068 D Database Select:
SELECT `title_id`, `title_name`, `type`, `discovered_char_id_fk` FROM `titles`
01:27:53.069 I Database Successfully loaded 389 character titles.
01:27:53.069 D Rules    Loading Rule Sets...
01:27:53.069 D Database Select:
SELECT `ruleset_id`,`ruleset_name`
FROM `rulesets`
WHERE `ruleset_active`>0
01:27:53.069 D Rules    Loading rule set 'default_ruleset' (1)
01:27:53.069 D Database Select:
SELECT `rule_category`,`rule_type`,`rule_value`
FROM `ruleset_details`
WHERE `ruleset_id_fk`=1
01:27:53.070 D Rules    Setting rule category 'R_World', type 'DefaultStartingChunkID' to value: 1
01:27:53.070 D Rules    Setting rule category 'R_Dev', type 'LoadNPCData' to value: 1
01:27:53.070 D Rules    Setting rule category 'R_Player', type 'DefaultMovementSpeed' to value: 750.0
01:27:53.070 D Rules    Setting rule category 'R_Chunk', type 'ProcessThreadSleepMS' to value: 50
01:27:53.070 D Rules    Setting rule category 'R_Chunk', type 'RemoveSpawnDistance' to value: 17000
01:27:53.070 D Rules    Setting rule category 'R_Chunk', type 'MaxSendSpawnDistance' to value: 8500
01:27:53.070 D Rules    Setting rule category 'R_Chunk', type 'DefaultChunkShutdownTimer' to value: 300000
01:27:53.070 D Rules    Setting rule category 'R_World', type 'UseStartingLocations' to value: 1
01:27:53.070 D Rules    Setting rule category 'R_World', type 'ServerLocked' to value: 0
01:27:53.070 D Rules    Setting rule category 'R_Chunk', type 'HearChatDistance' to value: 8500
01:27:53.070 D Rules    Setting rule category 'R_Player', type 'DefaultTitlePrefix' to value: 600
01:27:53.070 D Rules    Setting rule category 'R_Player', type 'DefaultTitleSuffix' to value: 601
01:27:53.070 D Rules    Setting rule category 'R_Player', type 'DefaultTitleShow' to value: 1
01:27:53.070 D Rules    Loaded 1 Rule Sets
01:27:53.070 D Database Select:
SELECT `config_value`
FROM `variables`
WHERE `config_name`='default_ruleset_id'
01:27:53.071 D Rules    Loading Global Ruleset id 1
01:27:53.071 D Database Select:
SELECT id, `continent`, `shortname`, `filename`,`start_x`,`start_y`,`start_z`,`file_count`,`file_guid`, `file_size`,
`coord_x`, `coord_y`, `displayname`, `start_pitch`, `start_yaw`, `start_roll`, `chunk_type`, `behavior_flags`, `access_flags`,
`is_city`, `always_loaded`, `shutdown_timer`, `file_count`, `name_count`, `file_guid`, `file_size`, `ruleset_id`, `script_id`
FROM `chunks`
WHERE 1

01:27:53.076 D Database Select:
SELECT `config_name`, `config_value` FROM `variables` WHERE 1
01:27:53.076 I Database Successfully loaded 4 variables.
01:27:53.076 D Database Select:
SELECT `command_id`, `command_text`, `command_sub`, `command_access`
FROM commands
WHERE 1
01:27:53.078 I Database Successfully loaded 467 commands.
01:27:53.078 D Database Select:
SELECT `script_id`, `script_name` FROM `lua_scripts` WHERE `script_type` = 'Spawn'
01:27:53.078 D Database Select:
SELECT `script_id`, `script_name` FROM `lua_scripts` WHERE `script_type` = 'Chunk'
01:27:53.079 D Database Query:
UPDATE `characters` SET is_online = 0
01:27:53.079 D Database Select:
SELECT `file_index`, `fname`, `guid`, `flags`, `gen`, `size`,
`export_count`, `name_count`, `always_send`
FROM `unreal_files`
ORDER BY always_send DESC, file_order
01:27:53.100 D Database Select:
SELECT `emote_cmd`, `emote_response_notarget`, `emote_response_target`, `emote_animation_id` FROM `emotes`
01:27:53.101 I Database Successfully loaded 123 Emotes.
01:27:53.101 I Net      Server listening on localhost:10100
01:27:53.284 I Net      Connected to login server 68.98.218.5:10102
01:29:18.148 D Database Select:
SELECT `character_id`
FROM `characters`
WHERE `firstname`='Blackstorm'
AND is_deleted = 0
01:29:18.346 D LS       Create character request for 'Blackstorm' for account ID 266
01:29:18.346 D Database Query:
INSERT INTO `characters` (`account_id`,`firstname`,`lastname`,`adventure_class`,`race`,`gender`,`date_created`)
VALUES ('266','Blackstorm','Shogun','25','3','0',UNIX_TIMESTAMP())
01:29:18.348 D Rules    Rule: R_Player:DefaultTitleShow, Value: 1
01:29:18.348 D Rules    Rule: R_Player:DefaultTitlePrefix, Value: 600
01:29:18.348 D Rules    Rule: R_Player:DefaultTitleSuffix, Value: 601
01:29:18.348 D Database Query:
INSERT INTO `character_details` (`char_id_fk`,`title_show`,`title_prefix`,`title_suffix`) VALUES (1, 1, 600, 601)
01:29:18.348 D Database Query:
INSERT INTO `character_appearances` (`char_id_fk`,`appearance_id`,`appearance_value`) VALUES ('1','0','50'),('1','1','50'),('1','2','1'),('1','3','1')
,('1','4','1'),('1','5','1'),('1','6','1'),('1','7','1'),('1','8','1'),('1','9','1'),('1','10','1'),('1','11','1'),('1','12','50'),('1','13','50'),('1
','14','50'),('1','15','50'),('1','16','50'),('1','17','50'),('1','18','50'),('1','19','50'),('1','20','50'),('1','21','50'),('1','22','50'),('1','23'
,'50'),('1','24','50'),('1','25','50'),('1','26','50'),('1','27','50'),('1','28','50'),('1','29','50'),('1','30','50'),('1','31','50'),('1','32','50')
,('1','33','50'),('1','34','50'),('1','35','50'),('1','36','50'),('1','37','50'),('1','38','50'),('1','39','50'),('1','40','50'),('1','41','50'),('1',
'42','50'),('1','43','50'),('1','44','50'),('1','45','50'),('1','46','50'),('1','47','50'),('1','48','50'),('1','49','50'),('1','50','50'),('1','51','
50'),('1','52','50'),('1','53','50'),('1','54','50'),('1','55','50'),('1','56','50'),('1','57','50'),('1','58','50'),('1','59','50'),('1','60','50'),(
'1','61','50'),('1','62','50'),('1','63','50')
01:29:18.350 D Database Query:
INSERT INTO `character_titles` (`char_id_fk`,`title_id_fk`) VALUES (1,600)
01:29:18.350 D Database Query:
INSERT INTO `character_titles` (`char_id_fk`,`title_id_fk`) VALUES (1,601)
01:29:18.351 D Database Select:
SELECT `shortname`, s.`start_x`, s.`start_y`, s.`start_z` FROM starting_locations s, chunks c WHERE s.chunk_id = c.id AND class_id IN (25, 255) AND ra
ce_id IN (3, 255)
01:29:18.351 D Database Query:
UPDATE characters c1, chunks c2, starting_locations s SET
c1.current_chunk_fk = c2.id,
c1.starting_chunk_fk = c2.id,
c1.current_x = s.start_x,
c1.current_y = s.start_y,
c1.current_z = s.start_z,
c1.current_pitch = s.start_pitch,
c1.current_yaw = s.start_yaw,
c1.current_roll = s.start_roll
WHERE c2.id = s.chunk_id
AND s.class_id IN (25, 255)
AND s.race_id IN (3, 255)
AND c1.character_id = 1
01:29:18.352 D LS       Character 'Blackstorm' created with character ID 1
result : no error displayed but in the second case, i can't log on.

Re: Waiting on Data for my own server

Posted: Wed Sep 17, 2014 8:51 am
by Lokked
When you delete your characters, you are doing so from your Account Page, here on vgoemulator.net, correct?

I have run a WS from a different IP that my client connects from and it works. Have you forwarded to correct ports, from the Wiki page?

If you run Wireshark, or some pcap logger, filter to show only UDP and you should see a packet being sent from the Login Server with a list of characters and their associated World Server Names. Ensure this name matches your World name.

With your UDP Packets, you should see about 10 packets communicated from the Login Server, which ends with a list of Characters and World Names. The next set of packets are between your client and the World Server. If there is no World Server connection, you will only see your client repeatedly sending a small packet with the name of some World Server (hopefully your own) and the Login Server sending you the World Server name along with a bunch of other garbage (connection info).

Note: TCP is only for the connection between Login Server and the World Server.

I'm sure you've done this, but double check your setup of the vgoemu_world.xml (not the structs xml, the other one).

Re: Waiting on Data for my own server

Posted: Wed Sep 17, 2014 9:17 am
by Blackstorm
Hi Lokked,

Here is a dump from my dedicated serveur :

Code: Select all

root@sd-56056:~# tcpdump udp portrange 10100-10300 -n -vvv
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
18:15:57.989692 IP (tos 0x0, ttl 121, id 29460, offset 0, flags [DF], proto UDP (17), length 59)
    87.231.45.133.55748 > 62.210.178.23.10100: [udp sum ok] UDP, length 31
18:15:59.000512 IP (tos 0x0, ttl 121, id 29489, offset 0, flags [DF], proto UDP (17), length 59)
    87.231.45.133.55748 > 62.210.178.23.10100: [udp sum ok] UDP, length 31
18:16:00.008348 IP (tos 0x0, ttl 121, id 29521, offset 0, flags [DF], proto UDP (17), length 59)
    87.231.45.133.55748 > 62.210.178.23.10100: [udp sum ok] UDP, length 31
18:16:01.020086 IP (tos 0x0, ttl 121, id 29551, offset 0, flags [DF], proto UDP (17), length 59)
    87.231.45.133.55748 > 62.210.178.23.10100: [udp sum ok] UDP, length 31
18:16:02.030673 IP (tos 0x0, ttl 121, id 29603, offset 0, flags [DF], proto UDP (17), length 59)
    87.231.45.133.55748 > 62.210.178.23.10100: [udp sum ok] UDP, length 31
18:16:03.038484 IP (tos 0x0, ttl 121, id 29641, offset 0, flags [DF], proto UDP (17), length 59)
    87.231.45.133.55748 > 62.210.178.23.10100: [udp sum ok] UDP, length 31
18:16:04.048577 IP (tos 0x0, ttl 121, id 29683, offset 0, flags [DF], proto UDP (17), length 59)
    87.231.45.133.55748 > 62.210.178.23.10100: [udp sum ok] UDP, length 31
18:16:05.061426 IP (tos 0x0, ttl 121, id 29759, offset 0, flags [DF], proto UDP (17), length 59)
    87.231.45.133.55748 > 62.210.178.23.10100: [udp sum ok] UDP, length 31
18:16:06.068953 IP (tos 0x0, ttl 121, id 29780, offset 0, flags [none], proto UDP (17), length 59)
    87.231.45.133.55748 > 62.210.178.23.10100: [udp sum ok] UDP, length 31
18:16:07.079273 IP (tos 0x0, ttl 121, id 29798, offset 0, flags [none], proto UDP (17), length 59)
    87.231.45.133.55748 > 62.210.178.23.10100: [udp sum ok] UDP, length 31
but the client freeze and never get a return...