Well, I don't really need 'spawned from file' entities, I could always place then in WED, and make them appear by script, didn't quite get the 'summonings', but I'm pretty good with the way it works right now laugh The only limitation is, that objects can not be removed/deleted from the level. That's because I save them into the list (and because all entities are pre-placed in WED, they get recreated on each level load, so I'll face empty pointer when trying to load parameters from the list.. so it's much easer just to make it passable/invisible), and write that list in it's order into the file. If I remember correctly, I read here on the forum that 'ent_next' list is always different, so I didn't use it, to keep the right order of saving/loading.

Thank you, I feel a bit better today.

Edit: also, I'm thinking about what would be the best way of saving/loading position/orintation of NPCs. In lots of older games, they only used to reset NPCs to their start positions (without saving anything on level change). Maybe that's the way to go? Currently, I save their positions/orientations, so when I load level back, it looks same as right before going to another level.

Edit2: also, when I tried to save/load everything from a single .txt file, I faced a problem with 'file_open_write' as it removes all content from the file.. 'file_open_append' write stuff at the end. Maybe I could save the whole file content into the string, then split it to BEFORE and AFTER the room that I need to change stuff in. Then after changing, add this string with changes to the BEFORE string, and then add to it AFTER string. Or maybe I'm making things too complicated again grin

Greets.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung