Quantcast

Jump to content

» «
Photo

24h TimeCycle

SA Released
91 replies to this topic
The Hero
  • The Hero

    Into TheGame!!!

  • Feroci
  • Joined: 25 Jan 2005
  • Germany
  • Most Helpful Modding 2016 [Honorable mention]
    Best Script or Plugin 2016 [SkyGfx]
    Contribution Award [Mods]

#61

Posted 29 August 2017 - 09:56 AM

Why not use my python script? o_O

MMK_033
  • MMK_033

    Потраченн&

  • Members
  • Joined: 05 Apr 2016
  • Russia

#62

Posted 29 August 2017 - 11:48 AM Edited by MMK_033, 29 August 2017 - 11:57 AM.

Why not use my python script? o_O

 

Uh, never mind :rol: . I thought this script doesn't work properly with custom timecyc.dat files saved by Ingame Timecyc Editor. Sometimes it saves color values as -100, -50, -30 etc. So I did that table, but now I found out that for this case you just need to clear the header of input timecycle file till:

//////////// EXTRASUNNY_LA

The Hero
  • The Hero

    Into TheGame!!!

  • Feroci
  • Joined: 25 Jan 2005
  • Germany
  • Most Helpful Modding 2016 [Honorable mention]
    Best Script or Plugin 2016 [SkyGfx]
    Contribution Award [Mods]

#63

Posted 29 August 2017 - 11:57 AM

You can also modify the python script if you see any bugs. I only used it with console timecyc.dat files as these are the ones that aren't broken. I don't care about the PC timecyc.dat but you can hack it however you like.

MMK_033
  • MMK_033

    Потраченн&

  • Members
  • Joined: 05 Apr 2016
  • Russia

#64

Posted 29 August 2017 - 12:05 PM

You can also modify the python script if you see any bugs. I only used it with console timecyc.dat files as these are the ones that aren't broken. I don't care about the PC timecyc.dat but you can hack it however you like.

I ain't into that language much so I don't really have any particular idea how to fix this issue, but I see that you can change this:

w.append(interpolate(lines[7], lines[0], 2.0/3.0)) # 11pm

to this:

w.append(interpolate(lines[7], lines[0], 1.0/2.0)) # 11pm

to make it more accurate at calculating settings for 23:00 time line.

  • The Hero, Blackbird88 and mirh like this

The Hero
  • The Hero

    Into TheGame!!!

  • Feroci
  • Joined: 25 Jan 2005
  • Germany
  • Most Helpful Modding 2016 [Honorable mention]
    Best Script or Plugin 2016 [SkyGfx]
    Contribution Award [Mods]

#65

Posted 29 August 2017 - 12:09 PM

Oh sh*t, you're right. That was a bug. Fixed now, thanks!
  • Blackbird88, Rachel Amber, MMK_033 and 1 other like this

kkjj
  • kkjj

    The ORIGINAL GTA SAN ANDREAS PLAYER..

  • Members
  • Joined: 20 Jul 2016
  • None

#66

Posted 29 August 2017 - 01:02 PM

I want to convert my timecyc.dat into 24h format but I don't know how to use the python script??
Can someone please help me..

Dyabda
  • Dyabda

    Incognita

  • Members
  • Joined: 12 Jul 2017
  • None

#67

Posted 29 August 2017 - 11:38 PM Edited by Dyabda, 29 August 2017 - 11:42 PM.

Forgive me for my stupidity.
Do I need to rename the file timecyc_24.dat in timecycp.dat?

LaDiDa
  • LaDiDa

    I'm only human

  • Members
  • Joined: 12 Jul 2016
  • Netherlands

#68

Posted 30 August 2017 - 05:17 AM


Forgive me for my stupidity.
Do I need to rename the file timecyc_24.dat in timecycp.dat?


No.

Dyabda
  • Dyabda

    Incognita

  • Members
  • Joined: 12 Jul 2017
  • None

#69

Posted 30 August 2017 - 05:28 AM

 

Forgive me for my stupidity.
Do I need to rename the file timecyc_24.dat in timecycp.dat?


No.

 

It should be left as it is?


Inadequate
  • Inadequate

    Midnight Emulator

  • Members
  • Joined: 11 Apr 2012
  • None

#70

Posted 30 August 2017 - 05:48 AM

It should be left as it is?

Yes.


kkjj
  • kkjj

    The ORIGINAL GTA SAN ANDREAS PLAYER..

  • Members
  • Joined: 20 Jul 2016
  • None

#71

Posted 30 August 2017 - 01:30 PM

I want to convert my timecyc.dat into 24h format but I don't know how to use the python script??
Can someone please help me..

Anyone??

Inadequate
  • Inadequate

    Midnight Emulator

  • Members
  • Joined: 11 Apr 2012
  • None

#72

Posted 30 August 2017 - 02:13 PM

Read the main post, everything you need to know is there.

kkjj
  • kkjj

    The ORIGINAL GTA SAN ANDREAS PLAYER..

  • Members
  • Joined: 20 Jul 2016
  • None

#73

Posted 30 August 2017 - 04:37 PM Edited by kkjj, 30 August 2017 - 04:38 PM.

Read the main post, everything you need to know is there.

But I don't know how to do that.
I can't understand anything..
It is so remote for me..
Please help.

Ash_735
  • Ash_735

  • Members
  • Joined: 15 Nov 2005
  • None
  • Contribution Award [GTAF Weekly]
    Contribution Award [Mods]
    Most Knowledgeable [GTA] 2013
    Best Map 2013 "ViceCityStories PC Edition"

#74

Posted 30 August 2017 - 04:56 PM

Ok, important question, are you going to be doing anything with the exported 24h timecyc or just use that in your game?

If you're just going to use the outputted one as is, then you really don't need this, it won't magically make 8hour timecycs all vibrant and unique, the converter acts as a BASE to then edit from.
  • Rachel Amber likes this

kkjj
  • kkjj

    The ORIGINAL GTA SAN ANDREAS PLAYER..

  • Members
  • Joined: 20 Jul 2016
  • None

#75

Posted 30 August 2017 - 05:08 PM

Ok, important question, are you going to be doing anything with the exported 24h timecyc or just use that in your game?

If you're just going to use the outputted one as is, then you really don't need this, it won't magically make 8hour timecycs all vibrant and unique, the converter acts as a BASE to then edit from.

I want to edit the sun color hour by hour to make it realistic..
And this the thing that I am searching..

MMK_033
  • MMK_033

    Потраченн&

  • Members
  • Joined: 05 Apr 2016
  • Russia

#76

Posted 30 August 2017 - 05:43 PM Edited by MMK_033, 30 August 2017 - 06:02 PM.

I want to convert my timecyc.dat into 24h format but I don't know how to use the python script??
Can someone please help me..

1. Extract this script and your timecyc.dat to your user folder (the path is something like "C:\Users\%USER_NAME%")

2. Press Start (Windows) button, find cmd.exe and run it (but don't run it "as admin" for this case).

3. If you see the last string displaying your user folder path, type there the next:

timecycle_sa_to24h.py timecyc.dat > timecyc_24h.dat

You should get something like this:

C:\Users\%USER_NAME%>timecycle_sa_to24h.py timecyc.dat > timecyc_24h.dat

Press Enter after you did all the previous steps, you'll get the new converted timecyc_24h.dat file in the same folder when it's done.

Try to download and install this if it doesn't work.

 

-----

 

P.S. As I mentioned before, if you have your timecyc.dat edited by Ingame Timecyc Editor, just open it with Notepad and remove the header before you use the script to convert it to 24-hour format. This is neccessary to avoid some issues while converting. The file should start from:

//////////// EXTRASUNNY_LA
//Amb Amb_Obj Dir...
//Midnight
...
  • kkjj likes this

The Hero
  • The Hero

    Into TheGame!!!

  • Feroci
  • Joined: 25 Jan 2005
  • Germany
  • Most Helpful Modding 2016 [Honorable mention]
    Best Script or Plugin 2016 [SkyGfx]
    Contribution Award [Mods]

#77

Posted 30 August 2017 - 08:18 PM

I think it needs python2 btw, but I'm not sure. I don't know what the issue with the ingame timecyc editor is, never seen what kind files it produces. I saw i didn't handle empty lines correctly though. It should be fine now, but see for yourself.

kkjj
  • kkjj

    The ORIGINAL GTA SAN ANDREAS PLAYER..

  • Members
  • Joined: 20 Jul 2016
  • None

#78

Posted 31 August 2017 - 02:41 AM

I want to convert my timecyc.dat into 24h format but I don't know how to use the python script??
Can someone please help me..

1. Extract this script and your timecyc.dat to your user folder (the path is something like "C:\Users\%USER_NAME%")
2. Press Start (Windows) button, find cmd.exe and run it (but don't run it "as admin" for this case).
3. If you see the last string displaying your user folder path, type there the next:
timecycle_sa_to24h.py timecyc.dat > timecyc_24h.dat
You should get something like this:
C:\Users\%USER_NAME%>timecycle_sa_to24h.py timecyc.dat > timecyc_24h.dat
Press Enter after you did all the previous steps, you'll get the new converted timecyc_24h.dat file in the same folder when it's done.
Try to download and install this if it doesn't work.
 
-----
 
P.S. As I mentioned before, if you have your timecyc.dat edited by Ingame Timecyc Editor, just open it with Notepad and remove the header before you use the script to convert it to 24-hour format. This is neccessary to avoid some issues while converting. The file should start from:
//////////// EXTRASUNNY_LA
//Amb Amb_Obj Dir...
//Midnight
...
Thank you Soo much..
  • MMK_033 likes this

MMK_033
  • MMK_033

    Потраченн&

  • Members
  • Joined: 05 Apr 2016
  • Russia

#79

Posted 31 August 2017 - 06:13 AM Edited by MMK_033, 31 August 2017 - 06:14 AM.

I think it needs python2 btw, but I'm not sure. I don't know what the issue with the ingame timecyc editor is, never seen what kind files it produces. I saw i didn't handle empty lines correctly though. It should be fine now, but see for yourself.

The update works fine, gotta say. The problem with "-100" color values is seems to be fixed now.

There's no major difference in file formatting of IGTE-timecyc with original timecyc, it just have the 3-string header generated (including indent):

 

9f5aab4f5b33.jpg


The Hero
  • The Hero

    Into TheGame!!!

  • Feroci
  • Joined: 25 Jan 2005
  • Germany
  • Most Helpful Modding 2016 [Honorable mention]
    Best Script or Plugin 2016 [SkyGfx]
    Contribution Award [Mods]

#80

Posted 31 August 2017 - 07:17 AM

The script inserted some negative values where the line couldn't be parsed properly so the errors would stand out. Concerning the header, I think I just didn't handle empty lines correctly. Since they don't occur in the original files I hadn't considered the case.

Junior_Djjr
  • Junior_Djjr

    Modding Lover

  • Members
  • Joined: 16 Dec 2011
  • Brazil
  • Best Map 2016 [San Andreas INSANITY] [Contribution]

#81

Posted 31 August 2017 - 05:40 PM

I'm using this mod to create a timecycle that the night starts early (so remembering how it is in several countries). Before the result was bad, now everything was possible. :)

 

But my idea still has a problem: what is the memory address where I can change the time when night vertex color starts? I searched a little but without success. You should know, since you worked with it on SkyGfx.


The Hero
  • The Hero

    Into TheGame!!!

  • Feroci
  • Joined: 25 Jan 2005
  • Germany
  • Most Helpful Modding 2016 [Honorable mention]
    Best Script or Plugin 2016 [SkyGfx]
    Contribution Award [Mods]

#82

Posted 31 August 2017 - 06:08 PM Edited by The Hero, 31 August 2017 - 06:08 PM.

The function at 0x5D7F80

From IDA:
Spoiler
  • Junior_Djjr, mirh and Rachel Amber like this

Junior_Djjr
  • Junior_Djjr

    Modding Lover

  • Members
  • Joined: 16 Dec 2011
  • Brazil
  • Best Map 2016 [San Andreas INSANITY] [Contribution]

#83

Posted 31 August 2017 - 06:46 PM

Thanks :p
 
This code is in some .idb or was it rewritten separately?
The .idb that I use is horrible...

Spoiler

The Hero
  • The Hero

    Into TheGame!!!

  • Feroci
  • Joined: 25 Jan 2005
  • Germany
  • Most Helpful Modding 2016 [Honorable mention]
    Best Script or Plugin 2016 [SkyGfx]
    Contribution Award [Mods]

#84

Posted 31 August 2017 - 06:55 PM

It's my idb which I initially got from Silent when I started modding SA with skygfx.
http://aap.papnet.eu...re/gta_sa_2.idb
You need IDA 6.8
  • Junior_Djjr, Crspy and Rachel Amber like this

Junior_Djjr
  • Junior_Djjr

    Modding Lover

  • Members
  • Joined: 16 Dec 2011
  • Brazil
  • Best Map 2016 [San Andreas INSANITY] [Contribution]

#85

Posted 31 August 2017 - 07:11 PM

Very different from mine (downloaded somewhere from fastman92 / DK22Pac weeks ago). It will help me a lot :)


Alex_00700
  • Alex_00700

    Player Hater

  • Members
  • Joined: 21 Jul 2017
  • Russia

#86

Posted 11 September 2017 - 03:36 PM Edited by Alex_00700, 11 September 2017 - 03:37 PM.

why when I teleport in Marco's Bistro across enex marker the sky is becoming black? and if i teleport ago the sky remains black.

iI1T_5r1RB_KMoQDIEUecw.png

5hL8iPkHS6_Vw4XhXCGi0A.png


Ash_735
  • Ash_735

  • Members
  • Joined: 15 Nov 2005
  • None
  • Contribution Award [GTAF Weekly]
    Contribution Award [Mods]
    Most Knowledgeable [GTA] 2013
    Best Map 2013 "ViceCityStories PC Edition"

#87

Posted 11 September 2017 - 03:42 PM

Have you changed anything?

Alex_00700
  • Alex_00700

    Player Hater

  • Members
  • Joined: 21 Jul 2017
  • Russia

#88

Posted 11 September 2017 - 03:49 PM

Have you changed anything?

No, but i noticed that if I lost any story mission, the bug disappears.


spartaque12
  • spartaque12

    Peon

  • Members
  • Joined: 11 Feb 2012
  • Ukraine

#89

Posted 13 September 2017 - 12:22 AM

i dunno why but my game crashes on compact/hoodlum cracks :/

http://www.mediafire.../CrashDumps.rar

https://pastebin.com/fVk0JdxZ


Nitrous~
  • Nitrous~

    :^)

  • Members
  • Joined: 08 Sep 2014
  • Mexico

#90

Posted 09 October 2017 - 09:25 PM

Wanted to use this but needs python. Hell no buddy miss me with that sh*t. but nice work on the timecyc :D





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users