MF99K Posted February 13, 2018 Share Posted February 13, 2018 I'm working on a mod that affects most strings in the game and in its current state none of the strings have changed. I'm wondering if there's a specific way to force the game to use my modded string files instead of the game's default ones or if the game is using default ones because there's a glitch in mine somewhere Link to comment Share on other sites More sharing options...
JohnWatson Posted February 13, 2018 Share Posted February 13, 2018 You can look at strings.lua to see a list of most of the strings in the game. If you want to replace a string, put something like this in your modmain.lua: GLOBAL.STRINGS.EXAMPLE.NAME = "Example" 1 Link to comment Share on other sites More sharing options...
MF99K Posted February 13, 2018 Author Share Posted February 13, 2018 (edited) 5 hours ago, JohnWatson said: You can look at strings.lua to see a list of most of the strings in the game. If you want to replace a string, put something like this in your modmain.lua: GLOBAL.STRINGS.EXAMPLE.NAME = "Example" No like I literally edited EVERY string in the game. That's like 1500 per character plus the prefab names I can't just add those in one by one (basically, how do I force the game to use the modded version of strings.lua instead of the normal one?) Edited February 13, 2018 by MF99K Link to comment Share on other sites More sharing options...
Aquaterion Posted February 13, 2018 Share Posted February 13, 2018 (edited) 1 hour ago, MF99K said: No like I literally edited EVERY string in the game. That's like 1500 per character plus the prefab names I can't just add those in one by one (basically, how do I force the game to use the modded version of strings.lua instead of the normal one?) what do you mean add those one by one? didn't you already do that? can you show a little snippet of a few lines you have? Edited February 13, 2018 by Aquaterion Link to comment Share on other sites More sharing options...
MF99K Posted February 13, 2018 Author Share Posted February 13, 2018 5 hours ago, Aquaterion said: what do you mean add those one by one? didn't you already do that? can you show a little snippet of a few lines you have? literally just imagine the strings.lua file with the strings slightly modified. I used a program to do it so technically the computer did it and not me Link to comment Share on other sites More sharing options...
Aquaterion Posted February 14, 2018 Share Posted February 14, 2018 well afaik if you put it in the proper place it should be overwriting.. if not, then you could copy it all into modmain.lua and just do STRINGS = GLOBAL.STRINGS at the top Link to comment Share on other sites More sharing options...
MF99K Posted February 14, 2018 Author Share Posted February 14, 2018 27 minutes ago, Aquaterion said: well afaik if you put it in the proper place it should be overwriting.. if not, then you could copy it all into modmain.lua and just do STRINGS = GLOBAL.STRINGS at the top I already have the STRINGS = GLOBAL.STRINGS line in the code. And again, it will take waaaay too much time to put them all in manually Link to comment Share on other sites More sharing options...
Aquaterion Posted February 14, 2018 Share Posted February 14, 2018 16 minutes ago, MF99K said: I already have the STRINGS = GLOBAL.STRINGS line in the code. And again, it will take waaaay too much time to put them all in manually well if u have it in strings.lua and not modmain.lua, having STRINGS = GLOBAL.STRINGS would actually cause a problem i think Link to comment Share on other sites More sharing options...
MF99K Posted February 14, 2018 Author Share Posted February 14, 2018 3 minutes ago, Aquaterion said: well if u have it in strings.lua and not modmain.lua, having STRINGS = GLOBAL.STRINGS would actually cause a problem i think it's in modmain and not strings Link to comment Share on other sites More sharing options...
JohnWatson Posted February 15, 2018 Share Posted February 15, 2018 are you trying to make a translation mod? Link to comment Share on other sites More sharing options...
MF99K Posted February 15, 2018 Author Share Posted February 15, 2018 2 hours ago, JohnWatson said: are you trying to make a translation mod? I mean, technically? Not for an actual language though but i guess basically yes Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now