Jump to content


Using GBS-IV Included in Universal Combat CE


  • Please log in to reply
8 replies to this topic

#1 Supreme Cmdr

Supreme Cmdr

    Supreme Cmdr

  • Administrators
  • PipPipPipPipPipPipPipPip
  • 16,734 posts
  • Gender:Male
  • Location:South Florida
  • Interests:Keeping commanders in line!

Posted 24 October 2007 - 08:19 AM

The version of GBS-IV included with UCCE, is only compatible with the UCCE game. So, no, you can't run a script included in the game or build its source and play it with any previous game in the series without experiencing problems.

If you have the DVD-ROM version of the game, GBS is in a folder on the media. You can copy it to any folder on your machine.

If you have the digital distribution version, it is compressed in GBSIV.ZIP archive located in the TOOLS folder where the game is installed. Just extract it to any folder like.

In either case, the GBS distribution contains source scripts for all the scenarios (11 campaign + 111 Instant Action) in the game.
Using GBS, you can make minor or major script revisions.

e.g. say you wanted to play IA0001 with a Battlecruiser MK2 (or any other cap ship) ship class (look in OBJCLASS.SCR for all object class names) instead of the default MK1, it is a one line change (to the ship class) and a parsing of the script source.


  • Start a text editor (e.g. Notepad) and load the IA0001.SCR file from the SCRIPTS folder
  • Go to line #28 and change "set_craft battlecruiser_mk" to "set_craft battlecruiser_mk2", then save the file
  • Open up a console (START/RUN/CMD) window and change to the folder where you have GBS extracted (e.g. "C:\Program Files\3000AD\Universal Combat Collectors Edition\Tools")
  • From the console window type Prepare IA0001.SCR to parse the script
  • Copy the resulting IA0001.MIS file to the MODS sub-folder (e.g. "C:\Program Files\3000AD\Universal Combat Collectors Edition\Mods")
  • Run the game and select the IA0001 scenario from the Instant Action list

When you launch and go to the F9 view, you will see that you are using the MK2 instead of the MK1 carrier.

Since you are not overwriting the source scripts already built and included, you can delete this .MIS file if you want to revert to the version included in the game. This is due to the fact that the game will always use the newer file and ignore the older version (in the DATA sub-folder).

This is a simplified explanation of course. You can read the rest of this forum, as well as the included GBS docs for other tips. Though the GBS parsers are different, the scripting concepts, tips etc used in all the Universal Combat games are the same.

Also:

If you have modified the scenario description file (IA0001.DES) file which is displayed in MISCON, you also have to copy it (as-is) over to the MODS folder. This file is not parsed. It is processed in pure text form by the game engine.

If you revise (add, remove, edit etc) ANY of the strings used in the "say" and "broadcast" commands inside the script source, then you have to parse the engine's phrase handler by doing prepare phrases IA0001.SCR and copying the resulting IA0001.DAT file to the MODS folder. Then the new strings will be used by the game when the scenario is run.

Also, you can create a batch file e.g. BUILDIT.BAT and add the following commands to it. This will automatically do all the steps required for a single script and copy the resulting files to the target folder.

prepare %1.scr
if errorlevel 1 goto fail
prepare phrases %1.scr
if errorlevel 1 goto fail
goto ok
:fail
echo AN ERROR OCCURED! BUILD ABORTED!
goto exit
:ok
copy %1*.dat %1.des %1.mis "C:\Program Files\3000AD\Collectors Edition\mods"
echo SCRIPT BUILT OK
:exit

To create this batch file, just cut and past everything between the "code" blocks into a blank file. Save it as BUILDIT.BAT in your TOOLS folder (or where ever you have GBS extracted).

Then to parse a script, from a console window, you would just type build IA0001
President, 3000AD Inc.
Designer/Lead Developer
The Battlecruiser Series

"Dealing with publishers is like stepping through a minefield. In the dark.
Blindfolded. With people shooting at you. And your ex mother-in-law giving you directions"

#2 Supreme Cmdr

Supreme Cmdr

    Supreme Cmdr

  • Administrators
  • PipPipPipPipPipPipPipPip
  • 16,734 posts
  • Gender:Male
  • Location:South Florida
  • Interests:Keeping commanders in line!

Posted 31 October 2007 - 07:02 PM

As per this KB update, you need to make the following changes to these two source scripts so that you have the latest versions in case you intend to modify them in the future. These are necessary because the engine interpreter used in UCCE does not fully support that syntax and will thus cause a crash if the actor is initialized before the world is loaded. This can happen on fast systems.

I used a more recent script parser to build UCCE scripts, but did not update the UCCE interpreter because I didn't want to cause future unforeseen problems. Which is why I didn't experience this problem during testing.

#1. Open IA0311.SCR in Notepad and change the AI script definition for the e1 actor:

from this

.e1,100,100,100,100,100,100,0
start inactive near trionz^wayfarer 25000 xcf1
navigate trionz^xcj2
stop
events 1
!beginl1
  activate this
!reach trionz^xcj2
  IF ACM 1 THEN
   rtb oliran
  ENDIF
endevents

to this (line #67 deleted, two new lines inserted after line #71)

.e1,100,100,100,100,100,100,0
start inactive near trionz^wayfarer 25000 xcf1
stop
events 1
!beginl1
  activate this
!startup
  navigate this trionz^xcj2
!reach trionz^xcj2
  IF ACM 1 THEN
   rtb oliran
  ENDIF
endevents

#2. Open CMDR_C0005.SCR in Notepad and change the AI script definition for the ryker actor:

from this:

.ryker,100,100,100,100,100,100,0
start inactive near xylanz^jmp-26 100 wrm-22
navigate xylanz^wrm-22
stop
events 205
!begin_tod2m5
  activate this
!detect player
   broadcast "CMDR RYKER OF GCV-WARMAGE ON STATION"
   escort bc on
endevents

to this: (line #1609 deleted, two new lines inserted after line #1613)

.ryker,100,100,100,100,100,100,0
start inactive near xylanz^jmp-26 100 wrm-22
stop
events 205
!begin_tod2m5
  activate this
!startup
  navigate this xylanz^wrm-22
!detect player
   broadcast "CMDR RYKER OF GCV-WARMAGE ON STATION"
   escort bc on
endevents

President, 3000AD Inc.
Designer/Lead Developer
The Battlecruiser Series

"Dealing with publishers is like stepping through a minefield. In the dark.
Blindfolded. With people shooting at you. And your ex mother-in-law giving you directions"

#3 ouch

ouch

    Ensign

  • Members
  • Pip
  • 65 posts
  • Gender:Male
  • Location:USA

Posted 11 October 2009 - 08:58 AM

Just FYI, That code fix for IA0311.SCR is actually for IA0303.SCR...
ouch

Windows XP Pro, SP3
Pentium 4 2.8ghz Prescott (hyperthreaded)
1gb PNY DDR
(HIS) ATI Radeon HD 3850 pro (512MB DDR3), AGP

#4 Mordax Blyrr

Mordax Blyrr

    Ensign

  • Members
  • Pip
  • 227 posts
  • Gender:Male
  • Location:The Netherlands, Europe, Earth

Posted 14 February 2012 - 07:01 AM

Sorry for necro-ing this thread, but I have returned to UC and ordered the UC CEv2 yesterday. I would like to play around with the scripting system, but I do not have a 'Tools' folder in my install.
I ordered from Digital River via the 3000ad website.
Is the GBS system available as a seperate download, please?
Commodore Mordax Blyrr
ICV-Scavenger, Rovarix (Antilles)
Wing Leader, Eversor Wing
Insurgent Central Command

Posted Image Posted Image

1. Windows 7 Ultimate 64bit
2. Intel Core 2 Quad Q9400 CPU (2.7Ghz)
3. 8GB Corsair Dominator RAM
4. NVIDIA GeForce GTX 275 w/1GB; Resolution: 1680 x 1050

#5 Supreme Cmdr

Supreme Cmdr

    Supreme Cmdr

  • Administrators
  • PipPipPipPipPipPipPipPip
  • 16,734 posts
  • Gender:Male
  • Location:South Florida
  • Interests:Keeping commanders in line!

Posted 15 February 2012 - 07:24 PM

The GBS for UCCE v2 was never released. I was planning on releasing it at some point, but I never got around to it. I will look into it - though I can't promise anything.
President, 3000AD Inc.
Designer/Lead Developer
The Battlecruiser Series

"Dealing with publishers is like stepping through a minefield. In the dark.
Blindfolded. With people shooting at you. And your ex mother-in-law giving you directions"

#6 Mordax Blyrr

Mordax Blyrr

    Ensign

  • Members
  • Pip
  • 227 posts
  • Gender:Male
  • Location:The Netherlands, Europe, Earth

Posted 16 February 2012 - 11:05 AM

Rgr that!
I overlooked the fact that v2 did not have MP support anyway. So I have now bought CE v1 as well. It does indeed come with the tools folder as advertised.

Another question;
Are we allowed to ask about and post parts of scripts openly on these boards?
Commodore Mordax Blyrr
ICV-Scavenger, Rovarix (Antilles)
Wing Leader, Eversor Wing
Insurgent Central Command

Posted Image Posted Image

1. Windows 7 Ultimate 64bit
2. Intel Core 2 Quad Q9400 CPU (2.7Ghz)
3. 8GB Corsair Dominator RAM
4. NVIDIA GeForce GTX 275 w/1GB; Resolution: 1680 x 1050

#7 Supreme Cmdr

Supreme Cmdr

    Supreme Cmdr

  • Administrators
  • PipPipPipPipPipPipPipPip
  • 16,734 posts
  • Gender:Male
  • Location:South Florida
  • Interests:Keeping commanders in line!

Posted 25 February 2012 - 08:07 AM

Yes - you can post scripts, ask questions about them etc. Just make sure you use the proper forum.
President, 3000AD Inc.
Designer/Lead Developer
The Battlecruiser Series

"Dealing with publishers is like stepping through a minefield. In the dark.
Blindfolded. With people shooting at you. And your ex mother-in-law giving you directions"

#8 Supreme Cmdr

Supreme Cmdr

    Supreme Cmdr

  • Administrators
  • PipPipPipPipPipPipPipPip
  • 16,734 posts
  • Gender:Male
  • Location:South Florida
  • Interests:Keeping commanders in line!

Posted 25 February 2012 - 08:23 AM

I had some time, so I dug up and have re-packaged the GBSIV scripting system and tools for UCCE and UCCE v2. It contains the following folders:

Docs..........usage docs 	 
Samples.....sample scripts
Tools..........various tools
ucce..........GBSIV for UCCE
ucce_v2....GBSIV for UCCE v2

You can download it here.

As always, use at your own risk. So it is advisable that you backup any files that you are planning on changing.
President, 3000AD Inc.
Designer/Lead Developer
The Battlecruiser Series

"Dealing with publishers is like stepping through a minefield. In the dark.
Blindfolded. With people shooting at you. And your ex mother-in-law giving you directions"

#9 Mordax Blyrr

Mordax Blyrr

    Ensign

  • Members
  • Pip
  • 227 posts
  • Gender:Male
  • Location:The Netherlands, Europe, Earth

Posted 25 February 2012 - 09:19 AM

Great stuff, thanks, SC! :D
Commodore Mordax Blyrr
ICV-Scavenger, Rovarix (Antilles)
Wing Leader, Eversor Wing
Insurgent Central Command

Posted Image Posted Image

1. Windows 7 Ultimate 64bit
2. Intel Core 2 Quad Q9400 CPU (2.7Ghz)
3. 8GB Corsair Dominator RAM
4. NVIDIA GeForce GTX 275 w/1GB; Resolution: 1680 x 1050




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users