You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using Qodot and Trenchbroom for my project for a few months now. I recently updated to the latest version, and everything was working fine. Yesterday everything was working perfectly fine, but today when I built my map it was offset dramatically. After much testing, and the creation of a second project with which to test, I determined that the geometry is being offset in such a way that WorldSpawn is closer to being centred around the origin. The offset seems to be much more dramatic horizontally than vertically, and the offset amount seems to be related to the scale of the map.
I'm certain the offset is with worldspawn due to testing a scene with a cube, and a cube above it in a group. When another cube is added next to the cube that's part of worldspawn, the worldspawn is offset, while the group remains in place.
This is the geometry as it exists in trenchbroom.
This is how it's reconstructed in Godot. (the floating cube is the item in the group "test")
The following is a small project recreating the issue:
I'd try to mark this as urgent, but I lack a way to. This is just an utterly bizzare bug that popped up without warning. The only workaround is manually offsetting the worldspawn every time the map is rebuilt. And that's not really a workaround. (though possibly another one would be adding everything to a group, but that's suboptimal for various reasons)
Edit: while this looks like a duplicate of #153, this is with the default definitions. Additionally, there's an error stating res://addons/qodot/src/nodes/qodot_map.gd:378 - Invalid call. Nonexistent function 'get_entity_definitions' in base 'Resource (QodotFGDFile)'. whenever a build occurs.
The text was updated successfully, but these errors were encountered:
Looks like this is happening here which was last updated as part of this PR. However, I'm not sure if that is what introduced the issue in the first place. Taking out the entity_idx != 0 condition appears to preserve the TrenchBroom positions which also fixes the offset issue.
I think it's actually an issue with the default QodotFGDFile resource and how it's being loaded in initially. If you click the Make Unique button on the Entity Fgd field in the Inspector then that fixes everything.
Version: Qodot 2024.1
Trenchbroom version: 2024.1
Godot Version: 4.2.1.stable
I've been using Qodot and Trenchbroom for my project for a few months now. I recently updated to the latest version, and everything was working fine. Yesterday everything was working perfectly fine, but today when I built my map it was offset dramatically. After much testing, and the creation of a second project with which to test, I determined that the geometry is being offset in such a way that WorldSpawn is closer to being centred around the origin. The offset seems to be much more dramatic horizontally than vertically, and the offset amount seems to be related to the scale of the map.
I'm certain the offset is with worldspawn due to testing a scene with a cube, and a cube above it in a group. When another cube is added next to the cube that's part of worldspawn, the worldspawn is offset, while the group remains in place.
This is the geometry as it exists in trenchbroom.
![image](https://private-user-images.githubusercontent.com/47702559/320252543-b6aa4a07-fec0-47ea-9721-18208d1a5c9c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM3NzYxNjQsIm5iZiI6MTcyMzc3NTg2NCwicGF0aCI6Ii80NzcwMjU1OS8zMjAyNTI1NDMtYjZhYTRhMDctZmVjMC00N2VhLTk3MjEtMTgyMDhkMWE1YzljLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDAyMzc0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE2NDIxZjZiZGYyOWJmODQzY2ZmZGI2OThkYjg2MGI0ZmZiODg3NjliY2JiZDM5ZjFkODE1NmE4NzE1NzlhMjMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.VUh0ML3q89Ax87hwWbbRSCtwBXDKO7u4SWQF9sJsWq0)
![image](https://private-user-images.githubusercontent.com/47702559/320252628-a88f1c5b-be12-4f5a-bfb7-5878dd540a42.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM3NzYxNjQsIm5iZiI6MTcyMzc3NTg2NCwicGF0aCI6Ii80NzcwMjU1OS8zMjAyNTI2MjgtYTg4ZjFjNWItYmUxMi00ZjVhLWJmYjctNTg3OGRkNTQwYTQyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE2VDAyMzc0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI1NDliMzk2ODFjZjE5NjE2NzlhNmM0ZDc2MWY1MTc0N2YxNGQ5Y2E0Y2Y4YTY4OGViZTI0ZDg0MTcxOTEyYTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.QOSSfkyvMSx7YbgrgtM5FSE7wVR9arVl2pFBSc8-jRE)
This is how it's reconstructed in Godot. (the floating cube is the item in the group "test")
The following is a small project recreating the issue:
qodottest.zip
I'd try to mark this as urgent, but I lack a way to. This is just an utterly bizzare bug that popped up without warning. The only workaround is manually offsetting the worldspawn every time the map is rebuilt. And that's not really a workaround. (though possibly another one would be adding everything to a group, but that's suboptimal for various reasons)
Edit: while this looks like a duplicate of #153, this is with the default definitions. Additionally, there's an error stating
res://addons/qodot/src/nodes/qodot_map.gd:378 - Invalid call. Nonexistent function 'get_entity_definitions' in base 'Resource (QodotFGDFile)'.
whenever a build occurs.The text was updated successfully, but these errors were encountered: