» 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