Open IdleSol opened 4 days ago
Would you like to test whether this bug started to happen before 2024-09-16 or not?
DEBUG : init_vehicles: 'test123' part 'hdframe'(31) can't be installed to -3,-1
FUNCTION : void vehicles::finalize_prototypes()
FILE : src/veh_type.cpp
LINE : 1591
VERSION : cdda-experimental-2024-08-01-0043 1fd261f
UPD. cdda-windows-tiles-x64-2023-12-01-0145 Same thing.
DEBUG : init_vehicles: 'test123' part 'hdframe'(31) can't be installed to -3,-1
FUNCTION : void vehicles::finalize_prototypes()
FILE : src/veh_type.cpp
LINE : 1585
VERSION : d1c72bc
cdda-windows-tiles-x64-2023-05-29-0601 In this version, the vehicle parts are not known.
Why is there no error with the “original” truck? Because the order of parts in the trucks.json file is different from the order in the export file.
The export file sorts (maybe) by X coordinates, then Y coordinates. From negative numbers, to positive numbers. That is, in ascending order.
The file with the original truck starts from coordinates 0.0. But in this variant, we just got lucky.
If we talk about theoretical ways of fixing, then:
Describe the bug
I will cite the error itself below. But it is not important. The problem is in the order of reading the json file created when exporting transport. If I understand correctly.
The situation is as follows. There is a truck in the game. It is possible to spawn it. There will be no errors. It can be exported to a file. Then put this file in the json folder and get an error preventing loading.
Attach save file
123.json
Steps to reproduce
Standard world and character
Debug menu -
s
pawning -v
ehicle - Semi Truck (semi_truck) - undamagedDebug menu -
v
ehicle... -e
xport vehicle as prototype - 123Quit the game
Move the 123.json file from the ./export_dir folder to the ./data/json folder
Change the
id
andname
of the transport (optional)Save file
Load a new world/save
Get an error message
I
gnore errorDebug menu -
s
pawning -v
ehicle - test123 - undamagedLet's see the result
Expected behavior
n/a
Screenshots
No response
Versions and configuration
Additional context
No response