Kuxynator's Personal Teleporter


Adds a personal teleporter that can be used to teleport to any location on the map. Many hotkeys: surface level up/down, next Factorissiomo factory, big jump, small jump, etc... or by mouse click

Utilities
25 days ago
2.0
651
Transportation Cheats

b [FIXED] New error on launch after 3.1.8 update

a month ago

Failed to load mods: Kux-CoreLib/lib/String.lua:332: str() already defined!
stack traceback:
[C]: in function 'error'
Kux-CoreLib/lib/String.lua:332: in main chunk
[C]: in function 'require'
Kux-CoreLib/lib/init.lua:179: in function 'index'
__Kux-CoreLib
/lib/That.lua:38: in main chunk
[C]: in function 'require'
Kux-CoreLib/lib/init.lua:179: in function 'index'
__Kux-CoreLib
/lib/Table.lua:17: in main chunk
[C]: in function 'require'
Kux-CoreLib/lib/init.lua:179: in function 'index'
__Kux-PersonalTeleport
/features/factorissimo.lua:4: in main chunk
[C]: in function 'require'
Kux-PersonalTeleport/data.lua:2: in main chunk

I'm using factorissimo3, it was fine until i've updated your mod.

a month ago

I've done some testing, the only combination that still works is the mod version 3.1.6 with library version 3.12.0

a month ago

I have not changed anything in String
the only explanation is that another mod defines a global str() function. which mods you have?
i can remove my check and overwrite the existing function, but this could have side effects on the other mod.

a month ago
(updated a month ago)

I'm using quite a lot of mods... i'm searching through them but only your library is declaring a function named str (actually not called anywhere, i'm just using your teleport mod).

Ok, It's not this mod problem, it's the library. I've renamed the function in library to strkux() and now it's working. Maybe just rename the function everywhere to avoid possible conflicts?

a month ago

but somewhere it is already defined, otherwise the error would not occur. Kux-PersonalTeleport is not the only mod in my library, so simply renaming it is not the solution for everyone. also, i have all my mods active, without a bug with str(), so there's a good chance it's another mod defining it. BTW str() is used to create display strings for debug, trace and log.
because I made extensive changes to the library for storing and using global variables. I can not publish a quick fix.
In the end, I will always overwrite all global variables when starting a new stage w/o a message.

a month ago

Believe me, i've unzipped every mod and searched inside *.lua for str() and your library is the only result. I don't know what to think, can it be defined somewhere else?

a month ago

Thanks for the effort.
Anyway, now I don't check for existence and always overwrite the global variables in all (sub-)stages. so it shouldn't crash because it already exists. in the best case scenario, my code was simply run twice (although this shouldn't happen) and i complained to my own that it was already there.

a month ago

Thx, at least my problem is fixed 😌

New response