David Cernat
ac018517a3
[Cell] Add extra integrity check to LoadActorCellChanges()
2018-10-18 20:02:24 +03:00
David Cernat
945c5c7a3f
[Cell] Use nil checks when loading placed & spawned objects
2018-10-09 11:07:48 +03:00
David Cernat
92ddc00176
[General] Rename confusing method in tableHelper
2018-10-08 17:13:41 +03:00
David Cernat
46698c1d18
[General] Shorten long lines
2018-09-21 04:16:48 +03:00
David Cernat
4dc340480e
[General] Change code style by using "not" operator whenever possible
2018-09-21 03:14:24 +03:00
David Cernat
1c3e9ac808
[General] Clean up logging by using easily adjustable log level values
2018-09-08 19:11:27 +03:00
David Cernat
9cd5dc8556
[General] Implement dynamic records, part 2
...
Records are now split into 2 categories: permanent records and generated records.
Permanent records are kept forever once created and are sent to all players when they join the server.
Generated records are linked to players, cells or other records, are deleted once those links disappear, and are only sent to players who encounter them. For instance, if a player creates hundreds of potions in a house and then drops the potions there, those potion records will only be sent to players who enter that house. If the potions are drunk and there are no longer any instances of them, their associated records are deleted.
By default, permanent records are created by using the /createrecord command after specifically setting an ID for the record about to be created.
Generated records are created through regular gameplay or by using the /createrecord command without specifying an ID for the record.
2018-08-30 03:32:58 +03:00
David Cernat
af56be8881
[Cell] Make all players have data for spawned actors entering cell
...
This fixes remaining problems from 7a4495c9c9 by spawning every cell-changing NPC for everyone who isn't already a visitor to the cell that NPC is in.
2018-08-27 11:45:06 +03:00
David Cernat
2142b14968
[General] Log chat names instead of pids for players whenever possible
2018-08-26 07:55:53 +03:00
David Cernat
7a4495c9c9
[Cell] Ensure cell visitors have data for spawned actors entering cell
...
This should greatly alleviate one of the main remaining sources of desync.
2018-08-26 06:55:52 +03:00
David Cernat
cc718bbffb
[Cell] Remove unused IsExterior() method
2018-08-26 03:44:17 +03:00
David Cernat
1b2b9bef63
[Cell] Recreate any missing packet tables when sending cell data
2018-08-26 03:42:49 +03:00
David Cernat
8d6113d6a6
[Cell] Rework methods for loading object data & sending packets
...
The methods for loading object data now have objectData and uniqueIndexArray arguments, except for LoadActorCellChanges() which only has the former for the time being. The additional arguments allow for the easy loading of partial or custom object data.
2018-08-25 14:03:59 +03:00
David Cernat
1354dfca49
[Cell] Fix typo when deleting AI packets due to missing object data
2018-08-25 12:47:23 +03:00
David Cernat
5c39b71bc4
[Cell] Rename methods starting with Send so they start with Load instead
...
This makes them consistent with methods from the Player, Worldstate and Recordstore classes.
2018-08-25 11:48:35 +03:00
David Cernat
5f755c5db6
[General] Use new packetBuilder methods to send other cell object data
2018-08-25 11:36:22 +03:00
David Cernat
c64143d00d
[General] Use new packetBuilder.AddObjectPlace() method for cell placing
2018-08-25 10:44:45 +03:00
David Cernat
33abae728d
[General] Use new packetBuilder.AddObjectSpawn() method for cell spawns
2018-08-25 10:34:51 +03:00
David Cernat
e20f6c2a80
[Cell] Update usage of inventoryHelper methods when saving containers
2018-08-25 09:38:55 +03:00
David Cernat
13acf0e097
[PacketBuilder] Rename AddAIActorToPacket into AddAIActor
2018-08-12 06:12:37 +03:00
David Cernat
a0ae5016f6
[General] Rework arguments for AI data & packet methods
2018-08-12 05:43:41 +03:00
David Cernat
9f0c0218a2
[Cell] Simplify getting of visitor count
2018-07-27 02:01:41 +03:00
David Cernat
c5d6f5a204
[General] Set cell description in initialization instead of logicHandler
2018-07-26 22:42:43 +03:00
David Cernat
bbf32a8544
[General] Save and load souls for cell objects and player items
2018-07-26 22:40:26 +03:00
David Cernat
dc7f7d1fd3
[Cell] Rename variable i into objectIndex in object-saving methods
2018-07-24 19:43:11 +03:00
David Cernat
e38ddddf6f
[General] Move object-processing code from BaseCell to eventHandler
2018-07-21 07:57:07 +03:00
David Cernat
ab54b7eef8
[Cell] Clean up visitor-removing and authority-setting lines slightly
2018-07-21 03:05:16 +03:00
David Cernat
0a2eeca2fb
[General] Switch to using OnWorldKillCount instead of OnPlayerKillCount
...
Additionally, fix a typo in BaseCell:ProcessObjectsActivated()
2018-07-15 05:36:26 +03:00
David Cernat
3bd0c98cab
[General] Add handling of ObjectActivate packets
2018-07-15 03:16:58 +03:00
David Cernat
c3407bac45
[General] Rename refIndex into uniqueIndex
...
This helps improve clarity by preventing confusion between the refNum and the combination of a refNum and an mpNum that is now called the uniqueIndex.
2018-07-13 04:31:38 +03:00
David Cernat
482c66338b
[General] Update script functions to use RefNum instead of RefNumIndex
...
Although the old functions still work, the ones without the word "Index" in them help provide more clarity through symmetry with the MpNum functions.
2018-07-13 04:15:58 +03:00
David Cernat
bb62a5abc7
[General] Replace deprecated functions for reading last received packets
2018-07-13 02:45:48 +03:00
David Cernat
8171072ae0
[Cell] Use skipAttachedPlayer argument in SaveContainers()
2018-07-13 01:41:24 +03:00
David Cernat
fa1286f3a3
[General] Replace deprecated actor and object list functions w/ new ones
2018-07-13 01:38:57 +03:00
David Cernat
25e2a86c77
[General] Synchronize ActorAI packets received from clients
2018-07-13 01:26:27 +03:00
David Cernat
1900b81e3a
[Cell] If new visitor is target of AI packets, send them to all visitors
2018-07-11 23:14:03 +03:00
David Cernat
1315362dfb
[Cell] Send stored AI packets to players who load a cell
2018-07-11 20:19:00 +03:00
David Cernat
8037b6f940
[General] Clean up AI-setting and save AI packets to cell object data
2018-07-11 20:18:28 +03:00
David Cernat
0980d8879a
[Cell] Avoid having overly long lines
2018-07-11 03:32:36 +03:00
David Cernat
5ff3d2f0a1
[General] Rename remaining logic-handling myMod into logicHandller
2018-07-11 03:23:21 +03:00
David Cernat
2ae2954f01
[Config] Place disallowed object placements and spawns in the same table
2018-07-08 05:28:34 +03:00
David Cernat
6bfa436a02
[Cell] Clarify forwarding of object packets
2018-07-08 03:35:20 +03:00
David Cernat
fc9d803d99
[General] Remove unnecessary semicolons for consistency
2018-07-07 13:27:15 +03:00
David Cernat
be42c4f233
[General] Process object packets and only use them if they are valid
2018-07-07 12:41:42 +03:00
David Cernat
c4117e2707
[Config] Rename undeletableRefIds into disallowedDeleteRefIds
2018-07-06 23:48:07 +03:00
David Cernat
3b58f1e442
[General] Use suicide as death reason correctly for actors and players
2018-07-06 02:24:08 +03:00
David Cernat
169c93eebd
[General] Use new killer script functions to determine death reasons
2018-07-05 22:26:39 +03:00
David Cernat
8a61de8a1c
[Cell] Fix crash for non-summoned objects when deleting their data
2018-07-05 17:55:33 +03:00
David Cernat
74f49ea11c
[General] Rename questFixer into contentFixer
2018-07-04 21:16:53 +03:00
David Cernat
2ed34c003f
[Cell] Use correct pids for object summoners
2018-07-04 04:27:47 +03:00