319 Commits

Author SHA1 Message Date
EntenKoeniq
fedc036e76 Changes for the upcoming update 2022-04-06 02:18:24 +02:00
EntenKoeniq
fffe619f1e Packet renamed 2022-04-03 19:28:25 +02:00
EntenKoeniq
989dcaeb0b DownloadManager works! 2022-04-03 02:27:30 +02:00
EntenKoeniq
095c920f38 Added DownloadManager for the server (NOT DONE YET!) 2022-04-02 19:12:15 +02:00
EntenKoeniq
cc3e0829c0 Updated DownloadManager 2022-04-02 18:11:30 +02:00
EntenKoeniq
7e1764d526 Started with the download manager 2022-04-02 16:40:24 +02:00
EntenKoeniq
9023b85382 New functions and removed SHVDN and LemonUI for Javascript 2022-04-02 16:14:42 +02:00
EntenKoeniq
ec1b56d152 Added CleanUpWorld and CreateObject for Javascript 2022-03-31 18:03:19 +02:00
EntenKoeniq
06db5542cf Fixed delegates for javascript 2022-03-31 17:31:39 +02:00
EntenKoeniq
0051504684 Small changes 2022-03-30 16:14:25 +02:00
EntenKoeniq
7d2e3705ea Let's use the new logger 2022-03-29 00:28:57 +02:00
EntenKoeniq
90d7ae7059 Added first simple logger for CoopClient 2022-03-28 23:59:19 +02:00
EntenKoeniq
98a593daae No more paused settings 2022-03-28 22:34:59 +02:00
EntenKoeniq
2a514357d1 Make ScriptEngines readonly. Added GetLocalUsername() for Javascript 2022-03-28 16:43:52 +02:00
EntenKoeniq
d99613445f More small changes 2022-03-28 15:08:30 +02:00
EntenKoeniq
a6167528dd Small changes 2022-03-28 14:49:26 +02:00
EntenKoeniq
214aed68ad ScriptContext is now internal 2022-03-27 19:49:23 +02:00
EntenKoeniq
da45b26e77 Added more events for clientside 2022-03-26 17:50:34 +01:00
EntenKoeniq
b1325bcef8 Added LoadAll and StopAll function. Some Javascript changes 2022-03-25 21:51:29 +01:00
EntenKoeniq
26d7a4d4a5 Added TestResources and only loaded the files from ip 2022-03-25 21:07:07 +01:00
EntenKoeniq
20f0833795 Added SHV and LemonUI to Javascript 2022-03-25 20:41:59 +01:00
EntenKoeniq
50bcfabf18 Added CallNative function and OnRender event for Javascript 2022-03-25 20:30:03 +01:00
EntenKoeniq
9d356a1b57 Load all *.js files from "scripts/resources" 2022-03-25 20:09:45 +01:00
EntenKoeniq
cfca7ad412 Added ClearScript for upcoming clientside
Example code for "test.js": ```script.SendMessage('test message');```
2022-03-25 19:53:48 +01:00
EntenKoeniq
9c3aab008c Added and changed documentation for some functions. Hopefully fixed #54 2022-03-25 15:45:22 +01:00
EntenKoeniq
44c04147cc Changed MasterServer address 2022-03-20 18:49:39 +01:00
EntenKoeniq
61f9701aeb Small changes and fixed #50 2022-03-20 14:54:48 +01:00
EntenKoeniq
474cba33fa Unused variables removed. MasterServer connection updated 2022-03-20 09:21:41 +01:00
Makinolo
d9e68bf0b5 Allows chat and player list use in NON_INTERACTIVE mode
Adds player list alignment choice to make it visible if the
calling mod is showing a menu where the player list appears by
default
2022-02-24 21:32:45 -07:00
Makinolo
32ea3a0037 Adds logging to disconnection to help debugging
When the user is disconnected from a malformed or wrong message
it is now logged in the server for debugging purposes.
If the disconnection comes from the client itself, the reason
of disconnection will contain the offending message type.
2022-02-06 09:59:18 -07:00
EntenKoeniq
9373cb3c85 Jump, Parachute, Debug and BrakeLight bug fixed 2022-01-01 19:24:57 +01:00
EntenKoeniq
6f2da854a9 Better brake lights 2022-01-01 17:24:55 +01:00
EntenKoeniq
3f4eeb0a32 Parachute sync added. Small changes 2022-01-01 04:16:24 +01:00
EntenKoeniq
7cc91ebbbd Split packets 2022-01-01 03:07:18 +01:00
EntenKoeniq
21a5ed2b31 try...catch added to every incoming packet 2022-01-01 02:27:30 +01:00
Makinolo
a7a71a4651 Fixes copy paste error
NetIncomingMessageToPacket was overwriting the
NetHandle with the value of the Target and this was making
the from Handle in the messages processed by the resources
to be zero.
2021-12-28 16:54:42 -07:00
EntenKoeniq
24eb221f57 Addded Climb and ClimbLadder sync. Small changes 2021-12-28 19:14:51 +01:00
EntenKoeniq
64dd2f5768 Small changes. ParachuteFreeFall is now working 2021-12-28 17:50:04 +01:00
EntenKoeniq
73ac8694be Started with Parachute sync. Small bug fixes and new ServerScript Events 2021-12-27 17:26:16 +01:00
EntenKoeniq
dd80c2f323 First player animation added 2021-12-27 11:05:01 +01:00
EntenKoeniq
c3b054c75a NPC and Player split 2021-12-27 10:15:52 +01:00
EntenKoeniq
69cca124ff Revert changes 2021-12-27 01:26:36 +01:00
EntenKoeniq
ae0663cdd4 Small changes and bug fixes
Thank to @oldnapalm
2021-12-26 23:19:12 +01:00
EntenKoeniq
f4e563f93b OnTick added. Bug fixes. Remove server created objects/vehicles/peds/checkpoints/blips on disconnect. More... 2021-12-26 03:25:00 +01:00
EntenKoeniq
a4ffc25823 Only take 35 NPCs to share. Don't wait any longer to send a package. Vehicle synchronization updated. Small changes 2021-12-24 15:33:27 +01:00
EntenKoeniq
5393378317 The VectorExtensions class has been moved to the Util.cs file. Fixed ragdoll bug and UpdateOnFootPosition() call for aim and shoot 2021-12-24 06:33:00 +01:00
EntenKoeniq
2a494a3595 Added missing XML comments 2021-12-24 05:25:31 +01:00
EntenKoeniq
56ab6ef284 AimCoords also added for LightSync. Small changes 2021-12-24 05:20:32 +01:00
EntenKoeniq
d6ef443b92 ToVector(), ToLVector(), ToQuaternion() and ToLQuaternion() added 2021-12-24 05:05:35 +01:00
EntenKoeniq
b9703dd612 Bug fixes and new player movement 2021-12-24 03:16:16 +01:00
EntenKoeniq
96d2a9ca4c Added missing health sync 2021-12-23 22:16:20 +01:00
EntenKoeniq
b9a1089fd0 Network traffic reduced. Changes!
Bugs:
- Character rotation?
2021-12-23 22:03:01 +01:00
EntenKoeniq
5353532360 1.2.0 2021-12-19 00:53:03 +01:00
EntenKoeniq
a04d9eb9b3 Removed loading of multiplayer maps 2021-12-18 22:51:00 +01:00
EntenKoeniq
f07607000b Fixed a bug where it was not possible to shoot other players 2021-12-18 20:31:10 +01:00
EntenKoeniq
6f857daf69 Added vehicle roof sync 2021-12-18 09:46:42 +01:00
EntenKoeniq
ce5868e9ac EntitiesNpc class removed and changed to EntitiesPed 2021-12-18 08:04:17 +01:00
EntenKoeniq
d71083e770 LemonUI.SHVDN3.dll updated. MenuPool.RefreshAll() is no longer required. Small changes 2021-12-18 07:46:15 +01:00
EntenKoeniq
cef43b80f7 SocialClubName removed. Allowlist removed from CoopSettings.xml 2021-12-17 23:58:32 +01:00
EntenKoeniq
5cfbaaddd7 Removed PlayerConnectPacket() from client to server and small bug fixed 2021-12-17 23:02:53 +01:00
EntenKoeniq
6e72cf9d27 Lidgren-Network updated. Only TLS 1.3 and TLS 1.2 are supported. Small changes 2021-12-17 19:50:47 +01:00
EntenKoeniq
7df796340f Small changes 2021-12-17 01:27:42 +01:00
EntenKoeniq
bedd251385 Util.Compare() updated 2021-12-17 00:19:34 +01:00
EntenKoeniq
e2f5e602c8 Small changes 2021-12-16 22:35:37 +01:00
EntenKoeniq
6742fb9050 Bug fixes. Compare() added to compare two Dictionary<> 2021-12-16 22:26:45 +01:00
EntenKoeniq
6c09c10bd9 Renamed Props to Clothes. Reduced bytes for data 2021-12-16 22:05:40 +01:00
EntenKoeniq
ed56534db7 Updated documentation. Small changes 2021-12-16 14:52:48 +01:00
Makinolo
ee79fe5cc2 Allows sending messages only to a group of users
In some circumstances (like proximity, missions...) we may want
to target messages to only a sub set of all the users connected
to the server. Adding this optional parameter to SendModPacketToAll
and SendChatMessageToAll allows that while being backwards
compatible with the API
Fixes some problems introduced in the non interactive mode
Changes the SetLocalTraffic parameter to make it more readable
so now SetLocalTraffic(true) means to ENABLE local traffic while
SetLocalTraffic(false) means DISABLE local traffic
2021-12-15 11:09:56 -07:00
EntenKoeniq
52f1f655ae Small fix and last update for version 1.1.0 2021-12-15 18:24:33 +01:00
EntenKoeniq
7b7295bdea Added NPCsVehicles.Clear() to CleanUp() 2021-12-15 04:31:24 +01:00
EntenKoeniq
3bb803f3c9 Fixed bug with weapon components. Partial EntitiesPed.cs 2021-12-15 03:31:57 +01:00
EntenKoeniq
26e4cb97ae Added synchronization of weapon components for players 2021-12-15 01:25:16 +01:00
EntenKoeniq
6e12848a61 Small changes 2021-12-15 00:25:31 +01:00
EntenKoeniq
c71539435e Small changes. Fix server browser (SSL/TLS) 2021-12-15 00:00:27 +01:00
EntenKoeniq
4cd813d0be Changed lnID to netHandle (COOPAPI) 2021-12-14 22:51:09 +01:00
EntenKoeniq
98295fee3a Changed ID to NetHandle. Configure() removed from COOPAPI and replaced by its own functions 2021-12-14 22:39:15 +01:00
EntenKoeniq
721da34e36 New MasterServer address 2021-12-14 21:18:12 +01:00
EntenKoeniq
ba562789b2 No more vehicle duplication with "Share NPCs" enabled. Small changes 2021-12-14 19:33:52 +01:00
EntenKoeniq
517d5e93d6 Added landing gear sync 2021-12-14 14:46:10 +01:00
EntenKoeniq
749a5b258d Only gta5 v1.0.1290 or newer is supported! 2021-12-14 14:20:41 +01:00
EntenKoeniq
4bd50a557b Transformation synchronization for submarine cars added 2021-12-13 23:43:02 +01:00
EntenKoeniq
af2267f346 Added horn sync and LastSyncWasFull flag removed 2021-12-13 23:18:15 +01:00
EntenKoeniq
b5d0aecc59 Added ConnectionChannel 2021-12-13 22:41:07 +01:00
EntenKoeniq
68948990b5 Started with version 1.1.0 2021-12-13 20:35:07 +01:00
EntenKoeniq
b55ba2ac33 3 bug fixes 2021-12-13 20:25:31 +01:00
EntenKoeniq
a8160aeb49 Update Settings.cs 2021-12-13 18:16:31 +01:00
EntenKoeniq
902a08066c Removed slider for NPCs. Small bug fixes and changes 2021-12-13 17:48:00 +01:00
EntenKoeniq
2d441f7fb3 Not yet tested 2021-12-13 11:51:03 +01:00
EntenKoeniq
9f020c6094 Added MarkAsNoLongerNeeded() 2021-12-12 22:52:57 +01:00
EntenKoeniq
de81e1ad43 new way to load the model 2021-12-12 22:00:06 +01:00
EntenKoeniq
cf93feff87 max. streamed NPCs from 20 to 30 2021-12-12 20:05:55 +01:00
EntenKoeniq
b026026112 "if (MainVehicle.IsTurretSeat(VehicleSeatIndex))" 2021-12-12 19:52:21 +01:00
EntenKoeniq
ad776f6f16 Fixed freezing on model request 2021-12-12 19:31:06 +01:00
EntenKoeniq
02cc3f2fb5 Undo "Changed IP in Address". This will be version 1.0.0 2021-12-11 14:40:34 +01:00
EntenKoeniq
64e089ce58 Changed IP to Address 2021-12-11 14:33:31 +01:00
EntenKoeniq
ccf850325a Added more turret vehicles and small changes 2021-12-10 17:04:33 +01:00
EntenKoeniq
b6bb2c7fe5 Version for server list added 2021-12-10 16:34:13 +01:00
EntenKoeniq
3bcda302fe Small changes and bug fixes 2021-12-10 16:25:59 +01:00
EntenKoeniq
d244cd393a bug fixes 2021-12-10 15:55:45 +01:00
EntenKoeniq
218e60157e Added SendNativeResponse() 2021-12-10 13:38:03 +01:00
EntenKoeniq
c01788c2d4 Added CPU and RAM usage for debug build 2021-12-10 11:31:36 +01:00
Nick-I. A
2ce20ff118
Merge pull request #38 from EntenKoeniq/main
Removed "PlayerDisconnectPacket()" from client to server. Small bug f…
2021-12-08 13:01:27 +01:00
EntenKoeniq
a5ad2ab76f Changed "Npcs" to "NPCs" 2021-12-08 10:04:38 +01:00
EntenKoeniq
dc4263ab9f Removed "PlayerDisconnectPacket()" from client to server. Small bug fixes and changes 2021-12-08 09:57:19 +01:00
Makinolo
9fc92f5293 Adds config option for traffic in COOPAPI
And removes the welcome message in NON INTERACTIVE mode
(Press F9 is not possible in that compilation mode)
2021-12-07 22:14:15 -07:00
EntenKoeniq
ed46eb5a8b masterserver finished 2021-12-08 03:59:14 +01:00
EntenKoeniq
14698f93dd MasterServer URL added 2021-12-07 11:10:59 +01:00
EntenKoeniq
31fa603b1c Serverlist is working now 2021-12-07 08:18:29 +01:00
EntenKoeniq
530d6b885d Maybe we should use UTF8 instead of ASCII? 2021-12-06 06:35:02 +01:00
EntenKoeniq
bec80e6082 Vehicle turret synchronization (experimental and not finished yet) 2021-12-06 00:56:08 +01:00
EntenKoeniq
bce2a7cbc2 Fixed settings not saved. Started with the server list 2021-12-04 21:34:43 +01:00
EntenKoeniq
129a4faea1 Fixed client exceptions 2021-12-03 20:30:00 +01:00
EntenKoeniq
52f5ab5b3d ScriptHookVDotNet updated. NuGet packages removed 2021-12-03 20:12:15 +01:00
EntenKoeniq
33cda5dcfb XML documentation added (not finished yet) 2021-11-28 23:35:37 +01:00
EntenKoeniq
12a2ddf625 CleanUp() removed 2021-11-28 22:57:39 +01:00
EntenKoeniq
2836953d89 Newtonsoft.Json added. CoopSerializer updated. Bugfix for ModPackets. Interface renamed to COOPAPI. SendDataToServer() and GetLocalUsername() added 2021-11-27 22:44:00 +01:00
EntenKoeniq
b3391f3da0 "Players" locked in GetPlayer. SendChatMessage has been changed to LocalChatMessage 2021-11-27 00:39:14 +01:00
EntenKoeniq
a739497328 Bug fix for vehicle color. Interval by FPS 2021-11-27 00:26:12 +01:00
EntenKoeniq
5c7e7f45a0 Error handling, bug fixes, new API functions and more added! 2021-11-25 16:32:04 +01:00
EntenKoeniq
ed46155138 Use the new features of SHVDN (must be created from the source code itself)
9edc0871bd
2021-11-25 10:17:58 +01:00
EntenKoeniq
902acdd798 Bicycle color synchronization. Fixed server crash 2021-11-24 00:12:25 +01:00
Makinolo
1c3c9ec1fa Adds connection and disconnection callbacks for all players
Not only for own player
2021-11-19 17:05:57 -07:00
EntenKoeniq
b5d4fa6297 if (LastSyncWasFull)... 2021-11-19 22:36:46 +01:00
EntenKoeniq
8fc16725ff Use TickCount64 instead of TickCount 2021-11-19 22:08:15 +01:00
EntenKoeniq
b3fdc9f21c Show MB instead of bytes 2021-11-19 12:30:47 +01:00
EntenKoeniq
ffb3db7d37 "vehicleIsTryingToEnter" added (you have to test this with two people) 2021-11-19 10:44:16 +01:00
EntenKoeniq
1bcc9882c0 You didn't see anything! 2021-11-19 09:28:38 +01:00
EntenKoeniq
27b7b96bfd We don't need that flag 2021-11-19 09:24:06 +01:00
EntenKoeniq
6eee37c594 Much better 2021-11-19 09:10:23 +01:00
EntenKoeniq
1cb3bca052 We should ask if this NPC is the driver 2021-11-19 08:50:23 +01:00
EntenKoeniq
0e2becd691 I forgot something 🤦‍♂️ 2021-11-19 08:45:20 +01:00
EntenKoeniq
5c14d2300b New vehicle synchronization added. Some changes 2021-11-19 08:40:40 +01:00
EntenKoeniq
13cd3527e0 Tire bursts and rpm synchronization added (Currently only for DEBUG!) 2021-11-19 06:37:21 +01:00
EntenKoeniq
b6b64eba53 More stuff 2021-09-30 23:35:42 +02:00
EntenKoeniq
dfc6682e20 better but not finished yet 2021-09-29 15:51:28 +02:00
EntenKoeniq
05f70a6d04 NOT FINISHED YET!
More info later...
2021-09-29 14:34:22 +02:00
EntenKoeniq
1320f35f30 More stuff. Small changes 2021-09-28 16:51:16 +02:00
EntenKoeniq
073d09d018 Small changes 2021-09-28 14:44:10 +02:00
EntenKoeniq
85186aef3b Interface (IsOnServer added). Small changes 2021-09-27 22:40:18 +02:00
EntenKoeniq
6479d92460 Interface.cs (ChatMessageReceived and SendChatMessage added). Small changes 2021-09-27 20:28:27 +02:00
EntenKoeniq
09b7860807 Interface.cs cleaned up 2021-09-27 19:10:51 +02:00
Makinolo
7b467aec18 Creates interface to communicate with other mods and menus optional
The interface static class will be used from 3rd party mods to
initiate, close and configure the connection. The project can be
compiled with the NON_INTERACTIVE copiler flag to remove the menus
and leave only the interface as a controller.
This is an initial implementation, future additions will support
more operations.
2021-09-26 21:31:40 -06:00
EntenKoeniq
921645287b Small changes 2021-09-26 22:27:49 +02:00
EntenKoeniq
b45f4cc7a3 CustomData added. SendPlayerDisconnectPacket fixed. Small changes 2021-09-26 21:19:26 +02:00
EntenKoeniq
be921ba310 LAST UPDATE 2021-08-26 17:01:32 +02:00
EntenKoeniq
72d8f9b92b Stuff 2021-08-22 13:59:15 +02:00
EntenKoeniq
d9ea3f426a better 2021-08-21 16:52:17 +02:00
EntenKoeniq
9bcf817418 Stuff 2021-08-20 17:28:13 +02:00
EntenKoeniq
ce60aad78b 0.5.1 2021-08-18 18:20:55 +02:00
EntenKoeniq
ad1b9d9e03 bugfix 2021-08-18 16:21:07 +02:00