Author Topic: SK-Races  (Read 2180 times)

0 Members and 1 Guest are viewing this topic.

Offline MadMax

  • Lazyass, still hanging around AX from time to time
  • Admin
  • Posts: 4,355
  • I'm the road warrior...
    • View Profile
  • In-game name: MadMax[MAF]
SK-Races
« on: June 18, 2009, 12:24:45 pm »
my first SK-Hardcore race, i hope it is good
« Last Edit: June 18, 2009, 01:20:17 pm by MadMax »

PLEASE, IGNORE ALL MY SPELLING MISTAKES AND OTHER TYPOS True racing fans enjoy horsepower in ANY form

Offline [MAF]falky

  • Admin
  • Posts: 2,750
    • View Profile
Re: SK-Races
« Reply #1 on: June 18, 2009, 01:12:57 pm »
Here's a brief tutorial:

An SK race has 2 files:
.race file and .sk file

The format for the .race file looks like this:
Code: ("MSR-SK.race") [Select]
switch No Extra Information
115 210 2 1 1 0 14
11 1 16
614 614
-2730.5515 198.8277 17.7266 258.8708
-2730.5515 198.8277 17.7266 258.8708
-2704.0852 171.0001 3.8026
-2706.4489 15.4893 3.8074
-2672.1635 -70.5869 3.8078
-2072.0861 -70.0749 34.7946
-2007.3145 -10.7509 34.1683
-1951.4783 345.2478 33.1301
-1820.2784 503.7692 28.1800
-1847.4680 606.0377 34.6383
-1691.1619 731.2337 22.7546
-1555.8347 964.8956 6.8881
-1678.0496 1186.9477 17.3264
-2001.4462 1176.0629 44.9197
-2143.3830 1126.4025 70.2794
-2143.2392 783.0396 69.0394
-2206.6081 731.7432 49.2044
-2261.0722 646.1558 48.9197
-2271.6750 508.4194 34.6385
-2343.5275 457.7749 32.2450
-2338.5803 309.3127 38.6040
-2706.4914 157.8556 3.9200

To break it down:
Code: [Select]
115 210 2 1 1 0 14
11 1 16
614 614

In the 1st line from left to right:
- Waiting time before race starts, in seconds. (Usually I make this 55 seconds, just enough for all the players to get a car and drive to the grid. In this case its 115 seconds (MSR) so players have extra time to tune their cars.)
- Total time of race, in seconds.
- Weather, time, CP size, etc. etc. <-- Not sure with the order but what I do when I make an SK race is that 1st I enter buildmode and do a normal race then I just get the .race file and edit it. :)

In the 2nd line from left to right:
- Special 1. (IMPORTANT: ALWAYS SET THIS TO 11 IF YOU WANNA MAKE AN SK RACE, because this is the value of an SK race.)
- Special 2. (IMPORTANT: ALWAYS SET THIS TO 1 IF YOU WANNA MAKE AN SK RACE, because this is the value of a hardcore race.)
- Special 3. (IMPORTANT: ALWAYS SET THIS TO 16 IF YOU WANNA MAKE AN SK RACE, because this value is a bug fix for SK mode. :))

3rd line is the vehicle IDs but this line is unnecessary since the vehicle coords and IDs will be on the .sk file.

NOTE: If you check the grid coords, both lines are the same. THIS IS IMPORTANT. You must ALWAYS set the 2 grid coords in the same spot. :)

Code: [Select]
-2730.5515 198.8277 17.7266 258.8708
-2730.5515 198.8277 17.7266 258.8708

Okay, unto the .sk file:

Code: ("MSR-SK.sk") [Select]
561 -2713.8591 190.6315 3.9507 268.8719
560 -2713.8298 194.8616 3.9534 268.6572
559 -2713.3586 200.1701 3.9514 270.1534
558 -2713.7417 205.0421 3.9546 268.6015
562 -2699.3599 192.6270 3.9516 133.8207
565 -2699.4602 187.3248 3.9536 138.7323
561 -2699.4534 182.8934 3.9506 133.8400
560 -2699.3928 199.8449 3.9530 139.7815
559 -2692.5391 222.0049 3.8752 88.8443
558 -2683.3992 221.8412 3.7832 88.8635
562 -2674.4785 221.6639 3.8059 88.8624
565 -2691.7368 213.2529 3.8756 90.2332
561 -2682.1838 213.3382 3.8782 90.3339
565 -2670.3125 213.4711 3.8769 90.3589
565 -2659.7495 213.6043 3.8403 93.1315
560 -2692.0608 149.7829 3.9522 88.1051
565 -2685.6101 149.5521 3.9544 89.2735
562 -2689.4773 237.5773 3.9590 264.8415
560 -2675.6414 236.1958 3.9609 234.6924
560 -2693.0300 225.3277 4.0327 89.1955
560 -2683.4153 225.1926 4.0336 89.1952
560 -2674.8550 225.0257 4.0307 89.7370
560 -2692.0725 205.2288 4.0409 359.0709
560 -2685.7500 204.5660 4.0411 359.4327
560 -2681.4321 205.4075 4.0452 0.2356
560 -2675.5508 205.1999 4.0414 0.5384
560 -2671.7749 204.7256 4.0409 0.5720
560 -2666.9041 204.6413 4.0414 358.9120
560 -2663.1094 204.6203 4.0416 0.1647
560 -2657.6252 205.0603 4.0409 356.4882
560 -2654.0044 230.4189 4.0335 178.5130
560 -2654.1577 242.6303 4.0336 178.6209
560 -2653.8279 256.6418 4.0330 180.2875
560 -2653.8904 269.0699 4.0342 180.2871
560 -2639.0220 229.2927 4.0336 180.1955
560 -2639.0566 239.5593 4.0343 180.1949
560 -2639.0886 249.2709 4.0340 180.1944
560 -2639.1160 257.2133 4.0329 180.1938
560 -2639.1631 271.2752 4.0337 180.1937
560 -2691.6025 231.7369 4.0404 128.9442

The format is simple:
Code: [Select]
vehicleid x y z angle
NOTE: I always make 40-50 car spawns, so everyone in the server won't run out of cars. :)

Some TIPZ to help you:
- Usually what I do when I make an SK race, 1st I make a normal race in buildmode then just get the .race file and edit it with SK settings. :)
- The .sk file must be made from scratch so you must enter debug and do /save. :)

Hope this helps. ;)


- Taken from the PM I sent MadMax. :P

Offline [MAF]mooman

  • Leader
  • Posts: 6,286
    • View Profile
Re: SK-Races
« Reply #2 on: June 18, 2009, 01:22:33 pm »
can we please have spare cars around the track instead of just the start? this is how sk used to do it ;)
will read and answer your forum PMs when I'm less busy!

Offline [FSR]Ush

  • Admin
  • Posts: 13,449
  • Aart
    • View Profile
Re: SK-Races
« Reply #3 on: June 18, 2009, 03:12:47 pm »
can we please have spare cars around the track instead of just the start? this is how sk used to do it ;)

I agree, we have one race from f4lcon were the cars are around the whole track, but some are placed in the middle of the road lol :L

Offline MadMax

  • Lazyass, still hanging around AX from time to time
  • Admin
  • Posts: 4,355
  • I'm the road warrior...
    • View Profile
  • In-game name: MadMax[MAF]
Re: SK-Races
« Reply #4 on: June 18, 2009, 03:21:45 pm »
i makin now
random cars in random places

PLEASE, IGNORE ALL MY SPELLING MISTAKES AND OTHER TYPOS True racing fans enjoy horsepower in ANY form

Offline [MAF]falky

  • Admin
  • Posts: 2,750
    • View Profile
Re: SK-Races
« Reply #5 on: June 18, 2009, 03:46:00 pm »
Please try to limit total car spawns from 50-60 cars 'cause spawning so many cars while the server is running might be mouth-meltingly awesome but is also server-meltingly harmful

Offline [MAF]Rac3r

  • Leader
  • Posts: 2,801
  • Well, this is embarrassing.
    • View Profile
Re: SK-Races
« Reply #6 on: June 18, 2009, 04:06:20 pm »
Tot tut, nice tut Falcon  ;D

Offline MadMax

  • Lazyass, still hanging around AX from time to time
  • Admin
  • Posts: 4,355
  • I'm the road warrior...
    • View Profile
  • In-game name: MadMax[MAF]
Re: SK-Races
« Reply #7 on: June 22, 2009, 10:25:46 am »
can we please have spare cars around the track instead of just the start? this is how sk used to do it ;)

but how many cars can i add, to not crash/bug it?

PLEASE, IGNORE ALL MY SPELLING MISTAKES AND OTHER TYPOS True racing fans enjoy horsepower in ANY form

Offline [MAF]Rac3r

  • Leader
  • Posts: 2,801
  • Well, this is embarrassing.
    • View Profile
Re: SK-Races
« Reply #8 on: June 22, 2009, 08:57:25 pm »
You could have the maximum 700 vehicles,it would keep reading the lines from the .sk untill the end.

But :
The server can have anywhere between 0 and 650 vehicles spawned when the sk race is launched. So if the race is started when current spawned vehicles is over 600, it would only spawn 100 of them.

Sk is limited and very buggy. Old SK worked well because it was basic-one-world layout. With the virtual worlds, we get that gay ghostmode bug.  :)

Offline MadMax

  • Lazyass, still hanging around AX from time to time
  • Admin
  • Posts: 4,355
  • I'm the road warrior...
    • View Profile
  • In-game name: MadMax[MAF]
Re: SK-Races
« Reply #9 on: June 22, 2009, 10:19:25 pm »
ok, hope third try will be succesful  :D
or maybe i sucks  :D

PLEASE, IGNORE ALL MY SPELLING MISTAKES AND OTHER TYPOS True racing fans enjoy horsepower in ANY form

Offline MadMax

  • Lazyass, still hanging around AX from time to time
  • Admin
  • Posts: 4,355
  • I'm the road warrior...
    • View Profile
  • In-game name: MadMax[MAF]
Re: SK-Races
« Reply #10 on: September 15, 2009, 10:51:24 pm »
1 question:

if i make

Code: [Select]
475 1 -2713.8591 190.6315 3.9507 268.8719
it will spawn Sabre white ONLY or random colours ?

PLEASE, IGNORE ALL MY SPELLING MISTAKES AND OTHER TYPOS True racing fans enjoy horsepower in ANY form

Offline pod

  • Scripter
  • Posts: 417
    • View Profile
  • In-game name: pod
Re: SK-Races
« Reply #11 on: September 16, 2009, 12:24:47 am »
1 question:

if i make

Code: [Select]
475 1 -2713.8591 190.6315 3.9507 268.8719
it will spawn Sabre white ONLY or random colours ?

Code: [Select]
modelid x y z angle color1 color2
but it looks like the script ignores color1 and color2, and uses -1 -1