:
Destination Time
:
Present Time
:
Last Time Departed
Delorean88MP

my time travel code have big problems

Recommended Posts

hi all.
can you help me how to make a green wormhole.
you have to look my code:

:TIME_D88MP_7390
if and
1@ == 1
2@ == 2
8@ >= 39.8
else_jump @TIME_D88MP_9689
if

8@ >= 44.2
else_jump @TIME_D88MP_7510
066C: 5@ = attach_particle "GREENWORMHOLE10" to_car 0@ with_offset 0.0 2.65 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_7510
if

8@ >= 43.8
else_jump @TIME_D88MP_7594
066C: 5@ = attach_particle "GREENWORMHOLE7" to_car 0@ with_offset 0.0 3.55 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_7594
if

8@ >= 43.6
else_jump @TIME_D88MP_7679
066C: 5@ = attach_particle "GREENWORMHOLE10" to_car 0@ with_offset 0.0 2.65 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_7679
if

8@ >= 43.4
else_jump @TIME_D88MP_7763
066C: 5@ = attach_particle "GREENWORMHOLE8" to_car 0@ with_offset 0.0 2.9 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_7763
if

8@ >= 43.2
else_jump @TIME_D88MP_7847
066C: 5@ = attach_particle "GREENWORMHOLE7" to_car 0@ with_offset 0.0 3.1 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_7847
if

8@ >= 42.95
else_jump @TIME_D88MP_7931
066C: 5@ = attach_particle "GREENWORMHOLE9" to_car 0@ with_offset 0.0 3.25 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_7931
if

8@ >= 42.8
else_jump @TIME_D88MP_8016
066C: 5@ = attach_particle "GREENWORMHOLE10" to_car 0@ with_offset 0.0 3.35 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_8016
if

8@ >= 42.65
else_jump @TIME_D88MP_8100
066C: 5@ = attach_particle "GREENWORMHOLE9" to_car 0@ with_offset 0.0 3.45 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_8100
if

8@ >= 42.5
else_jump @TIME_D88MP_8184
066C: 5@ = attach_particle "GREENWORMHOLE8" to_car 0@ with_offset 0.0 3.5 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_8184
if

8@ >= 42.35
else_jump @TIME_D88MP_8268
066C: 5@ = attach_particle "GREENWORMHOLE7" to_car 0@ with_offset 0.0 3.55 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_8268
if

8@ >= 42.2
else_jump @TIME_D88MP_8352
066C: 5@ = attach_particle "GREENWORMHOLE6" to_car 0@ with_offset 0.0 3.6 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_8352
if

8@ >= 42.05
else_jump @TIME_D88MP_8436
066C: 5@ = attach_particle "GREENWORMHOLE5" to_car 0@ with_offset 0.0 3.65 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_8436
if

8@ >= 41.9
else_jump @TIME_D88MP_8520
066C: 5@ = attach_particle "GREENWORMHOLE4" to_car 0@ with_offset 0.0 3.7 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_8520
if

8@ >= 41.75
else_jump @TIME_D88MP_8604
066C: 5@ = attach_particle "GREENWORMHOLE3" to_car 0@ with_offset 0.0 3.75 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_8604
if

8@ >= 41.6
else_jump @TIME_D88MP_8688
066C: 5@ = attach_particle "GREENWORMHOLE2" to_car 0@ with_offset 0.0 3.8 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_8688
if

8@ >= 41.45
else_jump @TIME_D88MP_8772
066C: 5@ = attach_particle "GREENWORMHOLE3" to_car 0@ with_offset 0.0 3.85 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_8772
if

8@ >= 41.3
else_jump @TIME_D88MP_8856
066C: 5@ = attach_particle "GREENWORMHOLE3" to_car 0@ with_offset 0.0 3.9 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_8856
if

8@ >= 41.15
else_jump @TIME_D88MP_8940
066C: 5@ = attach_particle "GREENWORMHOLE3" to_car 0@ with_offset 0.0 3.95 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_8940
if

8@ >= 41.0
else_jump @TIME_D88MP_9024
066C: 5@ = attach_particle "GREENWORMHOLE2" to_car 0@ with_offset 0.0 4.0 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_9024
if

8@ >= 40.85
else_jump @TIME_D88MP_9108
066C: 5@ = attach_particle "GREENWORMHOLE2" to_car 0@ with_offset 0.0 4.04 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_9108
if

8@ >= 40.7
else_jump @TIME_D88MP_9192
066C: 5@ = attach_particle "GREENWORMHOLE1" to_car 0@ with_offset 0.0 4.08 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_9192
if

8@ >= 40.55
else_jump @TIME_D88MP_9276
066C: 5@ = attach_particle "GREENWORMHOLE1" to_car 0@ with_offset 0.0 4.11 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_9276
if

8@ >= 40.4
else_jump @TIME_D88MP_9360
066C: 5@ = attach_particle "GREENWORMHOLE2" to_car 0@ with_offset 0.0 4.14 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_9360
if

8@ >= 40.25
else_jump @TIME_D88MP_9444
066C: 5@ = attach_particle "GREENWORMHOLE2" to_car 0@ with_offset 0.0 4.16 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_9444
if

8@ >= 40.1
else_jump @TIME_D88MP_9528
066C: 5@ = attach_particle "GREENWORMHOLE1" to_car 0@ with_offset 0.0 4.18 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_9528
if

8@ >= 39.95
else_jump @TIME_D88MP_9612
066C: 5@ = attach_particle "GREENWORMHOLE1" to_car 0@ with_offset 0.0 4.19 0.15 rotation 0.0 0.0 0.0 type 1
jump @TIME_D88MP_9689

:TIME_D88MP_9612
if

8@ >= 39.8
else_jump @TIME_D88MP_9689
066C: 5@ = attach_particle "GREENWORMHOLE1" to_car 0@ with_offset 0.0 4.2 0.15 rotation 0.0 0.0 0.0 type 1

:TIME_D88MP_9689
064C: make_particle 5@ visible
064F: remove_references_to_particle 5@
0AB2: ret 1 3@

  • Like 1

Share this post


Link to post
Share on other sites

What is the problem? Crash?

Are you calling this fuction via 0AB1: opcode? Are you sure you're using correct parameters?

What value does the variable 2@ contain?

Share this post


Link to post
Share on other sites

:TIME_D88MP_7390
if and
  1@ == 1
  2@ == 2
  8@ >= 39.8
else_jump @TIME_D88MP_9689
 
[...]
 
:TIME_D88MP_9689
064C: make_particle 5@ visible
064F: remove_references_to_particle 5@
0AB2: ret 1 3@

The particles are created even if the first IF AND returns false.

The default code does that too, though.

Anyway, maybe you can add another check or give it a default value.

Edited by uokka
  • Like 1

Share this post


Link to post
Share on other sites

Looks identical to my code block:

:TIME_DELOKARR_8646
if and
  1@ == 1 
  2@ == 2 
  8@ >= 39.8 
else_jump @TIME_DELOKARR_11269 
if 
  8@ >= 44.2 
else_jump @TIME_DELOKARR_8765 
066C: 5@ = attach_particle "BLUEWORMHOLE31" to_car 0@ with_offset 0.0 2.65 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_8765
if 
  8@ >= 44.15 
else_jump @TIME_DELOKARR_8849 
066C: 5@ = attach_particle "BLUEWORMHOLE30" to_car 0@ with_offset 0.0 3.55 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_8849
if 
  8@ >= 44.0 
else_jump @TIME_DELOKARR_8933 
066C: 5@ = attach_particle "BLUEWORMHOLE29" to_car 0@ with_offset 0.0 3.55 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_8933
if 
  8@ >= 43.85 
else_jump @TIME_DELOKARR_9017 
066C: 5@ = attach_particle "BLUEWORMHOLE28" to_car 0@ with_offset 0.0 3.55 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_9017
if 
  8@ >= 43.7 
else_jump @TIME_DELOKARR_9101 
066C: 5@ = attach_particle "BLUEWORMHOLE27" to_car 0@ with_offset 0.0 3.55 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_9101
if 
  8@ >= 43.55 
else_jump @TIME_DELOKARR_9185 
066C: 5@ = attach_particle "BLUEWORMHOLE26" to_car 0@ with_offset 0.0 3.55 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_9185
if 
  8@ >= 43.4 
else_jump @TIME_DELOKARR_9269 
066C: 5@ = attach_particle "BLUEWORMHOLE25" to_car 0@ with_offset 0.0 2.65 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_9269
if 
  8@ >= 43.25 
else_jump @TIME_DELOKARR_9353 
066C: 5@ = attach_particle "BLUEWORMHOLE24" to_car 0@ with_offset 0.0 2.9 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_9353
if 
  8@ >= 43.1 
else_jump @TIME_DELOKARR_9437 
066C: 5@ = attach_particle "BLUEWORMHOLE23" to_car 0@ with_offset 0.0 3.1 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_9437
if 
  8@ >= 42.95 
else_jump @TIME_DELOKARR_9521 
066C: 5@ = attach_particle "BLUEWORMHOLE22" to_car 0@ with_offset 0.0 3.25 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_9521
if 
  8@ >= 42.8 
else_jump @TIME_DELOKARR_9605 
066C: 5@ = attach_particle "BLUEWORMHOLE21" to_car 0@ with_offset 0.0 3.35 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_9605
if 
  8@ >= 42.65 
else_jump @TIME_DELOKARR_9689 
066C: 5@ = attach_particle "BLUEWORMHOLE20" to_car 0@ with_offset 0.0 3.45 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_9689
if 
  8@ >= 42.5 
else_jump @TIME_DELOKARR_9773 
066C: 5@ = attach_particle "BLUEWORMHOLE19" to_car 0@ with_offset 0.0 3.5 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_9773
if 
  8@ >= 42.35 
else_jump @TIME_DELOKARR_9857 
066C: 5@ = attach_particle "BLUEWORMHOLE18" to_car 0@ with_offset 0.0 3.55 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_9857
if 
  8@ >= 42.2 
else_jump @TIME_DELOKARR_9941 
066C: 5@ = attach_particle "BLUEWORMHOLE17" to_car 0@ with_offset 0.0 3.6 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_9941
if 
  8@ >= 42.05 
else_jump @TIME_DELOKARR_10025 
066C: 5@ = attach_particle "BLUEWORMHOLE16" to_car 0@ with_offset 0.0 3.65 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_10025
if 
  8@ >= 41.9 
else_jump @TIME_DELOKARR_10109 
066C: 5@ = attach_particle "BLUEWORMHOLE15" to_car 0@ with_offset 0.0 3.7 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_10109
if 
  8@ >= 41.75 
else_jump @TIME_DELOKARR_10193 
066C: 5@ = attach_particle "BLUEWORMHOLE14" to_car 0@ with_offset 0.0 3.75 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_10193
if 
  8@ >= 41.6 
else_jump @TIME_DELOKARR_10277 
066C: 5@ = attach_particle "BLUEWORMHOLE13" to_car 0@ with_offset 0.0 3.8 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_10277
if 
  8@ >= 41.45 
else_jump @TIME_DELOKARR_10361 
066C: 5@ = attach_particle "BLUEWORMHOLE12" to_car 0@ with_offset 0.0 3.85 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_10361
if 
  8@ >= 41.3 
else_jump @TIME_DELOKARR_10445 
066C: 5@ = attach_particle "BLUEWORMHOLE11" to_car 0@ with_offset 0.0 3.9 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_10445
if 
  8@ >= 41.15 
else_jump @TIME_DELOKARR_10529 
066C: 5@ = attach_particle "BLUEWORMHOLE10" to_car 0@ with_offset 0.0 3.95 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_10529
if 
  8@ >= 41.0 
else_jump @TIME_DELOKARR_10612 
066C: 5@ = attach_particle "BLUEWORMHOLE9" to_car 0@ with_offset 0.0 4.0 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_10612
if 
  8@ >= 40.85 
else_jump @TIME_DELOKARR_10695 
066C: 5@ = attach_particle "BLUEWORMHOLE8" to_car 0@ with_offset 0.0 4.04 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_10695
if 
  8@ >= 40.7 
else_jump @TIME_DELOKARR_10778 
066C: 5@ = attach_particle "BLUEWORMHOLE7" to_car 0@ with_offset 0.0 4.08 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_10778
if 
  8@ >= 40.55 
else_jump @TIME_DELOKARR_10861 
066C: 5@ = attach_particle "BLUEWORMHOLE6" to_car 0@ with_offset 0.0 4.11 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_10861
if 
  8@ >= 40.4 
else_jump @TIME_DELOKARR_10944 
066C: 5@ = attach_particle "BLUEWORMHOLE5" to_car 0@ with_offset 0.0 4.14 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_10944
if 
  8@ >= 40.25 
else_jump @TIME_DELOKARR_11027 
066C: 5@ = attach_particle "BLUEWORMHOLE4" to_car 0@ with_offset 0.0 4.16 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_11027
if 
  8@ >= 40.1 
else_jump @TIME_DELOKARR_11110 
066C: 5@ = attach_particle "BLUEWORMHOLE3" to_car 0@ with_offset 0.0 4.18 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_11110
if 
  8@ >= 39.95 
else_jump @TIME_DELOKARR_11193 
066C: 5@ = attach_particle "BLUEWORMHOLE2" to_car 0@ with_offset 0.0 4.19 0.15 rotation 0.0 0.0 0.0 flag 1 
jump @TIME_DELOKARR_11269 

:TIME_DELOKARR_11193
if 
  8@ >= 39.8 
else_jump @TIME_DELOKARR_11269 
066C: 5@ = attach_particle "BLUEWORMHOLE1" to_car 0@ with_offset 0.0 4.2 0.15 rotation 0.0 0.0 0.0 flag 1 

:TIME_DELOKARR_11269
064C: make_particle 5@ visible 
064F: remove_references_to_particle 5@ 
0AB2: ret 1 3@ 

Like uokka said, what exactly is your problem?

Share this post


Link to post
Share on other sites

What is the problem? Crash?

Are you calling this fuction via 0AB1: opcode? Are you sure you're using correct parameters?

What value does the variable 2@ contain?

I can not find 2@.

maybe you can send my code to you?

Share this post


Link to post
Share on other sites

Please answer this question: Does the game crash or does the code just not work or what is the problem?

(I'm a little bit confused because making the effect green would be done in '\models\effects.fxp' )

Since the CLEO code for GTA SA BTTF is open source, personally I think it would be good if we discuss and share new ideas here on the forum so anyone can see it and benefit from it.

In the original updated source code, 2@ contains 'fuel'. The value of 2@ in this function gets defined by 0AB1 opcode via parameter.

0AB1: call_scm_func @Wormhole num_params 4 params 0@ 1@ 2@ 28@ store_to 28@

0@ = 0@

1@ = 1@

2@ = 2@

3@ = 28@

I'm not sure if that matters, though. It's just that I have changed that a little in my code edits and the code you've posted seems to be in a similar layout as mine.

If you have problems with the code, it might help if you post your complete function (you can use BB-Code [ spoiler ][ code ]"your code here..."[ / code ][ / spoiler ]).

Share this post


Link to post
Share on other sites

I can not make code to green wormhole.

thanks for the help.

if you have idea with green wormhole.
here read:

(delete link)

Edited by Delorean88MP

Share this post


Link to post
Share on other sites

I have downloaded your 'timetravel_DeLorean88MP.cs' but I can only open it in SannyBuilder to look at it.

I can't test your script in-game because I don't have your complete mod edits installed and it's too big for me to download..

BTTFModMachine, maybe you can give it a try.

--

I still don't understand what the problem is. No wormhole visible? Or game is crashing?

Please provide more information about the problem.

Does your script work if you change the effect to BLUEWORMHOLE1 ?

If you get a default / blue wormhole, then there is nothing to do in the code except of changing the effect names for 066C opcode.

I guess you know how to edit "GTASA\models\effects.fxp", right?

You have GREENWORMHOLE1 ... GREENWORMHOLE10 in your effects.fxp with just the color changed to green?

--

Unrelated:

You should not use more than 7 (seven) characters for your 'thread-name'.

03A4: name_thread 'TIME_D88MP'

Instead, use something like this:

03A4: name_thread 'TMD88MP'

  • Like 1

Share this post


Link to post
Share on other sites

I have downloaded your 'timetravel_DeLorean88MP.cs' but I can only open it in SannyBuilder to look at it.

I can't test your script in-game because I don't have your complete mod edits installed and it's too big for me to download..

BTTFModMachine, maybe you can give it a try.

--

I still don't understand what the problem is. No wormhole visible? Or game is crashing?

Please provide more information about the problem.

Does your script work if you change the effect to BLUEWORMHOLE1 ?

If you get a default / blue wormhole, then there is nothing to do in the code except of changing the effect names for 066C opcode.

I guess you know how to edit "GTASA\models\effects.fxp", right?

You have GREENWORMHOLE1 ... GREENWORMHOLE10 in your effects.fxp with just the color changed to green?

--

Unrelated:

You should not use more than 7 (seven) characters for your 'thread-name'.

03A4: name_thread 'TIME_D88MP'

Instead, use something like this:

03A4: name_thread 'TMD88MP'

now I understand, thank you

Share this post


Link to post
Share on other sites

That makes one of us. :P

If / When you have fixed the problem by editing the code, please let us know what you did in case somebody tryes to use the code you've posted in your first post.

Otherwise, I might be able to help you editing effects.fxp . Copy/Pasting an effect and changing its color is pretty easy.

  • Like 1

Share this post


Link to post
Share on other sites

hello.

thanks for the help.
it can green wormhole. Now have no problem my code :)

sorry bad english

Share this post


Link to post
Share on other sites