Closed mwpowellhtx closed 3 years ago
As the objectives stated, we did sort out the vector issue while building the FOB building. Turns out it was pretty straightforward. The difficult part was chasing the up and direction vectors throughout the whole process, through client and server, etc.
Sorted out persistent variable serialization. Looks like it is working now, both during save as well as load, serialization and deserialization, respectively.
Concerning points of interest, i.e. factory sectors, yes, should be no big deal, we can handle accordingly.
This one is sorted out we think. Will file other concerns as they pop up.
Basic Information
Mission version:
0.98.dev-s5
Map used: AltisShort Issue Description
Was not either saving FOB data as well as persisted objects. And other concerns, like map markers not being updated, IDs apparently not being assigned correctly upon FOB being built, which we think might be because of
exec
versusspawn
versuscall
constraints. Just in terms of UUID, for example, standalone calls toKPLIB_fnc_uuid_create_string
work just fine, but we are not seeing a UUID landing in the FOB tuple correctly under ordinary FOB building conditions.Expected Behaviour
Should be able to save not only the FOB data itself, but also persist the corresponding FOB buildings. Means we should also be able to restore both seamlessly. We need to also be aware of cases when assets are persisted apart from known FOB locations; i.e. when a FOB was lost, let's say. Should not be restoring those objects.
We might also introduce event handlers doing the "update markers" for different concerns, i.e. FOBs. Which would re-mark when necessary. And also necessarily ensure correct UUID identification. Identification is really critical because we will eventually use this in order to identify different assets, storages, vehicles, sectors, etc.
Sidebar
Assessing the issue and, we think, potentially resolving it, we think we also corrected the matter of proper up and vector, and other bits, being applied correctly to objects, units, etc, when they are created. Will explain that one further, but we think this one happens to have been addressed. This after painstakingly sprinkling in logging retracing the lifetime of the up and direction vectors, for example.
All for now on this one. We will enumerate the bits in a subsequent edit. It is also critical that this matter be addressed and, in some cases, redressed prior to pursuing the question of factory sector build storage.
Obiectives
So what did we learn today...
[...] spawn {...}
immediately following their creation. Not sure what happened there, the object was either not fully there yet, whatever. After doing that the attributes got set correctly. So there's that.