#Rust callbacks to factorio lua events

1 messages ยท Page 1 of 1 (latest)

uncut halo
#

im honestly impressed rivet works at all

green musk
#

ribbets ๐Ÿธ

spring sedge
#

debug symbols help a decent amount

uncut halo
#

eli5?

spring sedge
#

factorio ships with debug symbols (on linux/mac included inside the binary, on windows in a .pdb file).

#

and that includes a lot of information about functions, classes, structs, etc

uncut halo
#

oh so basically a sourcemap

spring sedge
#

almost

uncut halo
#

hmm

glossy prawn
#

So you found the spot in the binary that creates events, and then patched some assembly in there somehow that hooks the rust program?

green musk
#

yep. and then trampolines back into the original c++ function

minor galleon
#

Im very surprised by the font you use in VSC tbh ๐Ÿ’€

spring sedge
#

sarif font for types ๐Ÿซ 

green musk
#

@sullen jungle

fiery imp
#

I thought facatorio already had enough rust

silent cave
spring sedge
silent cave
#

Because I was wondering...