Page 1 of 1

Weird LUA error [Solved]

Posted: Fri Apr 08, 2011 2:51 am
by yukisuna
Hi again, long time since i posted anything

okay, i just got my new Computer, my old Vista's Formatted

I recently thought about battlefront again, and started it up. changed the graphics to maximum,

and i think i now have Manga-Eyes.

Anyway, After that i tried starting Zeroeditor

Now i have even BIGGER Manga-Eyes.

I made my map, followed a lot of tutorials, and made a Remake of Maveritchell's "The Big L".

i also made 6 Animated Props. Starships. they all worked excellently in Zeroeditor.

then i made my Sides. Ahh, good memories. used my favourite Downloaded addons, like backpacks, visors, and such. also made a Katana addon in Milkshape 3D, which acctually can export to battlefront Format.
Then i Attached it to The hero unit. and then, when i'd triple-checked every line of code, i closed, Started The Munge-Console. I added everything to the checkboxes, Sound, load, Common, Localization, and such. and the Sides. then i clicked Munge. A CMD window popped up, saying something i didnt get time to read, except Luac error 1 then it disappeared. then the munge console said this:

Code: Select all

Munging addme.lua...done.
Copying files to Battlefront II directory:
"D:\Star Wars Battlefront II\GameData"
Addon dir exists, continuing...
Creating mod dir "MFM" dir in addon dir...done.
Copying addme.script to mod dir...done
Copying "mission.lvl" to modDir\data\_LVL_PC\...done
Copying "core.lvl" to modDir\data\_LVL_PC\...done
Copying "MFM" to modDir\data\_LVL_PC\...done
Copying "SIDE" to modDir\data\_LVL_PC\...done
Munge process finished
\Common var ikke ventet n†.
That last line Means \Common was not expected Now
and theres also no mission, Sounds, Side or Core Files inside LVL_PC. the folder is empty. so is the addme.lvl

You Experienced Modders, Coders, or anyone who knows anything on this field, Please help me! ive FINALLY got the interest in BF2 back, and then it almost doesnt work. i had to copy the old BF2 folder over to my new computer, since thenew uppdate didnt allow me to start it. but my old version, which also had all updates, works perfectly, online and all.

EDIT: okay, when i tried the solution from frisbeetarian it didnt work. then i tried you tutorial - it didnt work. then i tried combining them - And now i have Eyes the size of Baseballs!!! :shock: :D IT WORKED!!!! THANK YOU SO MUCH!!! Now an admin can lock/remove this thread. thanks again.

Re: Weird LUA error

Posted: Fri Apr 08, 2011 2:30 pm
by Xavious
Try this for the munging problem: viewtopic.php?f=27&t=15662&p=295373#p295373

Also, you said you checked everything when you munged. It generally doesn't hurt anything, but you should only check the stuff you actually mean to munge.

Re: Weird LUA error

Posted: Fri Apr 08, 2011 2:44 pm
by CalvaryCptMike
Original Answer:
Hidden/Spoiler:
SWBF2 must be installed in the C:\ Drive in order to function properly.
okay, tip... copy your entire Star wars battlefront II folder into
C:\Program Files\Lucasarts This will probably mess up your saved games so I dunno.

That might fix all your problems

If you want to keep it where it currently is (your D:\ drive) then you must follow these steps:
[hide]On your desktop Create a folder and name it "MFM"
Then in that folder create another folder and name it "data"
Then in that folder create another folder and name it "_LVL_PC"

Okay now...

Go to data_MFM in your modtools directory.
Open the folder: _LVL_PC
Find the folder that has your map name ( MFM )
Right click it and press copy
Then paste it into the "MFM/data/_LVL_PC" folder you just made on your desktop

Then...


Go to data_MFM in your modtools directory.
Open the folder: _LVL_PC
Find the two folders: "core" and "mission" and copy them into the "MFM/data/_LVL_PC" folder you just made on your desktop

If you have made custom sides...
Go to data_MFM in your modtools directory.
Open the folder: _LVL_PC
Find the folder: "SIDE" and copy it into the "MFM/data/_LVL_PC" folder you just made on your desktop

Finally...
Go to data_MFM in your modtools directory.
Open the folder: "addme/munged"
There is a file called "addme.script" copy that into your MFM folder

ALL DONE!!!
EDIT: what directory is your modtools installed in? because it should be in
C:\BF2_Modtools

READ THIS EDIT FIRST:

Wait I read your problem again and... I think it's vista causing problems because of its wacky security. You probably should just run visual munge as the administrator.