Search found 291 matches

by justarandomgeek
Wed Jun 23, 2021 10:16 pm
Forum: Resolved Problems and Bugs
Topic: [Rseding91] [1.1.35] crash when using set_stack inside blueprint book
Replies: 1
Views: 251

[Rseding91] [1.1.35] crash when using set_stack inside blueprint book

Using set_stack() to replace an item in a blueprint book causes a crash Repro command (imports a book containing an empty blueprint) /c game.player.cursor_stack.import_stack("0eNqrVkrKKU0tKMrMK4lPys/PVrKqRogUK1lFI3FBcpklqblKVkhiOkplqUXFmfl5SlZGFoYm5pZG5iYGxuZGJha1OkqZeSmpFUpWBrWxOhg6dcHW6SglJpd...
by justarandomgeek
Wed Jun 16, 2021 5:56 pm
Forum: Releases
Topic: Version 1.1.35
Replies: 13
Views: 14981

Re: Version 1.1.35

yes but we are talking about an API and making it easier to consume and not providing full on lua debugging. I use schema's primarily for autocompletion in kubernetes yaml files or for my cloudformation for AWS so i don't have to memorise the file format or have the doco open in another monitor to ...
by justarandomgeek
Wed Jun 16, 2021 5:21 pm
Forum: Releases
Topic: Version 1.1.35
Replies: 13
Views: 14981

Re: Version 1.1.35

should consider that json support for https://json-schema.org/ format example schema's can be seen: https://www.schemastore.org/json/ i use it all the time as i code from neovim. would mean the format provided is in a more generally consumable format with heaps of editors with support out of the bo...
by justarandomgeek
Wed Jun 16, 2021 5:14 pm
Forum: Releases
Topic: Version 1.1.35
Replies: 13
Views: 14981

Re: Version 1.1.35

should consider that json support for https://json-schema.org/ format example schema's can be seen: https://www.schemastore.org/json/ i use it all the time as i code from neovim. would mean the format provided is in a more generally consumable format with heaps of editors with support out of the bo...
by justarandomgeek
Wed Jun 16, 2021 4:58 pm
Forum: Releases
Topic: Version 1.1.35
Replies: 13
Views: 14981

Re: Version 1.1.35

Added a machine-readable JSON format of the runtime documentation, which can be used by developer tools to provide code completion and related functionality. is this json schema and where can I find it so I can use it as a linter! Information about it can be found here , and support for code comple...
by justarandomgeek
Wed Jun 16, 2021 4:55 pm
Forum: Releases
Topic: Version 1.1.35
Replies: 13
Views: 14981

Re: Version 1.1.35

VScode mod debugger 1.1.10 has a converter to translate the json to EmmyLua for sumneko (and one for TypeScriptToLua is coming soon)

https://github.com/justarandomgeek/vsco ... rkspace.md
by justarandomgeek
Mon Nov 02, 2020 2:33 pm
Forum: Minor issues
Topic: [twinsen] [0.18.32] DNS/hostname with both IPv6 and IPv4, uses only IPv4, when using --mp-connect or GUI
Replies: 16
Views: 1575

Re: [0.18.32] DNS/hostname with both IPv6 and IPv4, uses only IPv4, when using --mp-connect or GUI

In practice, I don't really see the current implementation causing problems that can't be worked around(in the most common use cases). The big one i see is that it seems like it would be impossible to host a game that's accessible to both ipv4-only and ipv6-only clients, if the server is only bindi...
by justarandomgeek
Fri Oct 30, 2020 4:31 am
Forum: Minor issues
Topic: [twinsen] [0.18.32] DNS/hostname with both IPv6 and IPv4, uses only IPv4, when using --mp-connect or GUI
Replies: 16
Views: 1575

Re: [0.18.32] DNS/hostname with both IPv6 and IPv4, uses only IPv4, when using --mp-connect or GUI

I'd be interested to see how other software handles it. Every piece of game software i've seen requires you give it the host IP address for it to bind to. Or it just hosts through steam networking which then falls back to steam to do it. Most software i've interacted with defaults to binding to all...
by justarandomgeek
Fri Oct 30, 2020 3:42 am
Forum: Already exists
Topic: Remove "Elapsed:"+"ms" from LuaProfiler printout
Replies: 6
Views: 632

Re: Remove "Elapsed:"+"ms" from LuaProfiler printout

Also for future readers: if you're using my profiler tool in vscode you'll need to keep a single : before the time so that i can parse it correctly, since i assume default locale If you assume missing colons may be a problem, why don't you match the input against ":*"? it's part of a larg...
by justarandomgeek
Fri Oct 30, 2020 1:55 am
Forum: Already exists
Topic: Remove "Elapsed:"+"ms" from LuaProfiler printout
Replies: 6
Views: 632

Re: Remove "Elapsed:"+"ms" from LuaProfiler printout

eradicator wrote:
Thu Oct 22, 2020 11:16 pm
[snip]

For future readers:

Code: Select all

[lua-profiler]
elapsed=Elapsed: __1__ms
duration=Duration: __1__ms
Also for future readers: if you're using my profiler tool in vscode you'll need to keep a single : before the time so that i can parse it correctly, since i assume default locale
by justarandomgeek
Sat Aug 01, 2020 2:07 pm
Forum: Modding interface requests
Topic: Localization for error()
Replies: 3
Views: 419

Re: Localization for error()

error(LocalisedString) already works as far as i know, it was a part of my old hack for translating things in the debugger before localised_print!

Edit: just tested, apparently it's only translated in control, wonder how i never noticed that!
by justarandomgeek
Thu Jul 30, 2020 4:47 pm
Forum: Resolved Problems and Bugs
Topic: [0.18.38] LuaInventory.insert() broken on full blueprint-book
Replies: 1
Views: 415

[0.18.38] LuaInventory.insert() broken on full blueprint-book

/c game.player.cursor_stack.set_stack('blueprint-book') game.player.cursor_stack.get_inventory(defines.inventory.item_main).insert('blueprint') produces an empty book, rather than the expected book with one print. Inserting does appear to work when there is already a print in the book and there are...
by justarandomgeek
Wed Jul 29, 2020 12:24 pm
Forum: Mod portal Discussion
Topic: Mod Portal Upload API Docs (for VSCode Extension)
Replies: 7
Views: 767

Re: Mod Portal Upload API Docs (for VSCode Extension)

minor update: the captcha now seems to not appear on at least the first attempt so if your creds are good tools work again!
by justarandomgeek
Fri Jul 24, 2020 1:29 pm
Forum: Mod portal Discussion
Topic: Mod Portal Upload API Docs (for VSCode Extension)
Replies: 7
Views: 767

Re: Mod Portal Upload API Docs (for VSCode Extension)

Another update seems to have added a captcha, totally thwarting my attempts to have automated uploading tools. Please can i have a real upload api?
by justarandomgeek
Sat Jun 27, 2020 5:46 pm
Forum: Mod portal Discussion
Topic: Mod Portal Upload API Docs (for VSCode Extension)
Replies: 7
Views: 767

Re: Mod Portal Upload API Docs (for VSCode Extension)

For anyone else updating tools: the new login process is picky about the referer header on the submitted login form too, in addition to the form content (including csrf token of course)

The upload itself appears to work as-is.
by justarandomgeek
Sat Jun 27, 2020 5:02 pm
Forum: Mod portal Discussion
Topic: Mod Portal Upload API Docs (for VSCode Extension)
Replies: 7
Views: 767

Mod Portal Upload API Docs (for VSCode Extension)

I've just noticed the portal update broke my mod uploader (in the vscode mod debugger extension ), and thought I might as well ask for some real docs/support this time before i start reverse engineering again to update it! Is there (or can there be) a documented API way to get logged in for uploadin...
by justarandomgeek
Sat Jun 27, 2020 2:09 pm
Forum: Resolved Problems and Bugs
Topic: [0.18.32] Crash to desktop when resuming autosave under debugger.
Replies: 4
Views: 424

Re: [0.18.32] Crash to desktop when resuming autosave under debugger.

Minor follow up now that this is in resolved: We've changed the way the debugger `log()` hook works to no longer allow constructing this crash with the latest factorio(0.18.34) and debugger(0.18.25) when both are updated (if either is old it'll still use the old way).
by justarandomgeek
Fri Jun 26, 2020 9:48 pm
Forum: Modding discussion
Topic: Fixing data stage spam
Replies: 39
Views: 3451

Re: Fixing data stage spam

Is this a horrible idea, now that we can run Factorio under a debugger? =) if mods['debugadapter'] then log("Creating " .. new_item_name) end Actually, would it be possible to do something like have a `debug_log` function that only gets turned on when Factorio has failed to load, and on t...
by justarandomgeek
Wed Jun 24, 2020 6:18 pm
Forum: Resolved Problems and Bugs
Topic: [0.18.32] Crash to desktop when resuming autosave under debugger.
Replies: 4
Views: 424

Re: [0.18.32] Crash to desktop when resuming autosave under debugger.

I'll dig into this more shortly, but yes, it is almost certainly caused by the debugger doing a little bit of evil to convert log() calls to debug console events with clickable links to source. You can disable this functionality for now by setting "hookLog": false in your launch.json, whic...
by justarandomgeek
Thu Jun 18, 2020 4:30 pm
Forum: Resolved Problems and Bugs
Topic: [0.18.32] Crash iterating through all chunks: "LuaHelper::pushTilePosition"
Replies: 2
Views: 783

Re: [0.18.32] Crash iterating through all chunks: "LuaHelper::pushTilePosition"

I also looked into this a little and it seems to me that what is happening is that when the InfiniteRectangleIterator is being re-initialized for a new call to iterator(), it sometimes takes a path that leaves ->position on it null, but does *not* set the ended status, which later leads to that null...

Go to advanced search