Quantcast

Jump to content

» «
Photo

Races and Tuning

37 replies to this topic
streetfire
  • streetfire

    Wheelman

  • BUSTED!
  • Joined: 28 Oct 2007

#31

Posted 20 March 2008 - 06:13 AM

Where can I get a stripped main.scm? By 'stripped' you mean unnecessary code is taken out, right?

ZAZ
  • ZAZ

    Kernlochbohrer

  • Members
  • Joined: 10 Jan 2005
  • European-Union

#32

Posted 20 March 2008 - 07:24 PM

QUOTE (streetfire @ Mar 20 2008, 06:13)
Where can I get a stripped main.scm? By 'stripped' you mean unnecessary code is taken out, right?


The classic stripped main (or call it total stripped main) includes only the necessary code to get ingame.
Find the source text here
and the compiled main.scm here
or in Steve Ms mapcleaner

A stripped Main subsequently senses means a main without Story scripts
Click on my sig to find it.
The Stripped Main with Externscripts and Submissions allows to play all side features frome beginning.
Its useful as base for adding a own new story like King Kong mod


scalliano
  • scalliano

    Ice Cold Killa

  • Members
  • Joined: 31 Jul 2004

#33

Posted 14 May 2008 - 10:43 PM

Tried to download this mod, Zaz, but I'm getting a 404 at every turn. Could you update your links?

X_ATP_X
  • X_ATP_X

    GTA United Scripter

  • Members
  • Joined: 17 Dec 2007

#34

Posted 15 May 2008 - 10:43 PM

QUOTE (ZAZ @ Nov 17 2007, 18:12)


NewRace_source_txt for BWMissionBuilder

NewRace_source_txt for SannyBuilder

Description



/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


This links Dont work sad.gif can anybody Upload the Files For me?

Eeshan
  • Eeshan

    Old timer.

  • Members
  • Joined: 18 Oct 2007

#35

Posted 16 May 2008 - 04:27 AM

Error 404 Link Wont work.
Upload the files in www.thegtaplace.com
also post all the links that are related to this mod.

ZAZ
  • ZAZ

    Kernlochbohrer

  • Members
  • Joined: 10 Jan 2005
  • European-Union

#36

Posted 16 May 2008 - 03:42 PM Edited by ZAZ, 22 July 2012 - 09:43 PM.

I recommand to download NewRace_source_txt for SannyBuilder
you can find this link also in this post: Races and Tuning

In the sourcetext you find the mission sniffer
CODE
:Ownrace_1
03A4: name_thread 'TRACE'

It contains 2 important variables for presettings for the racemission
CODE
$2209 = menue start selector

$2209 = 0
starts the racescript with racemap selection menue for LS

$2209 = 1
starts the racescript with racemap selection menue for SF

$2209 = 2
starts the racescript with racemap selection menue for LV

$2209 = 3
starts the racescript with modmenue to select any of every available races


CODE
$121 = race start selector

$121 = 1
start the racescript with racemap selection menue or with modmenue

--------------

$121 = 0
start the race immediately
by this way it needs to give the value of 3. important variable: $352



$352 = race selector
you can find it very often in the racescript
the important line, where this variable do it's work is in this jumptable:

CODE
0871: init_jump_table $352 total_jumps  27  0 @NEWRAC_4786 jumps  0 @NEWRAC_2139  1 @NEWRAC_2200  2 @NEWRAC_2249  3 @NEWRAC_2322  4 @NEWRAC_2395  5 @NEWRAC_2474  6 @NEWRAC_2574
0872: jump_table_jumps  7 @NEWRAC_2671  8 @NEWRAC_2781  9 @NEWRAC_2897  10 @NEWRAC_2970  11 @NEWRAC_3046  12 @NEWRAC_3110  13 @NEWRAC_3174  14 @NEWRAC_3313  15 @NEWRAC_3455
0872: jump_table_jumps  16 @NEWRAC_3552  17 @NEWRAC_3643  18 @NEWRAC_3740  19 @NEWRAC_3819  20 @NEWRAC_3936  21 @NEWRAC_4134  22 @NEWRAC_4356  23 @NEWRAC_4449  24 @NEWRAC_4542
0872: jump_table_jumps  25 @NEWRAC_4638  26 @NEWRAC_4703 -1 @NEWRAC_4786 -1 @NEWRAC_4786 -1 @NEWRAC_4786 -1 @NEWRAC_4786 -1 @NEWRAC_4786 -1 @NEWRAC_4786 -1 @NEWRAC_4786


there are 26 tables with coords allocations for each race which you can choose in the race menue
as well as settings for opponennt car id, amount of cars

CODE

250@ = 16//the amount of checkpoints must fit the amount of your inserted x,y,z positions
256@ = 6// amount of cars, 6 = maximum (not maximum but can cause problems like falling through ground)
04AF: 700@ = 7 // Peds
04AF: 701@ = 7 // Peds
04AF: 702@ = 7 // Peds
04AF: 703@ = 7 // Peds
04AF: 704@ = 7 // Peds
04AF: 705@ = 7 // Peds
04AF: 716@ = 559 // Car ID
04AF: 717@ = 589 // Car ID
04AF: 718@ = 559 // Car ID
04AF: 719@ = 565 // Car ID
04AF: 720@ = 558 // Car ID
04AF: 721@ = 522 // Car ID

221@ = interior number
221@ = 0 by default, so if the table don't contain 221@ it selects interior 0

224@ = amount of laps in lap based races


---------------------------------------------------

The 3. variable , $352 = race selector, is in original CPRACE for the Air-Race

But in NEWRAC mission script it starts my injected Top Menue
to select between
-8-Track,
DirtTrack
and the other races

By selecting other races the Top menue close and the original menue with associated race map txd pops up
But in this case are all races available
No, i mean its possible to get all
In my script I limited to race 18
The spot is in this part:



CODE
:NEWRAC_M4
00D6: if  0
0039:   9@ ==  3  // integer values
004D: jump_if_false @NEWRAC_M5
00D6: if  0
03EE:   player $PLAYER_CHAR controllable
004D: jump_if_false @NEWRAC_M7
0050: gosub @NEWRAC_M66
0004: $121 =  1  // integer values
0006: 50@ =  0  // integer values
0006: 51@ =  18  // integer values
0004: $352 =  12  // integer values
0001: wait  1000 ms
0002: jump @NEWRAC_30






Example:
$352 = 12
jumps to :NEWRAC_3110

CODE
:NEWRAC_3110////san fierro fastlane
0007: 454@ = -2657.164  // floating-point values
0007: 536@ =  1153.872  // floating-point values
0007: 618@ =  34.7396  // floating-point values
0007: 455@ = -2593.221  // floating-point values
0007: 537@ =  1217.854  // floating-point values
0007: 619@ =  34.7402  // floating-point values
0007: 456@ = -2312.288  // floating-point values
0007: 538@ =  1176.387  // floating-point values
0007: 620@ =  49.608  // floating-point values
0007: 457@ = -2157.193  // floating-point values
0007: 539@ =  1268.196  // floating-point values
0007: 621@ =  26.0127  // floating-point values
0007: 458@ = -1959.526  // floating-point values
0007: 540@ =  1287.205  // floating-point values
0007: 622@ =  6.7514  // floating-point values
0007: 459@ = -1741.076  // floating-point values
0007: 541@ =  1325.298  // floating-point values
0007: 623@ =  6.083  // floating-point values
0007: 460@ = -1759.865  // floating-point values
0007: 542@ =  1269.147  // floating-point values
0007: 624@ =  8.8598  // floating-point values
0007: 461@ = -1884.242  // floating-point values
0007: 543@ =  1160.69  // floating-point values
0007: 625@ =  45.0107  // floating-point values
0007: 462@ = -1897.101  // floating-point values
0007: 544@ =  960.1686  // floating-point values
0007: 626@ =  34.7366  // floating-point values
0007: 463@ = -1998.178  // floating-point values
0007: 545@ =  841.1865  // floating-point values
0007: 627@ =  45.0219  // floating-point values
0007: 464@ = -2189.258  // floating-point values
0007: 546@ =  808.5273  // floating-point values
0007: 628@ =  56.0602  // floating-point values
0007: 465@ = -2389.186  // floating-point values
0007: 547@ =  808.6409  // floating-point values
0007: 629@ =  34.7495  // floating-point values
0007: 466@ = -2589.692  // floating-point values
0007: 548@ =  808.5219  // floating-point values
0007: 630@ =  49.5411  // floating-point values
0007: 467@ = -2711.488  // floating-point values
0007: 549@ =  812.8809  // floating-point values
0007: 631@ =  48.9309  // floating-point values
0007: 468@ = -2750.894  // floating-point values
0007: 550@ =  890.6993  // floating-point values
0007: 632@ =  65.8952  // floating-point values
0007: 469@ = -2653.912  // floating-point values
0007: 551@ =  1157.345  // floating-point values
0007: 633@ =  34.7386  // floating-point values
0006: 250@ =  16  // integer values
0006: 256@ =  6  // integer values
04AF: 700@ = unknown_wav_reference  7//192// MECGRL3
04AF: 701@ = unknown_wav_reference  7//90// WFYJG
04AF: 702@ = unknown_wav_reference  7//93// WFYST
04AF: 703@ = unknown_wav_reference  7//243// SFYPRO
04AF: 704@ = unknown_wav_reference  7//244// VBFYST2
04AF: 705@ = unknown_wav_reference  7//245// VBFYPRO
04AF: 716@ = unknown_wav_reference  559//522//nrg500//559
04AF: 717@ = unknown_wav_reference  589
04AF: 718@ = unknown_wav_reference  559
04AF: 719@ = unknown_wav_reference  565
04AF: 720@ = unknown_wav_reference  558
04AF: 721@ = unknown_wav_reference  522//602<<--Player_actor_car
0050: gosub @NEWRAC_4968
0002: jump @NEWRAC_4786






The first coords setting are the start place

0007: 454@ = -2657.164 // X-coord
0007: 536@ = 1153.872 // Y-coord
0007: 618@ = 34.7396 // Z-coord



0006: 250@ = 16 ;; integer values
this is the setting for the count of racing checkpoints


0006: 256@ = 6 ;; integer values
this is the setting for the count of NPC cars


700@ - 705@ are model IDs for actors
716@ - 720@ are in originaly model IDs for NPC cars
721@ is in originaly the model ID of the player car

the setting for the cars are doesnt matter in the NEWRAC mission script
Because I changed something in the heart of the mission script
to let you start all races with that car you like



Edit now the values of the preselection
change
0006: 50@ = 0 ;; integer values
0006: 51@ = 18 ;; integer values

into
0006: 50@ = 0 ;; integer values
0006: 51@ = 19 ;; integer values

-------------------------------------------------------------


Decompile the origin main.scm with these settings:

user posted image

Custom variable names!!!!

and then search in the @CPRACE script
CODE

the variable $RACE_INDEX is equivalent with $352 = race selector

the variable $CURRENT_TOURNAMENT is equivalent with $2209 = menue start selector

the variable $CUSTOM_TOURNAMENT_FLAG is equivalent with $121 = race start selector


have also a look into the mission sniffer
03A4: name_thread 'CESAR'
03A4: name_thread 'BCESAR'
03A4: name_thread 'TRACE'
03A4: name_thread 'HOTR'
03A4: name_thread 'KICKS'
search for $CUSTOM_TOURNAMENT_FLAG



Furthermore needs the racescript the thread 'CASHWIN' to display the result at the end
CODE
:CASHWIN_1
03A4: name_thread 'CASHWIN'


------------------------------------------------------

if you read the description for race script CLEO version: http://www.gtaforums...st&p=1060135530
then
CODE

the variable 966@ = var 87 is equivalent with $352 = race selector

the variable 964@ = var 85 is equivalent with $121 = race start selector


------------------------------------------

Note: displaying any textures or text_draw-text or something else because of other scripts let the racescript crash

Eeshan
  • Eeshan

    Old timer.

  • Members
  • Joined: 18 Oct 2007

#37

Posted 16 May 2008 - 04:53 PM

QUOTE (ZAZ @ May 16 2008, 21:42)
QUOTE (Eeshan @ May 16 2008, 04:27)
Error 404 Link Wont work.
Upload the files in www.thegtaplace.com
also post all the links that are related to this mod.

My home page is avilable again now.
Feel free to download my mods biggrin.gif

Okay, i am gonna check it out.

killahbzz
  • killahbzz

    Da king of Madagascar

  • Members
  • Joined: 02 Jul 2008

#38

Posted 02 July 2008 - 12:08 PM

hi zaz. your a genious man. a pure genious. it's wonderfull. its the perfect mod. thanx man. icon14.gif icon14.gif




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users