:
Destination Time
:
Present Time
:
Last Time Departed

uokka

Advanced Members
  • Content Count

    361
  • Joined

  • Last visited

  • Days Won

    36

Posts posted by uokka


  1. Good news for anybody with some GTA modding and CLEO coding knowledge!

    Some of my scripts only relations to the original mod, are cleo global variables (and some changed effects).

    So I'll give you those (decompiled) scripts.. (source is full of messy, out-commented stuff)

    They have not been tested yet on a clean GTA SA BttF. Thats why you have to have some coding skills..

    And you have to check out what they do by yourself.

    SPOILER:
    Code moved to first post..

    BttF_DMC_Liftoff.cs and BttF_DMC_Boost.cs are using edited effects based on ventglow. Only color and size has been edited but im not sure if I can give them to you, sorry.. You have to make youre own copys of ventglow inside of effects.fxp and name them wheelboost, wheelglow, and wheelglow2. Or edit the scripts to only use ventglow instead of wheelboost, wheelglow, and wheelglow2.

    Any recommendations are welcome.

    Good luck!


  2. {$CLEO .s}
    
      
    
      //-------------MAIN---------------
    
      03A4: name_thread 'COLD'
    
      0001: wait 0 ms
    
      32@ = 0  
    
      0AB4: 24@ = var 908
    
      if
    
    	  not car.Defined(0@)
    
      then
    
    	  wait 100
    
    	  0AB4: 0@ = var 8
    
    	  if
    
    		  not car.Defined(0@)
    
    	  then
    
    		  0AAD: set_audiostream 24@ perform_action 0
    
    		  0A93: end_custom_thread
    
    	  end
    
      end

    This code is only for reference. Dont use this, it should be there already.

    If not, something similar..

    Paste the code, which ices the DeLorean, right after that.

    The variable 0@ got it's value already declared in timetravel.s, which has been shipped over to cold.s by execution parameter. Thats why the script is able to check if not car.Defined(0@). Even if you cannot see, in that script, where the value of 0@ comes from.

    It contains the players car, and should not be #SUPERGT or CarID. It must be a variable.


  3. The game doesnt care at all, how many paintjobs you add to a car. If theres only one extra paintjob .TXD in the archive, the game will show you only this one in the transfender garage menu.

    It is not possible to use more than 4 paintjobs per car.

    The script expects 4 paintjobs and might crash or might not crash, if you have only one paintjob in the gta3.img. try it out, i dont know..

    EDIT:

    It wont crash. :)


  4. OK, right. I wasnt clearly.

    CAR.DFF, CAR.TXT, CAR1.TXT etc. .. are example names, and yes, you have to rename it to the actual name of the car model you wanna replace.

    I replaced the SuperGT with the DeLorean, so what I have is:

    SUPERGT.DFF

    SUPERGT.TXD

    SUPERGT1.TXD

    SUPERGT2.TXD

    SUPERGT3.TXD

    SUPERGT4.TXD

    But in standard case, the scripts are using the car ID of Bullet to spawn the delorean and such..

    BULLET.DFF

    BULLET.TXD

    BULLET1.TXD

    BULLET2.TXD

    BULLET3.TXD

    BULLET4.TXD

    Add/replace those to your gta3.img or bttf.img (rebuilding bttf.img is way faster!).

    Make shure you dont have any file using the same name in both .IMG files

    The paintjob .TXD's might need to be added to gta3.img. not sure though..

    (adding them to bttf.img works as well!)

    I dont know why you cannot decompile cold.s, but your cleo folder should contain something else as well! The rest of the default BttF mod..

    cold.s wont run by itself (its .s, not .cs). Its been executed by another script on timetraveling.. showing some steam comming out of the vent rising up from the cars hull (DMC88ELB, might be interesting to you.. effects.fxp), and closing after some amount of time.

    It seems your sanny builder installation is missing the SASCM.INI or opcodes.txt file.. maybe thats why sanny dont know those opcodes.. cold.s is a simple script. can you open other cleo scripts.

    You'll need to edit cold.s. The script snippets above are not a colmpete script.


  5. OK...

    Im not quite sure, if cold.s. is of v0.1.3.2, but i put it in there.

    Some explanation:

    
    
    06ED: set_car 0@ paintjob 0
    This would set the first paintjob on the car (0=#1). -1 = No Paintjob 0 = Paintjob # 1 1 = Paintjob # 2 2 = Paintjob # 3 3 = Paintjob # 4 The code swithes textures until the last paintjob is applyed (3=#4). So, after this segment of code ...
    
    
    {$CLEO .s} //-------------MAIN--------------- 03A4: name_thread 'COLD' 0001: wait 0 ms 32@ = 0 0AB4: 24@ = var 908 if not car.Defined(0@) then wait 100 0AB4: 0@ = var 8 if not car.Defined(0@) then 0AAD: set_audiostream 24@ perform_action 0 0A93: end_custom_thread end end // The above code is only for reference.
    We put this ...
    
    
    // Apply Icy Paintjobs.. wait 100 for 8@ = 0 TO 3 while true wait 10 0988: get_car 0@ paintjob 7@ wait 0 if 001D: 8@ > 7@ then 06ED: set_car 0@ paintjob 8@ break end end wait 100 //wait 50 end
    Now, before every end_custom_thread, you put this
    
    
    // Remove Icy Paintjobs.. //wait 1500 ms wait 2500 ms for 8@ = 2 DOWNTO -1 while true wait 10 0988: get_car 0@ paintjob 7@ wait 0 if 001D: 7@ > 8@ then 06ED: set_car 0@ paintjob 8@ break end end wait 100 //wait 50 end wait 0 wait 0 0A93: end_custom_thread

    You might wanna decrease the wait time in the loop a little.

    A value of "50" looks smoother, but doesnt always work corectly for me, due to laggy loading..

    The code for switching between paint jobs is easy, a lot easier than adding a custom paint job to be honest.
    Yep!

  6. You should use dif pics, I believe those are your ice deloreans affects, someone can take them and release them as their own

    As long as you guys know that i put the white paint on the delorean texture, everything is fine. Its based on Tiridos textures. And i want to give you the possibility to use it.

    [...] Also, why couldn't you release your mods again? :huh: I'm really keen to have the ACTUAL frost effects on the DeLorean, as well as a model-less flying DeLorean! :)

    I didnt realy tryed to contact blue, yet. I didnt asked she/him to allow me.

    Thats why i dont give you hot stuff without permission. Would get deletet anyways..

    I'll try to seperate my scripts from the original ones, maybe it could be an add-on, maybe.

    Didnt you asked for tutorials?

    Paintjobs are very coding friendly..

    All paintjob textures in gta3.img are automatically loaded by the game if needed.

    for 8@ = 0 TO 3
    
    	while true
    
    		wait 10
    
    		0988: get_car 0@ paintjob 7@
    
    		wait 10
    
    		if
    
    			001D: 8@ > 7@
    
    		then
    
    			06ED: set_car 0@ paintjob 8@
    
    			break
    
    		end
    
    	end
    
    	wait 100   
    
    end
    
    //Going through paintjob 1 to 4. making sure no paintjoby will be jumped over.

    The applied paintjob sometimes shows up a few ms too late.

    wait 100 ms is a little long, though.


  7. Ehm, Im not familiar with the term Kindle.

    Does it mean i cannot download the hole book, or will it be burned/unreadable after reading?

    And reading a hole bunch of books is of course a pain in the ass, if you read it from a monitor..

    Get well again, by the way!

    But what i meant is, is it legal? Is the publisher and the authors behind this?


  8. @theCoolest2

    This comment might be unnecessary, cause you should already know, but this looks like an email by a highjacker who pretends to be an admin or something and warns you niceley about possible acount stealing.

    "validate your password at this link" blabla..

    If you follow any links in those emails and type in youre pass, they have it

    I got those mails, warning me about my WoW account would be sold by someone.

    I dont own WoW.. :P

    edit:

    sorry if im completely off topic. a friend of mine owned WoW until he got one of those mails..

    Just dropped by, i dont even know minecraft. ^_^


  9. I had an idea after reading this tutorial by DexX, which explains that the use of paintjobs is controlled by texture naming.

    DexX' tutorial is about modeling, but i'll show you how to enable paintjobs on probably any car,
    without the need to recompile the model. You need to know a little about SA modding though..

    As we know now, Thanks to DexX' tutorial, the game recognizes keywords in the model files and
    automaticaly provides the option to use paintjobs in the transfender garage menu.
    The magic word is remap!

    We now can edit the model file with a Hex Editor (which is basically a text editor) and forcing it to use that keyword for one of its textures, by only changing some text strings inside the .DFF file..

    Take a complete and ready GTA SA car model without paintjob capabilities.
    It consists of two files. One .DFF file and one .TXD file.

    I did this with Tirido's DeLorean which replaces the Bullet:

    tut.jpg

     

    Tools used:
    Notepad++ (a Text Editor with HEX capabilities)
    GIMP 2.6 (painting)
    TXD Workshop 4.5
    IMG Tool 2.0

     

    • - - - - - - - - - -

      Open Bullet.TXD.
      Find only one texture, which represents the outside surface texture of the car.

      th_tut_01.jpg

      DeLorean_Hull.dds is the name of the texture.
      Rename it to "remapean_Hull.dds"!

      th_tut_02.jpg

      DO NOT change the texture mames length!
      Just overwrite the first 5 chars with the letters r, e, m, a and p.

      th_tut_03.jpg

      Extract the texture for later editing.

      Save Bullet.TXD and close it.
    • - - - - - - - - - -

      Create a copy of Bullet.TXD and name it Bullet1.TXD!


      tut_04.jpg

      Open Bullet1.TXD
      Delete ALL textures inside Bullet1.TXD, exept the one you want to replace.

      th_tut_05.jpg

      Replace the only texture left in Bullet1.TXD with your edited paintjob texture.


      th_tut_06.jpg

      Save Bullet1.TXD.
    • - - - - - - - - - -

      Open Bullet.DFF in a HEX editor!
      Use your editors search function to find the texture name you've choosen from Bullet.TXD.

      th_tut_07.jpg

      There might be more than one search result.
      Rename all found "DeLorean_Hull.dds" strings to "remapean_Hull.dds"!

      th_tut_08.jpg

      DO NOT change the strings length!
      Just overwrite the first 5 chars with the letters r, e, m, a and p.
      Save Bullet.DFF.

      - - - - - - - - - -

      DONE!

    Your model consists out of 3 files now.
    Bullet.DFF, Bullet.TXD and the optional Bullet1.TXD, which will be used by the game to add a paintjob to the car.
    You can create more, by naming them Bullet2.TXD, Bullet3.TXD and Bullet4.TXD.
    4 is maximum.

     

     

     


     

    These are semi transparent 'iced' textures for the conversion of Tirido's Crysis DeLorean.
    You'll need some image editing program, which is able to handle tranparency (like GIMP) to add
    this texture overlays on top of the default texture.

     

     

     

     

    Icy Paintjobs !

     

    th_supergt1.png

     

    th_supergt2.png

     

    th_supergt3.png

     

    th_supergt4.png

     

    Painjob #1

     

    Painjob #2

     

    Painjob #3

     

    Painjob #4

     

     

     

    * UPDATE *

    I noticed you can't just download the original images from PhotoBucket.
    They will be 1024x1024 instead of 2048x2048. So get the full quality
    from this DOWNLOAD.

     

     


    iced_delorean_small.png

    Modified CLEO code from Back to the Future SA Mini Mod for using the Cold/Iced effect:
    not needed if you have my bttf edits installed
    (right-klick and hit 'save as'..)

    compiled (cold.s)

    source (cold.txt)


    Happy painting

     

     

     

    • Like 1

  10. Hey, a copy of VC just materialized itself in my DVD drive..

    The first parameter of 0437: (particle ID?) might point to

    "SMOKE_SLOWMOTION" (ID 22)

    and

    "STEAM2" (ID 30)

    located in "..\GTA Vice City\data\particle.cfg"

    If changing parameters of 0437: wont be successful, you may still try to play with "particle.cfg".

    EDIT:

    huh.gif

    I meant, trying it out is the way I learned some about cleo coding.

    Or what does your strange look mean? :blink:

    :P


  11. The first parameter, wich is 22, might be an ID. Dont know if 22 would point to a Texture or to an Effect, wich again points to textures..

    I suggest you change all parameters in 0437: one by one (exept of the coords) and check the changes ingame.

    Sound like a lot of effort, but thats how i did it with SA..


  12. Well, I dont know this opcode...

    0437: scatter_particle 22 0.5 at 4@ 5@ 6@ 0 0 0

    But it looks like:

    - First parameter particle ID

    - second might be the size?

    - at coords 4@, 5@, 6@.

    - last three params could contain interesting values..

    Did you try to play with this?

    If the first param is an particle ID, then i would like to know where the particle is (like in .fxp).

    I will try to find out something in the scm. But since i have no VC, i cant test..


  13. Maybe I could tell you what to change and you would have to test yoreself. I've got no VC, sorry.

    If the effect used by the code, comes from an effects data file (effects.fxp in SA), then i might be able to find the velocity values for the steam cloud texture..

    If its purely coded, i could download 0.2e to have a look.

    Thats my offer, even if I am not a very good coder as well :D


  14. Thanks, me too :)

    Edit:

    By the way, I pretty much only use stuff found by others. If there wouldnt be those guys, finding memory addresses and opcodes, I wouldnt be able to do anything this 'easy', as my stuff is..

    Could you post a screenshot of the MP Timecircuits?
    Not necessary anymore. I saw the Video and some screens in the MP topic.

    I like the TC texture and the digital speedo. But I prefer my layout of the time circuits.. it won't interfere with other HUD components (name of vehicle, town text, etc.).


  15. Well, actually, I meant what happened to Blue's big, red, font speedometer.

    Much too big for me... [...]
    :D

    I'll try to add the speedo texture, of which you talked about in this other topic.

    But it just has to be placed around the radar. Any other place is a waste of space, imo.


  16. The animation we use is based on the cgi model, which first extends the wheels out from the car, and then folds.
    So you use the definitely better looking animation, which I want to archive aswell.

    Ha! I thought the only CGI stuff would be the shark in 2015 Hill Valley :lol:

    By the way,

    (I'm not saying Blue's made this mod inaccurately at all- although I'm sure Blue would have came

    out with these things sooner or later)

    The idea to use paintjobs has not been mine. Its posted here somewhere on the forum.

    EDIT:

    The idea to get rid of the Helicopter switch was mine. :D

    The LC team realized it earlyer than me, but we dont know eachother, though.

    I got the needed info from GTAForums - Memory Adresses Documentation.