PortalGunClassic icon indicating copy to clipboard operation
PortalGunClassic copied to clipboard

Compatibility with multiple players?

Open Ijdtm7 opened this issue 5 years ago • 2 comments

Hey there and great mod! I am trying to figure out what modifications to the code i could make so that it allows each player to have their own set of portals. Do you have any ideas how one would do this?

Ijdtm7 avatar Aug 12 '20 17:08 Ijdtm7

@Ijdtm7 Maybe make portals have ids correlating to player ids and then with some simple math make the portal and its counterpart be colored using that id? I don't claim to know much about programming in Java, but that seems like it would be pretty easy to implement.

CoolCat467 avatar Jan 14 '21 23:01 CoolCat467

@Ijdtm7 Maybe make portals have ids correlating to player ids and then with some simple math make the portal and its counterpart be colored using that id? I don't claim to know much about programming in Java, but that seems like it would be pretty easy to implement.

@CoolCat467 Well, For my mod last month i've collected a UUID from the start of the portal creation and have put it through all the code files. And currently have a bit buggy but working implementation of using uuids. Still needs a bit of tuning though.

Ijdtm7 avatar Jan 14 '21 23:01 Ijdtm7