Jump to content

Recommended Posts

In the process of adding an ENTIRE new speech file to a mod, but there's something strange happening.  When the server begins to launch, it's told to select a different speech file, but it fails..

The code in question looks like this:

-- Custom speech strings
if GetModConfigData("language") == 7 then
	STRINGS.CHARACTERS.WILDCHILD = require "speech_wildchild_spanish"  --Translated by: ***
else
	STRINGS.CHARACTERS.WILDCHILD = require "speech_wildchild"
end

If I edit the new file to have the original file's name it works, which tells me the error is with the file's name.
There's only one reference to this file in the entire mod, so I have to assume the game is remembering the original file name and refuses to accept any alternative.  When I made a new save file it still failed, which surprised me.

Does anyone know what might be causing this?

I've included the most recent log file, but the section that includes the error reads as such:

[00:00:02]: MOD ERROR: workshop-2238207705 (Wirra the Wild Child (Beta)): Mod: workshop-2238207705 (Wirra the Wild Child (Beta))	
[00:00:02]: Mod: workshop-1797433558 (Mitsuru [BEAT])	Loading modworldgenmain.lua	
[00:00:02]: Mod: workshop-1797433558 (Mitsuru [BEAT])	  Mod had no modworldgenmain.lua. Skipping.	
[00:00:02]: Mod: workshop-1797433558 (Mitsuru [BEAT])	Loading modmain.lua	
[00:00:02]: modimport: ../mods/workshop-1797433558/scripts/strings.lua	
[00:00:02]: modimport: ../mods/workshop-1797433558/scripts/tuning.lua	
[00:00:02]: [string "../mods/workshop-2238207705/modmain.lua"]:478: module 'speech_wildchild_test' not found:
	no field package.preload['speech_wildchild_test']
	no file '../mods/workshop-2238207705/scripts/speech_wildchild_test.lua' (checked with custom loader)
	no file 'scripts/speech_wildchild_test.lua' (checked with custom loader)
	no file 'scriptlibs/speech_wildchild_test.lua' (checked with custom loader)
	no file '../mods/workshop-2238207705\scripts\speech_wildchild_test.lua'
	no file 'scripts\speech_wildchild_test.lua'
	no file 'scriptlibs\speech_wildchild_test.lua'
LUA ERROR stack traceback:
        =[C] in function 'require'
        ../mods/workshop-2238207705/modmain.lua(478,1) in main chunk
        =[C] in function 'xpcall'
        scripts/util.lua(754,1) in function 'RunInEnvironment'
        scripts/mods.lua(560,1) in function 'InitializeModMain'
        scripts/mods.lua(534,1) in function 'LoadMods'
        scripts/main.lua(348,1) in function 'ModSafeStartup'
        scripts/main.lua(462,1) in function 'callback'
        scripts/modindex.lua(103,1) in function 'BeginStartupSequence'
        scripts/main.lua(461,1) in function 'callback'
        scripts/modindex.lua(735,1)
        =[C] in function 'GetPersistentString'
        scripts/modindex.lua(709,1) in function 'Load'
        scripts/main.lua(460,1) in main chunk
[00:00:02]: [string "scripts/mainfunctions.lua"]:1431: variable 'global_error_widget' is not declared
LUA ERROR stack traceback:
        =[C] in function 'error'
        scripts/strict.lua(23,1)
        scripts/mainfunctions.lua(1431,1)
        =[C] in function 'GetPersistentString'
        scripts/modindex.lua(709,1) in function 'Load'
        scripts/main.lua(460,1) in main chunk
[00:00:02]: DoLuaFile Error: (null)
[00:00:02]: LuaError but no error string
[00:00:02]: Error loading main.lua
[00:00:02]: Failed mSimulation->Reset()

 

server_log_2022-01-26-19-07-47.txt

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...