OzzyOuzo Posted November 14 Share Posted November 14 Yoo while porting some stuff, i've been facing some global defs collisions while linking. It seems that internally JagStudio is using globals like : _joy and _keyb As i'm also pretty lazy on good coding practices... Ofc both definitions are colliding with my own ^^ In any case, you should also add a prefix to these definitions on the jagStudio side to avoid these situations, such as (_jagstd) resulting in _jagstdJoy and _jagstdKeyb which would be less prone to collisions. Quote Link to comment https://forums.atariage.com/topic/375373-global-definitions-collisions/ Share on other sites More sharing options...
+CyranoJ Posted November 14 Share Posted November 14 Oh, good. When I saw this I thought there might be a problem with collision detection. This one, however, is fixed by adding "Reserved variable names" in the manual. Quote Link to comment https://forums.atariage.com/topic/375373-global-definitions-collisions/#findComment-5565223 Share on other sites More sharing options...
OzzyOuzo Posted November 14 Author Share Posted November 14 (edited) sorry to be a noob but which Manual are you refering to ? something different from this ? https://reboot-games.com/jagstudio/ReferenceManual.html Edited November 14 by OzzyOuzo poob Quote Link to comment https://forums.atariage.com/topic/375373-global-definitions-collisions/#findComment-5565227 Share on other sites More sharing options...
42bs Posted November 16 Share Posted November 16 (edited) On 11/14/2024 at 7:52 AM, OzzyOuzo said: Yoo while porting some stuff, i've been facing some global defs collisions while linking. It seems that internally JagStudio is using globals like : _joy and _keyb As i'm also pretty lazy on good coding practices... Ofc both definitions are colliding with my own ^^ In any case, you should also add a prefix to these definitions on the jagStudio side to avoid these situations, such as (_jagstd) resulting in _jagstdJoy and _jagstdKeyb which would be less prone to collisions. Ok, you want a widely used library to be changed just because you cannot change your variable to :my_joy and my_keyb? Doesn't it sound strange to you? Edited November 16 by 42bs Quote Link to comment https://forums.atariage.com/topic/375373-global-definitions-collisions/#findComment-5566358 Share on other sites More sharing options...
OzzyOuzo Posted November 16 Author Share Posted November 16 ?? I don't want nothing at all, just reporting stuff while using Jstudio and trying to give some hints. Quote Link to comment https://forums.atariage.com/topic/375373-global-definitions-collisions/#findComment-5566386 Share on other sites More sharing options...
42bs Posted November 16 Share Posted November 16 On 11/14/2024 at 10:03 AM, OzzyOuzo said: sorry to be a noob but which Manual are you refering to ? something different from this ? https://reboot-games.com/jagstudio/ReferenceManual.html I guess he means: "Your problem gets fixed by _adding_ a chapter to the manual about reserved names." Not that it now contains such. Quote Link to comment https://forums.atariage.com/topic/375373-global-definitions-collisions/#findComment-5566400 Share on other sites More sharing options...
OzzyOuzo Posted November 16 Author Share Posted November 16 lul Quote Link to comment https://forums.atariage.com/topic/375373-global-definitions-collisions/#findComment-5566401 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.