BW2 modding questions...

kk let me sort the stuff real quick XD [br][br]Added: Dec 17, 2006, 07:58 PMkk got it

btw i noticed as i was putting the stuff in the folder, that my .chl file had a different name than the .pat, ect. files do you think that might be what's wrong?


ooooook....it won't let me post this with the .zip file attached...should i make a few, smaller zips and send them on separate posts?[br][br]Added: Dec 18, 2006, 01:05 AMhere's parts 4 out of 5
 
Lol, I was just looking for the .txt files which you are trying to compile. I don't really need the landscape stuff.
 
Ok, I think I see how your trying to do it...

Try it this way. I place all of the scripts for a map in a seperate folder since I've got a number of maps.

In the Script Compiler folder create a batch file with the following:

Code:
"Script Compiler" -path . -enumfile .\Enums.txt -dbfile .\bw2text.lhts -scriptpath . -inputfile ./Land1635/Challenges.txt .\Land1635\Land1635.chl
pause

Now create a folder called Land1635. In it place the Land1635.txt and the CreatureSelect.txt files. Also create a file called Challenges.txt. In that file should be the following:

Code:
Land1635/CreatureSelect.txt
Land1635/Land1635.txt

Add any other scripts before the Land1635.txt script since it's the one which runs them and needs to be compiled last.

Also in that folder place a shortcut to the compiler batch file and one to the Scripts\BW2 folder so that you can drop the .chl file into it for testing.

So if you go to that folder and double click on the shortcut to the compiler file, a widow should pop up and show you what's been compiled. Press any key to close it and you should have a file called Land1635.chl created in that folder. Then just drag it to the shortcut to the scripts\BW2 folder to add it for testing.

Hope that works.
 
kk thanks i'll try that

btw is it possible to delete posts? i would kind of like to delete that post i put with all my stuff  :p
 
ok it doesn't seem to want to work...

i did all the stuff you said but this part started to confuse me a bit

Also in that folder place a shortcut to the compiler batch file and one to the Scripts\BW2 folder so that you can drop the .chl file into it for testing.

So if you go to that folder and double click on the shortcut to the compiler file, a widow should pop up and show you what's been compiled. Press any key to close it and you should have a file called Land1635.chl created in that folder. Then just drag it to the shortcut to the scripts\BW2 folder to add it for testing.

i opened the shortcut to the compiler file and the window popped up and it said "File "./Land1635/Challenges.txt not found found"  down at the bottom and the Land1635.chl wasn't created in the folder...
 
The reason I use the shortcuts is so I don't have to go down to the Script Compiler folder to run the compiler batch file when I'm working in the folder for that map.

Ok just in case this is causing any confusion. In Windows Explorer, click on "Tools" in the menu bar. In the "View" tab make sure that"Hide extensions for know file types" is unchecked.

Now a batch file is simply a text file with a .bat extension. In the Script Compiler folder create a .txt file and rename it to CompileLand1635.bat and then open it and add the code inmy previous post. This will be your compiler batch file for that map. In order to run it, double click on it. When you do that a window should open and show what the compiler is doing. If there are any errors, then it will list them and usualy stop compiling. If there are no errors then it should show what scripts have been compiled. Something like the attached image.
 
um ok i got the .chl file like you said, but its number is 2146 0_o i looked up at your code and you put in Land1635/Land2146.chl at the end of it

is it supposed to be 2146? or should i just rename it to Land1635.chl?
 
Ooops.. looks like I missed changing that. Just change it in the batch file to your land number. You can change to file name also or just recompile it.

Does the creature select script work now when you load up the map?
 
well, NOW it won't finish loading when i select new game -_- i think it's because i accidentally deleted the original land1635.chl when i put the new one in >_> and it's not in my recycle bin either

the map.txt script has the right land numbers and stuff in it as well so that's not it


i think i'm going to quit this map and work on the one i was working on previously =P

the one that i'm going to restart working on has a lot of towns and is based on the Dragonlance books  :p one of the towns has like 200,000+ impressiveness required to catch lmao
 
It sounds like something didn'tcompile or load properly. Rem out the run script CreatureSelect and see what happens.

When compileing, did it show the each script did compile properly?
 
it said the creature select worked, but the unlock.txt and invincibleman.txt didn't work =\
 
That's why it didn't run. The compiling was incomplete but the .chl file was written anyways. The compiler should tell you what the problem is.

Ahh.. the invincible man script has a "say" command, I think that's the problem. You need to find a file called "bw2text.lhts" and copy it into The Script Compiler folder. I think it's in the Data\Text folder. If it's in the Script compiler folder already then copy the bw2text.bin file over. You will get a Windows error when running the compiler, just ignore it. The scripts should compile properly anyways. If there are any errors then something is wrong with the script and the compiler should give you an idea of what the problem is if you read the screen.
 
kk thanks

btw where do you find the pictures that you take when on the landscape editor?

nm i found it =P
 
Back
Top