Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    2. News

    1. Red Dead Redemption 2

    1. GTA Online

      1. After Hours
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

fastman92

[GTASA] In-game timecyc editor

Recommended Posts

boxmonster

Good work, man. Though, the biggest problem I have with this is that I can only edit a time 30 in-game minutes later. So it has to be 6:30 for me to edit 6:00 weather.

Share this post


Link to post
Share on other sites
fastman92

 

Good work, man. Though, the biggest problem I have with this is that I can only edit a time 30 in-game minutes later. So it has to be 6:30 for me to edit 6:00 weather.

It`s correct. Really 6AM isn`t meant to started at 6:00 in game.

Proof:

 

.data:008CDECC     _timeCycleStartHours db 0                  ; 0.data:008CDECC                                            ; DATA XREF: sub_5603D0:loc_56056Fr.data:008CDECC                                            ; sub_5603D0:loc_56051Br.data:008CDECC                                            ; sub_5603D0+1A6r.data:008CDECC                                            ; sub_5603D0:loc_560540r.data:008CDECC                     db 5                  ; 1.data:008CDECC                     db 6                  ; 2.data:008CDECC                     db 7                  ; 3.data:008CDECC                     db 12                  ; 4.data:008CDECC                     db 19                  ; 5.data:008CDECC                     db 20                  ; 6.data:008CDECC                     db 22                  ; 7.data:008CDECC                     db 24                  ; 8.data:008CDED5                     db    0.data:008CDED6                     db    0.data:008CDED7                     db    0.data:008CDED8    ; byte timeCycleStartMinutes[8].data:008CDED8     _timeCycleStartMinutes db 30                  ; 0.data:008CDED8                                            ; DATA XREF: sub_5603D0+FDAr.data:008CDED8                                            ; sub_5603D0+FE5r.data:008CDED8                     db 30                  ; 1.data:008CDED8                     db 30                  ; 2.data:008CDED8                     db 50                  ; 3.data:008CDED8                     db 60                  ; 4.data:008CDED8                     db 60                  ; 5.data:008CDED8                     db 50                  ; 6.data:008CDED8                     db 35                  ; 7

 

See the second (2) cycle, third cycle in game starting from 1.

Start hour = 6

Star minute = 30

Share this post


Link to post
Share on other sites
boxmonster

That's interesting, I did an experiment setting 6:00 sky color to pure red and 7:00 to pure green, 6:30 came out with a yellow, which would seem to suggest it is in between the two and not a key time.

user posted image

user posted image

user posted image

Edited by boxmonster

Share this post


Link to post
Share on other sites
fastman92

 

That's interesting, I did an experiment setting 6:00 sky color to pure red and 7:00 to pure green, 6:30 came out with a yellow, which would seem to suggest it is in between the two and not a key time.

user posted image

user posted image

user posted image

Thank you for your contribution. Adresses that i posted apparently determine half time (50%) of cycle.

In-game Timecyc Editor 1.2 is going to be released today.

 

 

Cycle ID & name Half time Half time measured in minutes Starting time
0: Midnight 0:30 30 0:00
1: 5AM 5:30 330 5:00
2: 6AM 6:30 390 6:00
3: 7AM 7:50 470 7:00
4: Midday 12:60 780 12:00
5: 7PM 19:60 1200 19:00
6: 8PM 20:50 1250 20:00
7: 10PM 22:35 1355 22:00
Edited by fastman92

Share this post


Link to post
Share on other sites
Jacko427

Fastman92, I found an anoying bug with your in-game timecyc editor.

Once saved with your tool, all Illumination will be gone.

So the game becomes ugly again without Illumination.

And I have to add the Illumination manually at every end of the line confused.gif

Share this post


Link to post
Share on other sites
fastman92

It's disabled until you enable it in CLEO\TimecycEditor.ini under name WriteIllumination, set it true, 1 or yes.

The reason why it's disabled by default is simple - other Timecyc editors e.g TimecycSA will crash when trying to edit generated file with saved illumination and people will complain on this.

It's not bug. It's a feature.

Share this post


Link to post
Share on other sites
Jacko427

 

It's disabled until you enable it in CLEO\TimecycEditor.ini under name WriteIllumination, set it true, 1 or yes.

The reason why it's disabled by default is simple - other Timecyc editors e.g TimecycSA will crash when trying to edit generated file with saved illumination and people will complain on this.

It's not bug. It's a feature.

Ah, so that's why TimeCycSA is crashing when opening a timecyc with Illumination.

Never knew about that.

Thank you very much for clearing that up.

 

Tho' I have never complained about this.

In the end after reinstalled Windows, I copied and paste the timecyc with that generated Illumination.

Before I added that, it opened fine.

I had some suspicion since I added it.

Edited by Jacko427

Share this post


Link to post
Share on other sites
fastman92

Version 1.3 released:

- added indicators for intensity of taken values from current and next cycle the way interpolation works.

When it`s start of time - 100% intensity of current cycle values, 0% intensity of next cycle values

- fixed stopping of time - time wasn`t stopped according to icon, but in fact it was, caused by cmp dword ptr [_IsTimeStopped], 0

instead of cmp byte ptr [_IsTimeStopped], 0

Edited by fastman92

Share this post


Link to post
Share on other sites
Midnightz

This is amazing! I hope you will make it compatible with CLEO 3 and compact.EXE in the future as I would like to be able to use it too. biggrin.gif

Share this post


Link to post
Share on other sites
fastman92

 

This is amazing!  I hope you will make it compatible with CLEO 3 and compact.EXE in the future as I would like to be able to use it too.  biggrin.gif

Perhaps.

 

Version 1.4 released.

Changes:

- added possibility to rotate around player/vehicle using X key (configurable within .ini file),

it took a lot of time to get it finally working, part of ASM code had to be written for that

 

You can rotate camera of player/vehicle, just hold X and rotate it using mouse.

Mouse cursor will be temporarily locked and camera will move around. Release X to unlock cursor. Very simple to understand.

Now camera won`t be messed up and also you can rotate it freely. As always my project is

 

Fully compatible with GTA San Andreas v1.0 [uS] HOODLUM No-CD Fixed EXE & GTA: San Andreas v1.01 [EURO] No-CD/Fixed EXE

 

Download:

http://www.mediafire.com/?fyebx2dad8u64r4

Edited by fastman92

Share this post


Link to post
Share on other sites
PacketOverload_x64bit

Can't wait to try this one out. Thank you good sir.

Share this post


Link to post
Share on other sites
Jacko427

I have found out which parameters is used to make the weathers more bright or less bright.

It's the Alpha of the Color Corrections.

The higher the number, the brighter the weather will be.

I suggest:

 

Color Correction 1

Alpha 80

 

Color Correction 2

Alpha 40

 

Of course it depends on anyone's taste.

Share this post


Link to post
Share on other sites
fastman92

I released version 1.6, it`s compatible with CLEO3, but TimecycEditor.ini won`t be read on CLEO3. Static configuration will be applied:

 

 

   else   RotateCameraKey = 220   // slash   EnablePossibilityToStopTime = true   gosub @Patch_CClock__Update   WriteIllumination = true   end

 

Share this post


Link to post
Share on other sites
_CP_

Nice! Are you have a plan to move it into IV.

Edited by City_Poke912

Share this post


Link to post
Share on other sites
fastman92

Your English is not good.

 

I`m currently working on In-game Timecyc Editor 1.0 for GTA VC, it`s in early stages and will take some time.

I have a GTA IV and i plan to make it .NET script soon.

Share this post


Link to post
Share on other sites
Swoorup

The mod is so much cool. Especially the interface. biggrin.gif

Would be possible to allow things such as those into objects so that it would be usable through some external scripts. Making forms, windows, labels, Buttons inside the game itself?

 

Well, I think Hazard has already done this, but I cant conform cause I dont have IV

Share this post


Link to post
Share on other sites
fastman92
The mod is so much cool. Especially the interface. biggrin.gif

Would be possible to allow things such as those into objects so that it would be usable through some external scripts. Making forms, windows, labels, Buttons inside the game itself?

 

Well, I think Hazard has already done this, but I cant conform cause I dont have IV

These buttons are simply textures in version for GTA SA.

To detect whether user has clicked on button simple math is used.

Rectangle texture has position XY and size XY.

There is mouse position XY too.

So it does size x and size y divides / 2.

Checks if distance between X of texture and mouse is lower than texture sizeX / 2

Checks distance between Y of texture and mouse is lower than texture sizeY / 2.

If so - cursor is on texture.

 

There is source in archive.

 

Regarding IV i don`t have experience to answer your question.

Share this post


Link to post
Share on other sites
leod
make this for iv

+9957756346365354364353

 

pleeease do it for GTA IV!

 

Share this post


Link to post
Share on other sites
nWo51289

I've just tried to use v1.6 but it keeps on saying that "TimecycEditor.ini has not been read". My UAC settings are at its lowest and I've got full admin rights to my SA directory. Version 1 works fine, I haven't tried any other version.

Share this post


Link to post
Share on other sites
fastman92
I've just tried to use v1.6 but it keeps on saying that "TimecycEditor.ini has not been read". My UAC settings are at its lowest and I've got full admin rights to my SA directory. Version 1 works fine, I haven't tried any other version.

You must use CLEO4 and make sure that all of following statemens are true:

- CLEO\GxtHook.cleo doesn't exist (CLEO4 doesn't need it, timecyc editor checks for its existence)

- CLEO\IniFiles.cleo exists

- CLEO\TimecycEditor.ini exists

 

3 statements must be true.

I think you probably didn't remove GxtHook.cleo and that is why.

Share this post


Link to post
Share on other sites
nWo51289

Yup its CLEO4, GxtHook.cleo doesn't exist, IniFiles.cleo exists & TimecycEditor.ini exists. Still getting the problem (did have GxtHook.cleo but tried without it and still getting the error)

Share this post


Link to post
Share on other sites
fastman92

 

Yup its CLEO4, GxtHook.cleo doesn't exist, IniFiles.cleo exists & TimecycEditor.ini exists. Still getting the problem (did have GxtHook.cleo but tried without it and still getting the error)

Show me your CLEO directory (screenshot or dir >> dump.txt in command prompt)

Do you use MPACK?

What happens if you put to GTA San Andreas User Files:

- CLEO\IniFiles.cleo

- CLEO\TimecycEditor.ini

Share this post


Link to post
Share on other sites
nWo51289

user posted image

 

Yeah I use MPACK, tried that and now its telling me the ini has been read, but I can't click on anything (adjust parameters etc)

Share this post


Link to post
Share on other sites
fastman92

Can you e.g scroll in menu. Can you use arrow keys. Is clicking right everything what you can't do?

Is cursor drawn in screen?

It's late at the mine and i'll log on GTAF tommorow. I can send you testing scripts to find out the essence of the problem as well.

 

Btw. you have a nice WinMacX biggrin.gif

Edited by fastman92

Share this post


Link to post
Share on other sites
nWo51289

Yup I can use the up/down arrow keys. The cursor appears on the screen, its just left clicking with the mouse that is the problem. Thanks for the help, appreciate it!

 

lol Thanks! A theme for sad people like me biggrin.gif

Share this post


Link to post
Share on other sites
fastman92

In-game Timecyc Editor 1.7 is out.

There are many minor changes.

 

** 1.7 version:

- Fully compatible with CLEO3 now.

- I noticed that ColourAdd2 incorrectly pointed red, to ColourCorrect1. Fixed

- fixed possible problem with timers

- added cominuque whether timecyc.dat has been saved successfully or failure happened

- In-game Timecyc Editor has been Integrated with GTA Palette & Mouse SCM API

- added possibility to write a custom nick(name) to timecyc.dat. Configurable in .ini file

 

@nWo51289, i want to fix this problem that might occur for more end-users. Please cooperate with me soon.

Share this post


Link to post
Share on other sites
ZAZ

Excellent work fastman92 cookie.gifcookie.gifcookie.gif

have tested 1.7 on cleo3

one little problem remains:

I loaded timecyc.dat which have on options STATIC, DYNAMIC, SKY..., HSV: value: 5%

then i click into color field and then HSV: value changes to 100%

ok, i decrease HSV: value to 5%

but when i click then again into color field, the HSV: value changes again to 100%

very difficult to make proper settings when HSV: value always changes again to 100%

Share this post


Link to post
Share on other sites
fastman92

 

Excellent work fastman92  cookie.gif  cookie.gif  cookie.gif

have tested 1.7 on cleo3

one little problem remains:

I loaded timecyc.dat which have on options STATIC, DYNAMIC, SKY...,  HSV: value: 5%

then i click into color field and then HSV: value changes to 100%

ok, i decrease HSV: value to 5%

but when i click then again into color field, the HSV: value changes again to 100%

very difficult to make proper settings when HSV: value always changes again to 100%

That's what red/green voting button is made for.

If it's GREEN - clicking on palette will change Value into 100%, else RED - value won't changed.

 

user posted image

or

user posted image

 

Color field? Actually it's called circular color palette.

 

Thanks for testing.

Edited by fastman92

Share this post


Link to post
Share on other sites
ZAZ

ah yes, works fine

and of course i meant circular color palette biggrin.gif

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.