GMod-Seamless-Portals icon indicating copy to clipboard operation
GMod-Seamless-Portals copied to clipboard

When loading a save with any linked portals they unlink

Open wolfestridershooter opened this issue 1 year ago • 4 comments

It doesn't matter if they are manually linked or if they are spawned through the spawnlist entity category Before loading: image After loading: image

wolfestridershooter avatar Apr 03 '23 20:04 wolfestridershooter

im unsure how to fix this properly since I cant store entities in the dupe table because the entity ID changes every time you spawn one in

meetric1 avatar Apr 04 '23 14:04 meetric1

@Mee12345

Hi, I am using the following for the laser so it can paste dupes correctly: https://github.com/dvdvideo1234/LaserSTool/blob/main/lua/entities/gmod_laser/init.lua#L19 https://github.com/dvdvideo1234/LaserSTool/blob/main/lua/laseremitter/wire_wrapper.lua#L7 https://github.com/dvdvideo1234/LaserSTool/blob/main/lua/laseremitter/wire_wrapper.lua#L177

dvdvideo1234 avatar Apr 24 '23 09:04 dvdvideo1234

im unsure how to fix this properly since I cant store entities in the dupe table because the entity ID changes every time you spawn one in

I'm sure there's functions/hooks for the GMod Sandbox save system that lets custom entities store specific info... right? Right?

If not, what about saving the exact origin and angles of the linked portal? Unless it would require frequent updates due to the lack of a GMod Sandbox save hook detector.

Shadowysn avatar Jul 29 '24 11:07 Shadowysn

@meetric1

I will test this after work, but I am sure it will work 90%. You are free to test it too if you like.

dvdvideo1234 avatar Jul 29 '24 13:07 dvdvideo1234