Filip Maj
8725377168
Changed InfoRequestResponsePacket to GenericDataPacket as that is the proper use/term. Added the city exit spawn locations. Did more work on the chocobolender script. Most of the issuing portion is done. Also can now summon through the lender.
2016-08-21 19:51:49 -04:00
Filip Maj
205136d661
Improved trigger box packet.
2016-07-31 21:07:26 -04:00
Tahir Akhlaq
30b0d4a97d
implemented sendpacket and speed commands
...
- fixed data race on logging in
- todo: implement reloadzones, reloaditems, property, property2
2016-06-24 20:52:30 +01:00
deviltti
7a25c818f2
demo...srs?
2016-06-21 21:52:40 -04:00
deviltti
b8a563f9d7
Lobby and game server packet ConsoleColor to NLog cleanup.
2016-06-21 21:13:01 -04:00
deviltti
0c197f34a1
Okay now.
2016-06-21 18:58:33 -04:00
deviltti
590ad3e002
Reimplemented ConsoleColor for packets in NLog.
2016-06-21 18:52:20 -04:00
Tahir Akhlaq
1ad2b5d7d0
more work on commands
...
- moved script object to wrapper class to catch and log exceptions
- added loggers for basepacket/subpacket (todo: colour and use them in NLog.config)
- finished up most commands (todo: !property and !property2)
- todo: create and use mysql wrapper class to log exceptions
2016-06-18 05:42:14 +01:00
Tahir Akhlaq
1159c75ab8
moved stray console.writeline to use main logger
2016-06-15 19:15:24 +01:00
Tahir Akhlaq
ba13d5798d
derp
2016-06-15 00:08:05 +01:00
Tahir Akhlaq
335a59204c
Merge branch 'master' of https://bitbucket.org/Ioncannon/ffxiv-classic-server into method_casing
...
# Conflicts:
# FFXIVClassic Map Server/CommandProcessor.cs
# FFXIVClassic Map Server/WorldManager.cs
# FFXIVClassic Map Server/actors/area/Area.cs
# FFXIVClassic Map Server/actors/area/PrivateArea.cs
# FFXIVClassic Map Server/actors/area/Zone.cs
# FFXIVClassic Map Server/actors/chara/npc/Npc.cs
# FFXIVClassic Map Server/common/Utils.cs
# FFXIVClassic Map Server/dataobjects/ConnectedPlayer.cs
2016-06-14 22:54:02 +01:00
Tahir Akhlaq
24f55139dd
mass replaced all methods to pascal case
2016-06-14 21:29:10 +01:00
Tahir Akhlaq
ed0a0a58f7
added nlog logging (todo: custom logger for packets)
2016-06-14 19:06:55 +01:00
Tahir Akhlaq
c23f9c7ca9
PROJECT: added common library to make common files actually common
...
- renamed sln to FFXIVClassic.sln
- threaded logging
- todo: print packets using Log.Packet
2016-06-12 20:12:59 +01:00
deviltti
16d4779970
Fixed packet ByteArrayToHex output
2016-06-10 22:40:46 -04:00
deviltti
554c8b5514
Fixed packet Console output
2016-06-10 21:14:28 -04:00
deviltti
1c712c7533
Cleaned up LogFile and ByteArrayToHex utils.
2016-06-10 19:58:01 -04:00
Tahir Akhlaq
8b93abe86e
servers now log (almost) everything to file
...
- regex'd in mysqlexception logging
- servers can now specify server_port, log_path, log_file
- added scripts to import/export all tables (exporting will export a handful of garbage table names, open and check for structure before deleting)
- fixed packet logging (thanks deviltti)
2016-06-09 19:48:06 +01:00
Filip Maj
f0ec2125ac
Found out the second weather packet value is a transition time.
2016-05-09 22:19:57 -04:00
Filip Maj
8df79c9e6f
Modified the SetWeatherPacket. Second value is a toggle for instant or smooth transitions.
2016-05-09 20:48:18 -04:00
TheManii
6dcdabf9a4
Added more weather types
2016-05-09 16:58:04 -04:00
TheManii
c02c09a237
Bugfixed with !test
2016-05-09 01:15:58 -04:00
TheManii
59f1ef0594
REALLY fix whitepaces
2016-05-09 00:48:58 -04:00
TheManii
c80eb623b1
Fixed whitespaces
2016-05-09 00:48:16 -04:00
TheManii
11a371f32b
Added !set weather <weathertype>and populated weather table
2016-05-09 00:23:35 -04:00
Filip Maj
d989ec2a58
Added two callbacks to the Director; onTalked and onCommand. Split the command and event starts and keep track of them separately.
2016-04-14 08:30:21 -04:00
Filip Maj
c0cd7555e1
-Fixed up the quest flag functions.
...
-Renamed the ActorSpecialGraphicPacket to SetActorQuestGraphic as those icons all have to do with questing.
-Got onSpawn to work and implemented the quest graphics.
-Added new QuestDirector class.
2016-04-07 22:34:10 -04:00
Filip Maj
b68d13ea7f
Cleaned up the lua calls and renamed "onInstantiation" to "init". Added a "onSpawn" callback but still working on it. Added the "ActorSpecialGraphicPacket" and functions to use it.
2016-04-02 17:56:01 -04:00
Filip Maj
4c391f64bc
Removed old inn code and realigned all the cutscene flags. Offsets will need to be figured out again though.
2016-04-01 23:50:17 -04:00
Filip Maj
6c3918ac2f
Got the kick event packet working and implemented the director parameter in the player instantiation. The first argument of the set event status packet is an "isEnabled" flag; switched to bool rather than int.
2016-04-01 23:24:14 -04:00
Filip Maj
597a800599
More work trying to get the opening cutscene to fire right away.
2016-03-30 20:15:21 -04:00
Filip Maj
b69e18ff3c
Companion name was off by 1.
2016-03-28 21:52:02 -04:00
Filip Maj
a615f29e63
Added path companion data to the cutscene book packet. Now that packet will fire if zoning into the inn. Removed some debug logs. Removed a duplicate zone packet send call.
2016-03-28 21:00:33 -04:00
Filip Maj
4d57aa72a6
Cleaned up the 0x02 packet. It fires in response to the 0x2 packet sent by the client it seems.
2016-03-28 12:14:10 -04:00
Filip Maj
a30311d12a
Added director related code to player and packet processor. Cleaned up some debug messages. Added a flag when a player is "zoning in".
2016-03-28 11:31:21 -04:00
Filip Maj
f8ab0cd86d
Added langauge code packet (0x6) and 0x2/0x7 temp packets to clean up the login packets sent by client.
2016-03-28 11:30:02 -04:00
Filip Maj
9c28e966f7
Added director code to player class and actor namespace.
2016-03-23 01:27:12 -04:00
Filip Maj
2048d8d188
Implemented a intra-zone teleport. Trigger Name is now sent to to the "eventStart" lua callback. Lua scripts can now access world manager.
2016-03-20 21:18:46 -04:00
Filip Maj
08fd862939
Implemented the emote and notice event conditions.
2016-03-20 19:34:39 -04:00
Filip Maj
0876b293e8
Started to implement private areas. Works mostly, but only one instance is created. All the push triggers work more or less except bounding box.
2016-03-20 19:29:38 -04:00
Filip Maj
1f60bcf4fc
Finished code to send character skill (class) info. Added parameterdata request packet that requests this info.
2016-03-19 18:43:02 -04:00
Filip Maj
a93843510e
Cleaned up script packets and added the InfoResponse packet (internally the DataPacket). Added more info to the music packets. More work on class changing.
2016-03-19 10:22:20 -04:00
Filip Maj
e851c767df
Finished check command as well as gearsets and switching between classes. Property changes still have to be written though.
2016-03-12 02:52:34 -05:00
Filip Maj
44e5430fdc
Implemented equipment and equip graphics. Add some zone callbacks and "first start" functionality. Added playtime.
2016-03-06 17:55:42 -05:00
Filip Maj
d2ac603efa
Renamed the "Item" object to InventoryItem. Began writing the Item object that will be used to store game data items.
2016-02-21 14:06:23 -05:00
Filip Maj
b7fd3e442c
Added 0x6c to the actorIdChanger. Mount appearance is now broadcast to show Goobbue. Equipment packets implemented as well as Equipment object.
2016-02-20 16:51:35 -05:00
Filip Maj
a47d5f96a5
Fixed emotes not being sent to the emoter. Fixed appearance packets' gloves/legs being ordered wrong. Chat is implemented. Changed commands to start with '!'.
2016-02-18 22:38:54 -05:00
Filip Maj
c6ac8b2f14
Fixed an error in the netcode that would cause the client to d/c on partial packets. Set buffer size to 0xFFFF due to disconnect on really large packets (ie gm packet). Implemented support ticket packets.
2016-02-16 22:53:53 -05:00
Filip Maj
cb4171f1fd
Bunch of bugfixes and final tweaking to get inventory working.
2016-02-14 12:09:18 -05:00
Filip Maj
69b34fdce7
Reworked the inventory system so that each inventory type is contained in it's own "Inventory" object. Also, fixed the Inventory packets being all malformed.
2016-02-13 14:12:05 -05:00
Filip Maj
df2ac1fb32
Added all the inventory packets, and implemented add and get inventory from the db to the server. Inventory at login is now connected to the db!
2016-02-11 22:14:40 -05:00
Filip Maj
c4dea467e3
Fixed missing seek, added battle packet 0x13C.
2016-02-07 15:43:32 -05:00
Filip Maj
0d880b6b75
Figured out most of the battle action packets; 0x139, 0x13a, 0x13b.
2016-02-07 15:28:08 -05:00
Filip Maj
6d8064aa6c
Began work on the battle action packet.
2016-02-07 13:06:04 -05:00
Filip Maj
42ba95b69d
Reworked zones to allow for isolated zones (IE Opening Zone) and private area instances.
2016-02-07 13:05:54 -05:00
Filip Maj
c83b4a12b9
Added the game message packets. Fixed "canRideChocobo" param in zone not working. Added a lot more function for lua to access. Various minor changes.
2016-02-03 00:45:11 -05:00
Filip Maj
cfb29b912f
Speed is now stored in the actor. Redid actor speed packet to use float. Added GameMessagePacket which can use all 20 msg packets. Added functions for lua side to call in player obj.
2016-02-02 00:02:06 -05:00
Filip Maj
45b9f9a064
Looked at pong packet once again. First 32bits are resent of incoming ping packet. Next 16bits always 0x14D. Heard from another dev this may improve movement for multiplayer.
2016-01-28 23:25:11 -05:00
Filip Maj
5c8277fbb9
Redid the database, actor_class and npclist was combined. Added commands to the lua engine. Script will default to a PopulaceStandard if no script detected to avoid crashing. Static Actors now loaded from the static actors file.
2016-01-28 23:24:20 -05:00
Filip Maj
789df97d48
More static actors loaded and can be accessed anywhere. Improved lua scripting to allow small talk.
2016-01-25 01:10:43 -05:00
Filip Maj
300748668f
Removed NLua and replaced it with MoonSharp. Scripting for NPCs has been implemented, but still have to test a lot.
2016-01-24 17:11:35 -05:00
Filip Maj
f1025f89d3
Rewrote the server commands. They can now accept a client connection, letting a user fire a command from within the game and only receive the response. Added actor removal for the instance system. Removed hardcoded packet 9.
2016-01-23 23:28:12 -05:00
Filip Maj
7bc3c8c2dd
Added event conditions to the database. This is a JSON object that stores all types of conditions. The server also sends the correct packets to enable these conditions (minus the push packets... those aren't implemented).
2016-01-23 22:11:45 -05:00
Filip Maj
3b48ed1f74
Added actor event packets.
2016-01-23 20:12:04 -05:00
Filip Maj
ea6b1e33c7
NPCs now spawn and load template from the db.
2016-01-20 23:18:10 -05:00
Filip Maj
d90dc0cb80
Redid the initial handshake code to handle the found connection type field. Server should no longer create two player objects and code has been reduced. Removed instances of connection1/2 getters... server simply sends packets down zone connection. Fixed issue with world manager not zoning in player due to missing 0x2 packet.
2016-01-19 21:47:59 -05:00
Filip Maj
5d11a0b356
Changed isEncrypted to isCompressed in basepacket. After speaking with another dev, game packets are not encrypted... just compressed. Figured out that byte 3 of basepacket is the connection type when handshaking with the map server.
2016-01-19 13:31:24 -05:00
Filip Maj
1c845e62e3
Implemented WeatherDirector , ZoneMaster, and WorldMaster in code. Zone objects has become the ZoneMaster actor object.
2016-01-16 23:03:04 -05:00
Filip Maj
724445a54a
Achievements are now loaded from the database. Cleaned up login packets.
2016-01-16 18:38:49 -05:00
Filip Maj
f7702bca13
Added some new work parameters. Fixed GC Packet (wrong sized data). Connected player data packets to DB. Cleaned up login code.
2016-01-16 11:26:35 -05:00
Filip Maj
2bf532a6db
Fixed bug in property reflection code. If array had 2 or more digit index, would truncate to 1 digit.
2016-01-12 01:20:09 -05:00
Filip Maj
d42dac543f
Fixed wrong values sent for the setactorproperty packet. Initialized commandSlot_compatibility which was null.
2016-01-10 11:47:22 -05:00
Filip Maj
3205bd1c83
Added property init function which should get everything working. Added defaults to some properties.
2016-01-10 02:44:32 -05:00
Filip Maj
c9f35a207b
Fixed up warping with new values for SetActorPosition packet. The script instantiation packet is done and implemented. Player init is done except for parameters.
2016-01-09 18:52:23 -05:00
Filip Maj
ff5a6c0c8e
Fixed actors not spawning.
2016-01-09 17:09:36 -05:00
Filip Maj
315ec1f220
Fixed state being wrong size. Player substate will always be 0xBF.
2016-01-09 00:06:56 -05:00
Filip Maj
fac9d28529
Got warp working. BROKE ACTOR SPAWNING!
2016-01-08 21:37:09 -05:00
Filip Maj
360d72b376
Implemented the player portion of the new actor system.
2016-01-02 18:17:03 -05:00
Filip Maj
93a42c1ba3
Implemented the SetIdleAnimation packet, and a placeholder for packet 0x132 used to login.
2016-01-02 18:16:38 -05:00
Filip Maj
7aeb33d884
Figured out all main actor states and implemented the stuff properly. Implemented the chocobo/goobbue appearance stuff. Formatted CharaWork a bit.
2016-01-02 16:47:35 -05:00
Filip Maj
67ee70e7c5
Packet for instantiating actor in lua engine implemented, though first value unknown.
2016-01-02 14:03:28 -05:00
Filip Maj
734a3f4e7f
Added implementations of the event receive/send packets. Added lua scripting stuff. Added some utils.
2016-01-01 14:04:44 -05:00
Filip Maj
d60938346b
Fixed up message packet and set dream packets.
2015-12-30 12:20:47 -05:00
Filip Maj
aeef4f5616
Can queue subpackets now (automatically creates basepacket). List packets implemented. Base packets fully figured out and implemented. Login has been stablized and no longer crashes. Implemented the following packets: List Packets, Set Job packet, chat message receive packet, SetActorIcon, SetActorIsZoning, SetActorSingleStatus, AchievementRate and some unknown packets.
2015-12-29 01:20:46 -05:00
Filip Maj
fa3d69b8b3
Map packet now sends region ID used to set various UI things (ie: search). Added weather ids to the weather packet. GM packet now takes a true/false value; the proper function is to send a 0x1D3 packet whenever client asks for it... false unless has GM then true.
2015-12-13 22:18:22 -05:00
Filip Maj
6f8125a947
Redid haschocobo packet and added hasgoobbue packet. Redid the GC Info packet to work properly. I've begun adding the list packets.
2015-12-13 22:16:40 -05:00
Filip Maj
93a08c0128
More recruitment packets implemented. Still need to finish the search results packet.
2015-12-06 22:58:42 -05:00
Filip Maj
4eda13501c
Added receiving packets for GM stuff. Started implementing the recruitment packets.
2015-12-06 20:23:34 -05:00
Filip Maj
de353c9909
Added null option for status update packet to send empty list. Added 0x1CF response for FL list to packet processor. Exception reason will now be printed when can't send packet by console.
2015-12-05 18:58:06 -05:00
Filip Maj
0dcebd1658
Finished figuring out and implementing the last friend list and black list packets.
2015-12-05 18:18:35 -05:00
Filip Maj
daaded83c3
Added receive packet for all social add/remove. They are all the same structure so a single packet should do.
2015-12-05 00:11:29 -05:00
Filip Maj
2ce801f217
Implemented packets for add/remove for friend/black lists.
2015-12-05 00:05:09 -05:00
Filip Maj
bda686681d
I've begun working on implementing social packets.
2015-12-04 23:39:57 -05:00
Filip Maj
1b190b1b4f
Incorporated the GM packets into the packet processor. Still need to connect it to the DB. Added IssueListPacket and Start/EndGMTicketPacket.
2015-12-04 23:39:18 -05:00
Filip Maj
1f7c876461
Added support for actor property changed. Removed a lot of hard coded packets. Added a bunch of Support Desk packets.
2015-12-04 02:00:05 -05:00
Filip Maj
c8d6326ecd
Finished SetChocoboName packet and fixed a bug with cutscene packet.
2015-11-29 00:30:41 -05:00
Filip Maj
4d83989d1a
Finished the SetCutsceneBook packet. All offsets were written down.
2015-11-28 23:24:59 -05:00
Filip Maj
9bb8cc816f
Finished SetCompletedAchievementsPacket and renamed CutsceneBookSetPacket to SetCutsceneBookPacket in line with other "set" packets. Moved a lot of the hardcoded packets into the coded login part under PacketProcessor.
2015-11-28 20:56:22 -05:00
Filip Maj
50659afc82
Fixed actor state property packet not sending in string correctly. Added test command for it. Fixed bug in MurmurHash algo.
2015-11-28 10:00:18 -05:00
Filip Maj
0a6b005a0c
Added command and script packets. Finished the SetActorProperty packet. Fixed bug with manually send packets from console.
2015-11-27 00:42:35 -05:00