Commit Graph

265 Commits

Author SHA1 Message Date
Loïc Hoguin
f8bdeb99c7 psu_proto: Review and move send_0231 to psu_proto. 2010-09-22 22:28:27 +02:00
Loïc Hoguin
8a8d800118 psu_proto: Pass the process state to send_0d05. 2010-09-22 04:22:15 +02:00
Loïc Hoguin
ec22000d51 psu_proto: Pass the process state to send_0c00. 2010-09-22 04:19:04 +02:00
Loïc Hoguin
e3bd9a38a6 psu_proto: Pass the process state to send_0a05. 2010-09-22 04:16:03 +02:00
Loïc Hoguin
eca850f396 psu_proto: Pass the process state to send_0216. 2010-09-22 04:12:51 +02:00
Loïc Hoguin
fc50c22a0f psu_proto: Pass the process state to send_0215. 2010-09-22 03:44:49 +02:00
Loïc Hoguin
092f311742 psu_proto: Pass the process state to send_020e. 2010-09-22 03:27:45 +02:00
Loïc Hoguin
dd37bcb941 psu_proto: Pass the process state to send_020c. 2010-09-22 03:16:57 +02:00
Loïc Hoguin
91f32909bd psu_proto: Pass the process state to send_0205. 2010-09-22 03:10:53 +02:00
Loïc Hoguin
18d97c2ca3 psu_proto: Simplify state usage. 2010-09-22 00:34:01 +02:00
Loïc Hoguin
c565e398b7 psu_proto: Pass the process state to send_0202. 2010-09-22 00:25:30 +02:00
Loïc Hoguin
38157769c2 psu_proto: Pass the process state to send_0201. 2010-09-22 00:21:25 +02:00
Loïc Hoguin
0a7aeff56b psu_proto: Pass the process state to send_0d01. 2010-09-22 00:18:00 +02:00
Loïc Hoguin
f585a916e6 psu_parser: Windows use a different line break convention. 2010-09-21 23:23:58 +02:00
Loïc Hoguin
83344214f7 psu_proto: Review 0216 and move it to psu_proto. 2010-09-20 00:53:06 +02:00
Loïc Hoguin
6b8597c506 psu_proto: Remove some old comments. 2010-09-19 19:31:04 +02:00
Loïc Hoguin
9316c26831 psu_proto: Move system_motd_accept to events and ignore it. 2010-09-19 19:27:52 +02:00
Loïc Hoguin
ce83cf28c0 psu_proto: Properly detect entrance in system_client_version_info. 2010-09-19 19:19:09 +02:00
Loïc Hoguin
83290bc0ef psu_proto: Move system_motd_request to events. 2010-09-19 18:41:06 +02:00
Loïc Hoguin
05c1cc0dfd psu_proto: Move system_login_auth_request to events. 2010-09-19 17:51:42 +02:00
Loïc Hoguin
7197e5df21 psu_proto: Move system_game_server_request to events. 2010-09-19 17:31:46 +02:00
Loïc Hoguin
8a88d63e48 egs_game: Change the process message names following network code refactoring. 2010-09-18 23:38:23 +02:00
Loïc Hoguin
a498359165 egs_game: Fix the newly introduced bug when using uni cube. 2010-09-18 23:30:31 +02:00
Loïc Hoguin
989f152478 psu_proto: Remove packet_recv, packet_split, packet_parse, unused following the refactoring of the network stack. 2010-09-18 22:57:55 +02:00
Loïc Hoguin
9ba7e25d64 egs_login_server: Abstract the login server. Share the code for login server and game auth. 2010-09-18 22:53:15 +02:00
Loïc Hoguin
f52c133c6a egs_game_server: Separate the general game server handling into this new module. 2010-09-18 21:37:48 +02:00
Loïc Hoguin
59b0438434 psu_game: Abstract network, login/auth, character select and game into their own modules. 2010-09-18 19:57:55 +02:00
Loïc Hoguin
04487676f0 psu_game: Fix Lumilass options for all races and gender. 2010-09-16 23:15:39 +02:00
Loïc Hoguin
9c12812364 psu_instance: Handle goggle_target properly. 2010-09-13 19:36:08 +02:00
Loïc Hoguin
c2adcb7018 psu_game: Don't reload the area twice in story missions when the NPC follows. 2010-09-12 23:42:36 +02:00
Loïc Hoguin
3c90c8e4bc items: Initial weapons handling. Added 3 swords with various differences. 2010-09-12 23:27:28 +02:00
Loïc Hoguin
2cf0989621 psu_game: Initial inventory handling. Added special items all available in the test inventory. 2010-09-12 02:42:32 +02:00
Loïc Hoguin
d7bf8e1868 psu_game: Empty the inventory. 2010-09-12 00:36:54 +02:00
Loïc Hoguin
ab05db4466 psu_parser: Fix Windows detection. 2010-09-10 15:33:40 +02:00
Loïc Hoguin
32c080e928 psu_game: Regression fix for people getting disconnecting randomly in missions. 2010-09-09 00:58:03 +02:00
Loïc Hoguin
37a46a3953 items: Added all male and female parts. 2010-09-08 03:54:44 +02:00
Loïc Hoguin
4ffd581b4a items: Add male clothes. 2010-09-06 23:09:50 +02:00
Loïc Hoguin
c0ff7100fb psu_game: Fix send_0222 based on research. This fixes the EXP TNL issue. 2010-09-05 15:38:58 +02:00
Loïc Hoguin
3ac88d6d81 psu_game: Fix various LID issues. 2010-09-05 15:38:28 +02:00
Loïc Hoguin
ad9dede8bc psu_proto: Added 2 more @todo for item_learn_pa or npc_shop_gift_wrap. 2010-09-05 15:32:51 +02:00
Loïc Hoguin
c43d069620 psu_game: The 021b command must be sent everytime char_load is called. 2010-09-05 00:46:38 +02:00
Loïc Hoguin
0d7147b842 psu_proto: Move system_client_hardware_info to events and ignore it for now. 2010-09-04 21:00:55 +02:00
Loïc Hoguin
abf8f06625 psu_proto: Review and move char_select_create, char_select_enter, char_select_request to events. 2010-09-04 19:59:06 +02:00
Loïc Hoguin
8abaaada90 psu_game: Log information when the user buy or sell something. 2010-09-04 19:01:35 +02:00
Loïc Hoguin
7b79545c95 items: Add the description and send it to the client when requested. 2010-09-04 16:33:40 +02:00
Loïc Hoguin
62e0b662b9 psu_proto: Added two @todo comments. 2010-09-04 16:06:46 +02:00
Loïc Hoguin
c79ef69b40 items: Added all the remaining items for the consumable shops. 2010-09-04 15:52:10 +02:00
Loïc Hoguin
b4b692ed5e psu_game: Start the items database. Use items to generate the consumable items shops listings. 2010-09-04 03:50:27 +02:00
Loïc Hoguin
be464af255 psu_game: Review and move system_client_version_info to events.
psu_login does NOT use the events version of the command yet.
2010-09-04 01:50:12 +02:00
Loïc Hoguin
2899a32ea1 Change the license from GPLv3 to Affero GPL, which is based on GPLv3. 2010-09-04 00:09:06 +02:00
Loïc Hoguin
4532169f1e psu_proto: Review send_0d05 and move it to psu_proto. 2010-09-03 23:26:29 +02:00
Loïc Hoguin
116ec3201a psu_game: Don't delete the user on system_key_auth_request failure! This would be usable as a DOS attack against a specific user. 2010-09-03 22:17:47 +02:00
Loïc Hoguin
f4b0b952fc psu_proto: Review and move the system_key_auth_request event to psu_proto. 2010-09-03 22:14:50 +02:00
Loïc Hoguin
1447048dd9 psu_proto: Review send_0202 and move it to psu_proto. 2010-09-03 21:36:38 +02:00
Loïc Hoguin
4e39ebefae psu_game: Fix a small typo. 2010-09-03 19:51:41 +02:00
Loïc Hoguin
7a42e0527e psu_game: Small change to send_1006 based on research. 2010-09-03 18:38:40 +02:00
Loïc Hoguin
c3380cbf95 psu_game: Small fixes to send_1500 based on research. GID shows up properly on own partner card now. 2010-09-03 02:04:09 +02:00
Loïc Hoguin
1d0c9ff960 psu_game: Small change to send_0d01 based on research. 2010-09-03 01:48:02 +02:00
Loïc Hoguin
6ec02be0f4 psu_game: Small change to send_1005 based on research. 2010-09-03 01:45:05 +02:00
Loïc Hoguin
f785b290bb psu_proto: Add a new event: party_remove_member. NPCs can now be removed from the party. 2010-09-02 23:48:27 +02:00
Loïc Hoguin
bab8913645 psu_game: Handle the npc_force_invite event properly. 2010-09-02 21:40:26 +02:00
Loïc Hoguin
2ef6a53f58 psu_game: Fix a GID/NPCid mismatch in the npc_invite event. 2010-09-02 21:37:55 +02:00
Loïc Hoguin
8de811642c psu_proto: Move send_010d to psu_proto. 2010-09-02 19:02:39 +02:00
Loïc Hoguin
dbdc02bcd0 psu_proto: Move send_0201 to psu_proto. 2010-09-02 17:43:25 +02:00
Loïc Hoguin
63b3b0a7b9 psu_game: Small fix to 0402 command handling based on research. 2010-09-02 17:16:15 +02:00
Loïc Hoguin
07299c69c9 psu_game: Small fix to the item_equip event based on research. 2010-09-02 16:49:52 +02:00
Loïc Hoguin
d1a30ecc63 psu_npc: Make sure the NPC level doesn't go below 1 or above 200. 2010-09-02 16:38:01 +02:00
Loïc Hoguin
79d36e5313 psu_game: The chat event now ignore again when FromGID=0, since it shouldn't happen. 2010-09-02 16:34:18 +02:00
Loïc Hoguin
dc6c9b180a psu_game: Fix the sent LID in send_1004. This fixes the tutorial mission. 2010-09-02 16:28:48 +02:00
Loïc Hoguin
8204740117 psu_game: send_022c seems to be related to parties... or NPCs. 2010-09-02 01:05:10 +02:00
Loïc Hoguin
28bb2f92cb psu_game: Small improvements to send_0201 based on research. 2010-09-02 00:58:27 +02:00
Loïc Hoguin
111d37f0a1 psu_game: Small improvements to send_1004 based on research. 2010-09-02 00:52:42 +02:00
Loïc Hoguin
5af19cd663 psu_game: Small improvements to send_1016 based on research. 2010-09-02 00:47:26 +02:00
Loïc Hoguin
a258c388a7 psu_game: Temporarily allow chat to be sent from GID = 0. Prevents disconnection while investigating a bug with the tutorial. 2010-09-02 00:20:03 +02:00
Loïc Hoguin
9f42e24cea psu_characters: Small changes based on research. 2010-09-01 23:54:41 +02:00
Loïc Hoguin
6dd3a05026 psu_proto: Fix a small bug when parsing the player's name in the chat command. 2010-09-01 23:53:26 +02:00
Loïc Hoguin
e2538b45a7 psu_appearance: Replace a few unused values, dependent on race, by their actual defaults on official. 2010-09-01 23:28:31 +02:00
Loïc Hoguin
69641cd459 psu_game: Reenable send_022c in npc_invite event. 2010-08-30 15:39:40 +02:00
Loïc Hoguin
0d3cad936e item_equip/unequip: Rename ItemID and PAID into ItemIndex and PAIndex. 2010-08-29 23:09:06 +02:00
Loïc Hoguin
2ba8020f24 Review send_020c and move it to psu_proto. 2010-08-29 22:21:23 +02:00
Loïc Hoguin
f0754543cf Review send_0215 and move it to psu_proto. 2010-08-29 22:15:32 +02:00
Loïc Hoguin
dfb8f691fb Review send_020e and move it to psu_proto. 2010-08-29 19:22:02 +02:00
Loïc Hoguin
597d51c0ee Review send_0205 and move it to psu_proto. 2010-08-29 19:09:01 +02:00
Loïc Hoguin
d9586cfd10 Review send_0a05 and move it to psu_proto. 2010-08-29 18:41:21 +02:00
Loïc Hoguin
9fc62c8130 Review send_0c00 and move it to psu_proto. 2010-08-29 18:31:23 +02:00
Loïc Hoguin
b77e04acf8 psu_proto: Add npc_force_invite to events and do nothing (for now). 2010-08-29 13:41:53 +02:00
Loïc Hoguin
68e9ebdc06 psu_game: Small workaround to allow starting a story mission. 2010-08-29 13:39:03 +02:00
Loïc Hoguin
c0089cef87 psu_game: Command 1601 requires a PartyPos. Fix dumb NPC problem. 2010-08-29 13:38:16 +02:00
Loïc Hoguin
e2248ebfd0 psu_game: Small typo fix. 2010-08-27 23:01:41 +02:00
Loïc Hoguin
f335a1fadf psu_game: Use the area_change event instead of calling area_load directly. 2010-08-27 19:00:27 +02:00
Loïc Hoguin
883c12eea7 psu_game: 12_xx commands must not be sent on area change that stays in the same zone. 2010-08-27 18:54:23 +02:00
Loïc Hoguin
2d8b8ce602 psu_proto: Parse command 0102(2) and then do nothing (for now). 2010-08-27 18:24:53 +02:00
Loïc Hoguin
e21735a289 psu_game: Remove the NPC characters on reload. 2010-08-27 15:05:39 +02:00
Loïc Hoguin
09de3c245e psu_game: Remove the NPC characters and stop the party on quit. 2010-08-27 15:02:53 +02:00
Loïc Hoguin
8db82f8260 psu_game: Don't recreate a party on each NPC invite. 2010-08-27 02:18:39 +02:00
Loïc Hoguin
b7d3c1634f Added many NPC characters. Fixed movement for NPCs other than Lou. 2010-08-27 02:03:58 +02:00
Loïc Hoguin
b28dff2e3a psu_proto: Move player_options_change to events. 2010-08-26 21:27:49 +02:00
Loïc Hoguin
7495f49876 mission_start event: Don't send a counter_background_locations_reply here. 2010-08-26 20:38:54 +02:00
Loïc Hoguin
fe280b93e3 psu_proto: Move counter_background_locations_request to events. 2010-08-26 20:37:53 +02:00
Loïc Hoguin
ac624b34c6 psu_proto: Parse command 1707 and then do nothing (for now). 2010-08-26 19:31:45 +02:00
Loïc Hoguin
b25eb9cb65 psu_proto: Parse command 010b and then do nothing (for now). 2010-08-26 19:21:57 +02:00
Loïc Hoguin
7f5b3af101 psu_proto: Parse and then ignore command 0c0d. 2010-08-26 18:40:59 +02:00
Loïc Hoguin
112b394d0b psu_proto: Parse and then ignore command 0806. 2010-08-26 18:40:38 +02:00
Loïc Hoguin
ad9c8847be psu_proto: Parse and then ignore command 0808. 2010-08-26 18:23:37 +02:00
Loïc Hoguin
d07b6c7cff psu_proto: Parse and then ignore command 080d. 2010-08-26 18:19:14 +02:00
Loïc Hoguin
753d3e843c psu_proto: Parse and then ignore command 0814. 2010-08-26 18:09:53 +02:00
Loïc Hoguin
0a06702683 psu_proto: Parse and then ignore command 0815. 2010-08-26 18:09:27 +02:00
Loïc Hoguin
d5a7336662 psu_proto: Parse and then ignore command 021c. 2010-08-26 18:04:56 +02:00
Loïc Hoguin
ea81ac7f64 psu_login: Reject clients version < 2.009.2. 2010-08-26 17:18:47 +02:00
Loïc Hoguin
bd21a5e5db psu_game: Move object_box_destroy and object_event_trigger to events. 2010-08-26 14:51:24 +02:00
Loïc Hoguin
bcfdc699b5 psu_proto: Moved hit and hits to events. 2010-08-26 14:41:35 +02:00
Loïc Hoguin
0a0a96ad3d psu_game: Temporary log the game version to make sure it makes sense using it. 2010-08-25 02:02:45 +02:00
Loïc Hoguin
d799215d0d psu_proto: Move all existing object actions to events. 2010-08-25 01:42:37 +02:00
Loïc Hoguin
83316ddf6f psu_instance: menu_prompt is in fact a sensor. Renamed it. 2010-08-24 17:21:07 +02:00
Loïc Hoguin
ecef3e3e8b psu_proto: Move chat (the one sent by the client) to events. 2010-08-23 14:45:47 +02:00
Loïc Hoguin
b52c7ccdac psu_game: Remove v2.000 support. Was only used by chat. 2010-08-23 13:45:35 +02:00
Loïc Hoguin
8dba561f45 psu_proto: Move item_description_request to events. 2010-08-23 00:10:12 +02:00
Loïc Hoguin
cf50b5a0a0 psu_proto: Move counter_party_options_request. 2010-08-22 23:08:01 +02:00
Loïc Hoguin
30b3155146 psu_game: Don't stop the instance if it doesn't exist. 2010-08-22 23:03:19 +02:00
Loïc Hoguin
c1de8254c4 psu_proto: Move counter_party_info_request to events. 2010-08-22 23:00:43 +02:00
Loïc Hoguin
4b5e83a745 psu_game: Cleanup exports and @todo comments. 2010-08-22 22:34:44 +02:00
Loïc Hoguin
468549fddf psu_proto: Move npc_shop_enter and npc_shop_leave to events. 2010-08-22 20:33:16 +02:00
Loïc Hoguin
851db3f046 psu_proto: Move npc_shop_request, lumilass_options_request, ppcube_request, player_type_availability_request to events. Fix a few issues with npc_shop_request. 2010-08-22 19:15:08 +02:00
Loïc Hoguin
46fabad441 egs_user_model: Remove the unused counterid introduced earlier today. 2010-08-21 18:42:23 +02:00
Loïc Hoguin
e4b2ab8a75 psu_proto: Move counter_options_request to events. 2010-08-21 18:39:15 +02:00
Loïc Hoguin
cfb14d9901 psu_proto: Move counter_quest_options_request to events. 2010-08-21 18:16:21 +02:00
Loïc Hoguin
98b2e2ba3a psu_proto: Move mission_abort to events. 2010-08-21 18:08:32 +02:00
Loïc Hoguin
efa743a465 psu_proto: Move lobby_transport_request to events. 2010-08-21 17:59:59 +02:00
Loïc Hoguin
435e075680 psu_proto: Move counter_quest_files_request to events. 2010-08-21 17:42:31 +02:00
Loïc Hoguin
e275cc2c34 psu_proto: Move mission_start to events. 2010-08-21 17:24:38 +02:00
Loïc Hoguin
647bd40b41 psu_game: Remove an obnoxious log. 2010-08-21 17:08:59 +02:00
Loïc Hoguin
dd6a44ef7f psu_proto: Move npc_invite to events. 2010-08-21 17:08:21 +02:00
Loïc Hoguin
13ace4082f psu_proto: Move counter_leave to events. 2010-08-21 16:59:01 +02:00
Loïc Hoguin
3ee62e81e8 psu_proto: Move counter_enter to events. Handle prev_area correctly. Handle CounterID correctly. 2010-08-21 16:53:35 +02:00
Loïc Hoguin
fcb3f4d055 psu_proto: Move area_change to events. 2010-08-21 15:40:17 +02:00
Loïc Hoguin
fb07769e44 psu_proto: Move player_death, player_death_return_to_lobby and player_type_capabilities_request to events. 2010-08-21 00:28:02 +02:00
Loïc Hoguin
5672d40ca9 psu_proto: Move unicube_request and unicube_select to events. Now handle EventID on select. 2010-08-20 23:22:24 +02:00
Loïc Hoguin
b29b05546a psu_parser: A few fixes to make it run on Windows. 2010-08-20 22:40:44 +02:00
Loïc Hoguin
6dd159dc1e psu_proto: Clean parsing separation. Handle events rather than packets.
Lou can now equip a wepon.
2010-08-19 23:43:19 +02:00
Loïc Hoguin
f6305c3c76 Renamed egs_proto into psu_proto. 2010-08-19 01:53:18 +02:00
Loïc Hoguin
18a86f9c6b Initial party and NPC support. Lou only so far. Many bugs expected. 2010-08-16 18:31:01 +02:00
Loïc Hoguin
c4109a5d11 psu_instance: menu_prompt has a target id. 2010-08-13 23:56:36 +02:00
Loïc Hoguin
26ed4cbf54 Remove egs_db. Rename the ids table to counters. Update it directly. 2010-07-31 21:32:08 +02:00
Loïc Hoguin
7b542e1dda psu_game: Move the room packets into their own functions. 2010-07-31 18:28:31 +02:00
Loïc Hoguin
d3ba85a8c3 psu_game: Handle the list of universes properly. 2010-07-31 18:04:39 +02:00
Loïc Hoguin
859cd1aad2 psu_game: Small improvements for future NPC invite code. 2010-07-31 15:20:25 +02:00
Loïc Hoguin
cc5b621e35 psu_game: Correctly check for the return value of ssl_accept. Also enable reuseaddr. 2010-07-31 13:55:54 +02:00
Loïc Hoguin
7025a89cee Move a few PSU-only files into the psu folder. 2010-07-31 13:45:49 +02:00
Loïc Hoguin
8495048240 psu_game: Remove boring blank lines. 2010-07-30 23:05:13 +02:00
Loïc Hoguin
b3bcdad6ca psu_game: Add code to add an NPC to the party (forced and from menu). NPC doesn't appear yet. 2010-07-30 22:09:30 +02:00