» TeamX (����� ������)«


����� TeamX » English Forum » How do i compile .int scripts (.ssl or .cpp to compiled .int files)

������� �� �����
<< ����. ����. >>
������������ �������� ���� ����

 
Haris
Member

������: Sweden
�����������: ���. 2005

�����: 12 ���������

I need to know how to make .ssl or .cpp script files in to compile .int files. I tryed using int compiler from this webpage but tutorial for it is in russian so i dont get it.

����������: 23:05 - 30 ���., 2005
Alchemist
���������

������: �������-17
�����������: ���. 2004

�����: 298 ���������

What is your problem exactly? Doc for the compiler itself, Fallout scripting HOWTO (aka tutorial) or something else?

-----
/// What'ya be sain'? Vault 100+? We need nothing o'that!

����������: 4:05 - 31 ���., 2005
izuken
������ �����

������: mSk
�����������: ���. 2004

�����: 125 ���������

all you need is:

http://www.perceptron.fatal.ru/utils/bis_compiler.rar

not sure if there are any documents in english..
^)


-----
��� ������ ������.
save the planet - kill self.

����������: 14:53 - 31 ���., 2005
Haris
Member

������: Sweden
�����������: ���. 2005

�����: 12 ���������

I use devc++ bloodshed compiler for opening .ssl files and scripting in them. The thing is that .ssl files do not work if you would put them in to fallout as script files. And if i compile a file with devc++ it doesnt work eather cause its not same tipe of file. It need to be script.int file in order for fallout to read them. I downloaded that program from the link you gave me. I will look at it later and see if i can figure it out. But what i can see now its dos based, what i need to know is if there is a way to not use dos based programs while compiling scripts in to .int files.

(Edited by Haris at 18:56 - 31 Jan., 2005)

����������: 18:55 - 31 ���., 2005
Alchemist
���������

������: �������-17
�����������: ���. 2004

�����: 298 ���������

LOL. The link provided by izuken points to the one and only script compiler used by Fallout developers. �It is DOS4G extended application but if you plan to work with the official BIS source code there are no alternatives. Not also that you must have Watcom preprocessor. Some people prefer Borland's or Microsoft's, it is also possible but could (and will) involve some unexepected side effects.

You can also find �this thing somehow useful: http://bug.ii.uj.edu.pl/fallout/tools/f2compiler-1.01.zip.
But Noid's compiler support noticably different syntax and will not work with official sources. It's more sutable for reverse engineering.

(��������������(�) Alchemist - 19:55 - 31 ���., 2005)

-----
/// What'ya be sain'? Vault 100+? We need nothing o'that!

����������: 19:50 - 31 ���., 2005
Haris
Member

������: Sweden
�����������: ���. 2005

�����: 12 ���������

Ok thats what i needed to know. So the only thing left for me to do is learn how the dam watcom thing works. Seriosly moding fallout 2 is allmost harder than making a game from scratch. You know with all the ""user friendly"" mapper and watcom. :/

(Edited by Haris at 20:02 - 31 Jan., 2005)

����������: 20:01 - 31 ���., 2005
izuken
������ �����

������: mSk
�����������: ���. 2004

�����: 125 ���������

afaik, this .rar already encloses watcom

(��������������(�) izuken - 21:16 - 31 ���., 2005)

-----
��� ������ ������.
save the planet - kill self.

����������: 20:01 - 31 ���., 2005
Alchemist
���������

������: �������-17
�����������: ���. 2004

�����: 298 ���������

Grab the preproccessor here: http://www.teamx.ru/utils/watcom_cpp.rar if you have not got it already. Then drop contents of watcom_cpp.rar and bis_compiler.rar into same directory. P.BAT correctly calls preprocessor and compiler for a single SSL file. But befor first run open BAT in some text editor and make sure that pathnames are correct for you game/compiler installation.

(��������������(�) Alchemist - 21:21 - 31 ���., 2005)

-----
/// What'ya be sain'? Vault 100+? We need nothing o'that!

����������: 21:20 - 31 ���., 2005
Haris
Member

������: Sweden
�����������: ���. 2005

�����: 12 ���������

Ok i am totaly worthless at dos comands and all that has with dos to do. So i am not sure how paths should be written for this to work. Anyway my compiler path is "D:\bis\bis_compiler" and fallout 2 path is "D:\Fallout2". Any sugestion what this p.bap file should say for compiler to work properly.  

������:

@echo off
@if not exist %1.ssl goto DONE

@copy %1.ssl temp.c

@rem Watcom 11 users uncomment the following line:
wcc386 temp.c /pc /fo=temp.i /w4

@rem Microsoft Visual Studio 6 users uncomment the following line:
@rem cl /P temp.c

@copy temp.i temp.ssl

@..\dos4gw ..\compile temp.ssl
@if %errorlevel% neq 0 goto ERROR

@rem The path in the following two lines should point to the Fallout 2 folder:
@md ..\..\..\data\scripts
@copy temp.int ..\..\..\data\scripts\%1.int

@del temp.c
@del temp.i
@del temp.ssl
@del temp.int
@goto DONE

:ERROR
@echo ERROR: %_CWDS%%1.ssl >> ..\err.log

:DONE


����������: 22:33 - 31 ���., 2005
Alchemist
���������

������: �������-17
�����������: ���. 2004

�����: 298 ���������

This should work fine for you:

������:

@echo off
@if not exist %1.ssl goto DONE

@copy %1.ssl temp.c

@rem Watcom 11 users uncomment the following line:
wcc386 temp.c /pc /fo=temp.i /w4

@rem Microsoft Visual Studio 6 users uncomment the following line:
@rem cl /P temp.c

@copy temp.i temp.ssl

@D:\bis\bis_co~1\dos4gw D:\bis\bis_co~1\compile temp.ssl
@if %errorlevel% neq 0 goto ERROR

@rem The path in the following two lines should point to the Fallout 2 folder:
@md D:\Fallout2\data\scripts
@copy temp.int D:\Fallout2\data\scripts\%1.int

@del temp.c
@del temp.i
@del temp.ssl
@del temp.int
@goto DONE

:ERROR
@echo ERROR: %_CWDS%%1.ssl >> ..\err.log

:DONE



Note that BAT expects script name without an extention as a command line argument. Example: p.bat klint
This will take klint.ssl, compile it into klint.int and will copy the last file to D:\Fallout2\data\scripts.

(��������������(�) Alchemist - 23:12 - 31 ���., 2005)

-----
/// What'ya be sain'? Vault 100+? We need nothing o'that!

����������: 23:08 - 31 ���., 2005
Perceptron
���������

������: Ivanovo
�����������: ��� 2003

�����: 502 ���������

>So the only thing left for me to do is learn how the dam watcom thing works.
The solution is: unpack archive (compiler) into any folder, create a new folder in it (for example, "data"), copy your script_name.ssl and into the "data" folder.
Create this file p.bat:

@echo off
@if not exist %1.ssl goto DONE

@copy %1.ssl temp.c

@rem Watcom 11 users uncomment the following line:
..\wcc386 temp.c /pc /fo=temp.i /w4

@rem Microsoft Visual Studio 6 users uncomment the following line:
@rem cl /P temp.c

@copy temp.i temp.ssl

@D:\bis\bis_co~1\dos4gw D:\bis\bis_co~1\compile temp.ssl
@if %errorlevel% neq 0 goto ERROR

@rem The path in the following two lines should point to the Fallout 2 folder:
@rem md D:\Fallout2\data\scripts
@copy temp.int D:\Fallout2\data\scripts\%1.int

@del temp.c
@del temp.i
@del temp.ssl
@del temp.int
@goto DONE

:ERROR
@echo ERROR: %_CWDS%%1.ssl >> err.log

:DONE


Use file manager (Far, Total Commander) or use "command line" tool in Programs->Standard, go to the "data" folder and type following text in command line:
p script_name

See your script in D:\Fallout2\data\scripts.

(��������������(�) Perceptron - 23:29 - 31 ���., 2005)

����������: 23:23 - 31 ���., 2005
Haris
Member

������: Sweden
�����������: ���. 2005

�����: 12 ���������

Wow Perceptron. This is one of greatest watcom guides i ever seen. Cause this is the first thing that i menaged to use that worked except that it gets one error saying i am missing temp.int.

Edit:
Well now i figured it out. That missing temp.int file thing was just error in my script. But actuall compiling to .int was succesfull when i tryed with another script. So thanks everyone for learning me how to make my own .int script file. And this way i can work with them in devc++ blodshed and than compile em. Now i can finaly have custom scripts in my fallout 2 mods.

(Edited by Haris at 2:02 - 1 Feb., 2005)

����������: 0:09 - 1 ���., 2005
Mangler
Member

�����������: ���. 2005

�����: 22 ���������

Watcom 11 eh?

has anyone tried the
OPEN WATCOM

Compiler? supports XP/2000/98... but it can still cross-compile to DOS, or whatever.

����������: 20:41 - 6 ���., 2005
Haris
Member

������: Sweden
�����������: ���. 2005

�����: 12 ���������

Why would i bother when using the same thing that original makers used takes 2 seconds to compile a file. I aint installing more langs or enviroments in to my pc. I am so sick of those.

����������: 22:09 - 9 ���., 2005
 

������� �� �����
<< ����. ����. >>
������������ �������� ���� ����


Powered by Ikonboard 2.1.9 RUS
Modified by RU.Board Team
© 2000 Ikonboard.com