What nonsense is this?!?

AW Arcaeca

Deus Vult
Joined
Mar 10, 2013
Messages
3,019
Location
Operation Padlock ground zero
I'm getting a heckuva lot of lua syntax and runtime errors that follow a form like this:
Code:
[33641.958] Syntax Error: C:\Users\AW\Documents\My Games\Sid Meier's Civilization 5\MODS\AW's *Undisclosed New Civ* Mod(v 1)\Lua\*undisclosedLuaFileName*.lua:1: unexpected symbol near 'ï'
:confused::confused::confused:

Nowhere in the file does that letter appear. To top it off, the logs say it's in every lua file, at the beginning of each file, and I'm guessing this is the reason why none of the lua is working... Anyone know what the problem might be? Do I need to clear the cache or something? I dunno... :dunno:

If I need to attach the files, I can PM them to whoever is willing to help me, but I'd rather not publically attach them as it's a near-complete civ and, y'know, heaven forbid I should let anyone know anything about the civilizations I'm modding ahead of time. :rolleyes: I might be a bit OCD about that...

Anyway, TIA,
AW
 
I found a relevant StackOverflow thread with your same problem. It's not about Civ 5 modding of course, but the fix seems relevant.

Linky

Basically, whatever text editor you're using is adding hidden characters in front of your code. Tell your editor to stop doing that, or switch to a different text editor.
 
:confused: And Civ5 never had any problems before when I write my Lua in notepad and copy and paste it into ModBuddy? :crazyeye:

Ah, well. Maybe completely rewriting the code while actually inside ModBuddy might solve it. I'll try it, I guess. Thanks.
 
Use Notepad++ or Sublime Text. Much better than Modbuddy or regular Notepad.

Nowadays I only use Modbuddy to add new files to the project, set VFS=true, or build the mod.
 
I write all my mods solely in Notepad. >.>

The only thing I use Modbuddy for is uploading the mod to Steam once it's been tested and works. You don't even need the use it to set VFS=true or add new files, because you can just open the MODINFO file in notepad and manually edit the values.
 
The only thing I use Modbuddy for is uploading the mod to Steam once it's been tested and works. You don't even need the use it to set VFS=true or add new files, because you can just open the MODINFO file in notepad and manually edit the values.

Indeed, but it's more practical to use Modbuddy for those as well.
I use Notepad++ and can't complain, you can edit many different files at the same time without clogging your bar or the task switcher selection.
 
Back
Top Bottom