Search found 7 matches

by spiro9
Thu Apr 28, 2022 8:18 pm
Forum: Bob's mods
Topic: [1.1] Bob's Mods: General Discussion
Replies: 59
Views: 26211

Re: [1.1] Bob's Mods: General Discussion

Would it be fine to build "addon mods," as it were, which piggyback off the library and other bob's mods code, without actually containing any of that code within themselves? There's some convenient functions in there that would be nice to work with while I'm starting out, but I don't wan...
by spiro9
Thu Apr 28, 2022 7:15 am
Forum: Bob's mods
Topic: [1.1] Bob's Mods: General Discussion
Replies: 59
Views: 26211

Re: [1.1] Bob's Mods: General Discussion

Would it be fine to build "addon mods," as it were, which piggyback off the library and other bob's mods code, without actually containing any of that code within themselves? There's some convenient functions in there that would be nice to work with while I'm starting out, but I don't want...
by spiro9
Wed Apr 27, 2022 4:33 am
Forum: Modding help
Topic: Question about the global table
Replies: 10
Views: 1095

Re: Question about the global table

See code of https://mods.factorio.com/mod/RocketExplosions function get_tech_level (force, tech_name) local level = 0 local techs = force.technologies local tech = techs[tech_name] or techs[tech_name..'-1'] if tech and tech.researched then level = tech.level local i = 1 local fl = true while fl do ...
by spiro9
Wed Apr 27, 2022 1:25 am
Forum: Modding help
Topic: Question about the global table
Replies: 10
Views: 1095

Re: Question about the global table

The global table is something that belongs to your mod. It will be accessible in script.on_init, script.on_configuration_changed, migration scripts, and during normal running of the game, but NOT in script.on_load. You should put things in there that can't be easily restored when you load a game: e...
by spiro9
Mon Apr 25, 2022 3:44 pm
Forum: Modding help
Topic: Question about the global table
Replies: 10
Views: 1095

Re: Questions about the global table & tech calls

See code of https://mods.factorio.com/mod/RocketExplosions function get_tech_level (force, tech_name) local level = 0 local techs = force.technologies local tech = techs[tech_name] or techs[tech_name..'-1'] if tech and tech.researched then level = tech.level local i = 1 local fl = true while fl do ...
by spiro9
Mon Apr 25, 2022 2:43 am
Forum: This Forum
Topic: Forum name change
Replies: 20
Views: 5893

Change username?

I'd like to be able to switch my username - I still use the alias peefTube but more recently I've been going by spiro9. Is there any way to use both aliases, perhaps to change my username to

Code: Select all

peefTube | spiro9
?
by spiro9
Mon Apr 25, 2022 2:29 am
Forum: Modding help
Topic: Question about the global table
Replies: 10
Views: 1095

Question about the global table

I'm working with a new mod project (with no prior Factorio modding experience) and I'm trying to set up something where a pseudo-infinite upgrade technology could possibly increment an integer value to track how many times that technology has been researched, assuming that's necessary. I'm not 100% ...

Go to advanced search