Quantcast

Jump to content

» «
Photo

Vice City Stories GAME.DTZ

10 replies to this topic
guard3
  • guard3

    Liberty City's Finest

  • Members
  • Joined: 21 Jul 2013
  • Greece

#1

Posted A week ago Edited by guard3, A week ago.

Hi everyone!

It always annoyed me that Vice City Stories seems neglected. The "mystery" file "GAME.DTZ" has all the game info and there's no documentation about it (LCS one is only at russian forums, and mobile version already exists) so, I thought I could share what I've found (which is very little and unimportant). I'm a newbie to hex editing, so if my terminology is wrong, I apologise. If anyone would like to share some info about this, please post it :) Do recognise that I'm a newbie and thats my "note keeping

OFFSET|SIZE in hex| DESCRIPTION (LE=Little-Endian aka original data is backwards)

.dtz is compressed using zlib/deflate algorithm. Everything has to do with the decompressed version

BLOCK OFFSETS - HEADER:
0x000000 (4): LE value=47544147 "GTAG" signature
0x000004 (4): LE value=1 ?
0x000008 (4): LE value=6495D0 size of decompressed .dtz file (6.591.952 bytes)
0x00000C (4): LE value=5A69B0 ?
0x000010 (4): LE value=5B5290 ?
0x000014 (4): LE value=250D0 ?
0x000018 (4): LE value=5A69B0 ?
0x00001C (4): LE value=163A22 ?

BLOCK OFFSETS - INITIAL:
0x000020 (4): LE value=346570  ? βλ 0x6035AC  ;)
0x000024 (4): LE value=4C9860  offset to Buildings.ipl
0x000028 (4): LE value=4C9880  offset to Treadables.ipl
0x00002C (4): LE value=4C9820  offset to Dummys.ipl
0x000030 (4): LE value=4C9840  offset to EntryInfoNode.ipl
0x000034 (4): LE value=4C9900  offset to PtrNode.ipl
0x000038 (4): LE value=1F05    unused/unknown
0x00003C (4): LE value=3B64C8  ? interesting (maybe more than one thing, has many 00s in between)
0x000040 (4): LE value=345E14  ? 
0x000044 (4): LE value=4C81B8  ? (seems to cut pedstats.dat in half !!!)
0x000048 (4): LE value=4CBEB0  ?
0x00004C (4): LE value=3F6E90  ?
0x000050 (4): LE value=4C98F0  ? must have some offsets to ipls, though not sure
0x000054 (4): LE value=2AE     unused/unknown
0x000058 (4): LE value=52D260  ?
0x00005C (4): LE value=33B800  ?
0x000060 (4): LE value=4CAA90  ?
0x000064 (4): LE value=0       unused/unknown
0x000068 (4): LE value=40964C  ?
0x00006C (4): LE value=0       unused/unknown
0x000070 (4): LE value=174D20  ?
0x000074 (4): LE value=452480  offset to object.dat
0x000078 (4): LE value=4CB3F8  ?
0x00007C (4): LE value=4AE0F0  ?
0x000080 (4): LE value=185890  ? (animaaaations???)
0x000084 (4): LE value=3EA9F0  ? 
0x000088 (4): LE value=4CB7C8  ?
0x00008C (4): LE value=4CC250  ?
0x000090 (4): LE value=174F00  ?
0x000094 (4): LE value=176AB0  ?
0x000098 (4): LE value=277     unused/unknown
0x00009C (4): LE value=3436A4  ?
0x0000A0 (4): LE value=0       unused/unknown
0x0000A4 (4): LE value=0       unused/unknown
0x0000A8 (4): LE value=419170  offset to waterpro.dat
0x0000AC (4): LE value=185690  offset to weather types list
0x0000B0 (4): LE value=4CBB50  ?
0x0000B4 (4): LE value=5931E0  offset to timecyc.dat
0x0000B8 (4): LE value=3EF590  ?
0x0000BC (4): LE value=3B3660  offset to particle.cfg
0x0000C0 (4): LE value=3828B4  ?
0x0000C4 (4): LE value=0       unused/unknown
0x0000C8 (4): LE value=3B2DBC  ?
0x0000CC (4): LE value=5929F0  offset to block containing offset to mocap
0x0000D0 (4): LE value=7FFEB90 unused/unknown
0x0000D4 (4): LE value=0       unused/unknown
0x0000D8 (4): LE value=3F2F28  ?
0x0000DC (4): LE value=0       unused/unknown 
0x0000E0 (4): LE value=581330  offset to zlib/deflate compressed frontend.tex
0x0000E4 (4): LE value=4CB7A0  ?
0x0000E8 (4): LE value=4C6714  ?
0x0000EC (4): LE value=3F0750  ?
0x0000F0 (4): LE value=8       unused/unknown 
0x0000F4 (4): LE value=4CB0C0  ?
0x0000F8 (4): LE value=28718   size of decompressed fonts.tex (165.656 bytes)
0x0000FC (4): LE value=57BE4C  offset to zlib/deflate compressed fonts.tex
0x000100 (4): LE value=592664  offset to block containing offsets to radarNN.tex

BLOCK OFFSETS - RADAR:
0x592664 (4): LE value=5928E0 offset to zlib/deflate compressed radar00.tex
0x592668 (4): LE value=56DD34 offset to zlib/deflate compressed radar01.tex
0x59266C (4): LE value=56DF10 offset to zlib/deflate compressed radar02.tex
0x592670 (4): LE value=56E214 offset to zlib/deflate compressed radar03.tex
0x592674 (4): LE value=59296C offset to zlib/deflate compressed radar04.tex
0x592678 (4): LE value=591F24 offset to zlib/deflate compressed radar05.tex
0x59267C (4): LE value=591FA8 offset to zlib/deflate compressed radar06.tex
0x592680 (4): LE value=59202C offset to zlib/deflate compressed radar07.tex
0x592684 (4): LE value=56C000 offset to zlib/deflate compressed radar08.tex
0x592688 (4): LE value=56CIB4 offset to zlib/deflate compressed radar09.tex
0x59268C (4): LE value=56CD84 offset to zlib/deflate compressed radar10.tex
0x592690 (4): LE value=56C5D0 offset to zlib/deflate compressed radar11.tex
0x592694 (4): LE value=56E3FC offset to zlib/deflate compressed radar12.tex
0x592698 (4): LE value=56D658 offset to zlib/deflate compressed radar13.tex
0x59269C (4): LE value=5920B0 offset to zlib/deflate compressed radar14.tex
0x5926A0 (4): LE value=592134 offset to zlib/deflate compressed radar15.tex
0x5926A4 (4): LE value=5921B8 offset to zlib/deflate compressed radar16.tex
0x5926A8 (4): LE value=56EB68 offset to zlib/deflate compressed radar17.tex
0x5926AC (4): LE value=56EE58 offset to zlib/deflate compressed radar18.tex
0x5926B0 (4): LE value=56F508 offset to zlib/deflate compressed radar19.tex
0x5926B4 (4): LE value=56FB34 offset to zlib/deflate compressed radar20.tex
0x5926B8 (4): LE value=570404 offset to zlib/deflate compressed radar21.tex
0x5926BC (4): LE value=59223C offset to zlib/deflate compressed radar22.tex
0x5926C0 (4): LE value=5922C0 offset to zlib/deflate compressed radar23.tex
0x5926C4 (4): LE value=592764 offset to zlib/deflate compressed radar24.tex
0x5926C8 (4): LE value=570834 offset to zlib/deflate compressed radar25.tex
0x5926CC (4): LE value=570CF0 offset to zlib/deflate compressed radar26.tex
0x5926D0 (4): LE value=571454 offset to zlib/deflate compressed radar27.tex
0x5926D4 (4): LE value=572274 offset to zlib/deflate compressed radar28.tex
0x5926D8 (4): LE value=5718D4 offset to zlib/deflate compressed radar29.tex
0x5926DC (4): LE value=592344 offset to zlib/deflate compressed radar30.tex
0x5926E0 (4): LE value=5923C8 offset to zlib/deflate compressed radar31.tex
0x5926E4 (4): LE value=571DA8 offset to zlib/deflate compressed radar32.tex
0x5926E8 (4): LE value=572E94 offset to zlib/deflate compressed radar33.tex
0x5926EC (4): LE value=5736BC offset to zlib/deflate compressed radar34.tex
0x5926F0 (4): LE value=573E84 offset to zlib/deflate compressed radar35.tex
0x5926F4 (4): LE value=5744BC offset to zlib/deflate compressed radar36.tex
0x5926F8 (4): LE value=574FD0 offset to zlib/deflate compressed radar37.tex
0x5926FC (4): LE value=592454 offset to zlib/deflate compressed radar38.tex
0x592700 (4): LE value=5924D8 offset to zlib/deflate compressed radar39.tex
0x592704 (4): LE value=575484 offset to zlib/deflate compressed radar40.tex
0x592708 (4): LE value=5758B8 offset to zlib/deflate compressed radar41.tex
0x59270C (4): LE value=576034 offset to zlib/deflate compressed radar42.tex
0x592710 (4): LE value=5766E0 offset to zlib/deflate compressed radar43.tex
0x592714 (4): LE value=576C28 offset to zlib/deflate compressed radar44.tex
0x592718 (4): LE value=577970 offset to zlib/deflate compressed radar45.tex
0x59271C (4): LE value=59255C offset to zlib/deflate compressed radar46.tex
0x592720 (4): LE value=5925E0 offset to zlib/deflate compressed radar47.tex
0x592724 (4): LE value=577CC4 offset to zlib/deflate compressed radar48.tex
0x592728 (4): LE value=578238 offset to zlib/deflate compressed radar49.tex
0x59272C (4): LE value=5789B4 offset to zlib/deflate compressed radar50.tex
0x592730 (4): LE value=57930C offset to zlib/deflate compressed radar51.tex
0x592734 (4): LE value=579F88 offset to zlib/deflate compressed radar52.tex
0x592738 (4): LE value=579C84 offset to zlib/deflate compressed radar53.tex
0x59273C (4): LE value=591D98 offset to zlib/deflate compressed radar54.tex
0x592740 (4): LE value=592860 offset to zlib/deflate compressed radar55.tex
0x592744 (4): LE value=56DAA0 offset to zlib/deflate compressed radar56.tex
0x592748 (4): LE value=57216C offset to zlib/deflate compressed radar57.tex
0x59274C (4): LE value=57A8E4 offset to zlib/deflate compressed radar58.tex
0x592750 (4): LE value=57ACC0 offset to zlib/deflate compressed radar59.tex
0x592754 (4): LE value=57B260 offset to zlib/deflate compressed radar60.tex
0x592758 (4): LE value=57BA38 offset to zlib/deflate compressed radar61.tex
0x59275C (4): LE value=591E1C offset to zlib/deflate compressed radar62.tex
0x592760 (4): LE value=591EA0 offset to zlib/deflate compressed radar63.tex

BLOCK OFFSETS - MOCAP:
0x5929F0 (4): LE value=5385B0 offset to mocapps2.dir

DATA OFFSETS:
0x000104 (286AC): fonts.tex
0x0287B0 (2B230): hud.tex
0x0539E0 (22810): generic.tex
0x0761F0   (tba): particle.tex
0x165EA4  (EE7C): ? (maybe default.ide part 1)
0x174D20   (1E0): ?
0x174F00  (1BB0): ?
0x176AB0  (EBE0): ?
0x185690   (200): 254 2-byte weather types list
0x185890 (1B5F70):?
0x33B800  (7DA4): ?
0x3436A4  (2870): ?
0x345E14   (75C): ?
0x346570 (3C344): ? 
0x3828B4  ?
0x3B2DBC  ?
0x3B3660  (2E68): particle.cfg
0x3B64C8
0x3EA9F0  ? 
0x3EF590  ?
0x3F0750  ?
0x3F2F28  ?
0x3F6E90  ?
0x40964C  ?
0x419170  offset to waterpro.dat
0x452480  offset to object.dat
0x4AE0F0  ?
0x4C6714  ?
0x4C81B8  ? 
0x4C9820  
0x4C9840
0x4C9860  
0x4C9880    
0x4C98F0  ? 
0x4C9900  
0x4CAA90  ?
0x4CB0C0  ?
0x4CB3F8  ?
0x4CB7A0  ?
0x4CB7C8  ?
0x4CBB50  ?
0x4CBEB0  ?
0x4CC250  ?
0x52D260 (3EDA0): ?
0x5385B0  (1260): mocapps2.dir
0x56C000   (1B4): zlib/deflate compressed radar08.tex
0x56C1B4   (41C): zlib/deflate compressed radar09.tex
0x56C5d0   (7B4): zlib/deflate compressed radar11.tex
0x56CD84   (8D4): zlib/deflate compressed radar10.tex
0x56D658   (448): zlib/deflate compressed radar13.tex
0x56DAA0   (294): zlib/deflate compressed radar56.tex
0x56DD34   (1DC): zlib/deflate compressed radar01.tex
0x56DF10   (304): zlib/deflate compressed radar02.tex
0x56E214   (1E8): zlib/deflate compressed radar03.tex
0x56E3FC   (76C): zlib/deflate compressed radar12.tex
0x56EB68   (2F0): zlib/deflate compressed radar17.tex
0x56EE58   (6B0): zlib/deflate compressed radar18.tex
0x56F508   (62C): zlib/deflate compressed radar19.tex
0x56FB34   (8D0): zlib/deflate compressed radar20.tex
0x570404   (430): zlib/deflate compressed radar21.tex
0x570834   (4BC): zlib/deflate compressed radar25.tex
0x570CF0   (764): zlib/deflate compressed radar26.tex
0x571454   (480): zlib/deflate compressed radar27.tex
0x5718D4   (4D4): zlib/deflate compressed radar29.tex
0x571DA8   (3C4): zlib/deflate compressed radar32.tex
0x57216C   (108): zlib/deflate compressed radar57.tex
0x572274   (C20): zlib/deflate compressed radar28.tex
0x572E94   (828): zlib/deflate compressed radar33.tex
0x5736BC   (7C8): zlib/deflate compressed radar34.tex
0x573E84   (638): zlib/deflate compressed radar35.tex
0x5744BC   (B14): zlib/deflate compressed radar36.tex
0x574FD0   (4B4): zlib/deflate compressed radar37.tex
0x575484   (434): zlib/deflate compressed radar40.tex
0x5758B8   (77C): zlib/deflate compressed radar41.tex
0x576034   (6AC): zlib/deflate compressed radar42.tex
0x5766E0   (548): zlib/deflate compressed radar43.tex
0x576C28   (D48): zlib/deflate compressed radar44.tex
0x577970   (354): zlib/deflate compressed radar45.tex
0x577CC4   (574): zlib/deflate compressed radar48.tex
0x578238   (77C): zlib/deflate compressed radar49.tex
0x5789B4   (958): zlib/deflate compressed radar50.tex
0x57930C   (978): zlib/deflate compressed radar51.tex
0x579C84   (304): zlib/deflate compressed radar53.tex
0x579F88   (95C): zlib/deflate compressed radar52.tex
0x57A8E4   (3DC): zlib/deflate compressed radar58.tex
0x57ACC0   (5A0): zlib/deflate compressed radar59.tex
0x57B260   (7D8): zlib/deflate compressed radar60.tex
0x57BA38   (414): zlib/deflate compressed radar61.tex
0x57BE4C  (54E4): zlib/deflate compressed fonts.tex
0x581330 (10A68): zlib/deflate compressed frontend.tex
0x591D98    (84): zlib/deflate compressed radar54.tex
0x591E1C    (84): zlib/deflate compressed radar62.tex
0x591EA0    (84): zlib/deflate compressed radar63.tex
0x591F24    (84): zlib/deflate compressed radar05.tex
0x591FA8    (84): zlib/deflate compressed radar06.tex
0x59202C    (84): zlib/deflate compressed radar07.tex
0x5920B0    (84): zlib/deflate compressed radar14.tex
0x592134    (84): zlib/deflate compressed radar15.tex
0x5921B8    (84): zlib/deflate compressed radar16.tex
0x59223C    (84): zlib/deflate compressed radar22.tex
0x5922C0    (84): zlib/deflate compressed radar23.tex
0x592344    (84): zlib/deflate compressed radar30.tex
0x5923C8    (8C): zlib/deflate compressed radar31.tex
0x592454    (84): zlib/deflate compressed radar38.tex
0x5924D8    (84): zlib/deflate compressed radar39.tex
0x59255C    (84): zlib/deflate compressed radar46.tex
0x5925E0    (84): zlib/deflate compressed radar47.tex
0x592764    (FC): zlib/deflate compressed radar24.tex
0x592860    (80): zlib/deflate compressed radar55.tex
0x5928E0    (8C): zlib/deflate compressed radar00.tex
0x59296C    (84): zlib/deflate compressed radar04.tex
0x5931E0   (tba): timecyc.dat

BLOCK OFFSETS - OTHER:
0x64418C (5290): 4-byte offsets to data offsets regarding ***.dat
0x64941C  (100): 4-byte offsets to data offsets to radarNN.tex
0x64951C    (4): value=5929F0 offset to block containing offset to mocap
0x649520   (B0): 4-byte offsets to data offsets in initial data
  • Wakka387 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]

#2

Posted A week ago

Timecycle starts at 0x593460

guard3
  • guard3

    Liberty City's Finest

  • Members
  • Joined: 21 Jul 2013
  • Greece

#3

Posted A week ago Edited by guard3, A week ago.

Thank you very much! Do you also happen to know about the data before it? it has a float 0.0001 21 times!


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]

#4

Posted A week ago

No. I haven't looked at this file until today. At 0xAC there is the offset to weather types list (0x185690) with 256 2 byte entries.

guard3
  • guard3

    Liberty City's Finest

  • Members
  • Joined: 21 Jul 2013
  • Greece

#5

Posted A week ago Edited by guard3, A week ago.

Thanks again, though I'd assume they are 254 (4 bytes at the end are blank, like placeholders). If you know anything else, anyone, feel free to post.

 

*UPDATED*


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]

#6

Posted 6 days ago Edited by The Hero, 2 days ago.

Timecycle defintion:
 
struct CVuVector
{
	float x, y, z, w;
};

struct CTimeCycle
{
	CVuVector m_VectorToSun[16];
	float m_fShadowFrontX[16];
	float m_fShadowFrontY[16];
	float m_fShadowSideX[16];
	float m_fShadowSideY[16];
	float m_fShadowDisplacementX[16];
	float m_fShadowDisplacementY[16];
	uchar m_nAmbientRed[192];
	uchar m_nAmbientGreen[192];
	uchar m_nAmbientBlue[192];
	uchar m_nAmbientRed_Obj[192];
	uchar m_nAmbientGreen_Obj[192];
	uchar m_nAmbientBlue_Obj[192];
	uchar m_nAmbientRed_Bl[192];
	uchar m_nAmbientGreen_Bl[192];
	uchar m_nAmbientBlue_Bl[192];
	uchar m_nAmbientRed_Obj_Bl[192];
	uchar m_nAmbientGreen_Obj_Bl[192];
	uchar m_nAmbientBlue_Obj_Bl[192];
	uchar m_nDirectionalRed[192];
	uchar m_nDirectionalGreen[192];
	uchar m_nDirectionalBlue[192];
	uchar m_nSkyTopRed[192];
	uchar m_nSkyTopGreen[192];
	uchar m_nSkyTopBlue[192];
	uchar m_nSkyBottomRed[192];
	uchar m_nSkyBottomGreen[192];
	uchar m_nSkyBottomBlue[192];
	uchar m_nSunCoreRed[192];
	uchar m_nSunCoreGreen[192];
	uchar m_nSunCoreBlue[192];
	uchar m_nSunCoronaRed[192];
	uchar m_nSunCoronaGreen[192];
	uchar m_nSunCoronaBlue[192];
	uchar m_fSunSize[192];                   // *10.0; schar in VC
	uchar m_fSpriteSize[192];                // *10.0; schar in VC
	uchar m_fSpriteBrightness[192];          // *10.0; schar in VC
	uchar m_nShadowStrength[192];
	uchar m_nLightShadowStrength[192];
	uchar m_nPoleShadowStrength[192];
	short m_fFarClip[192];
	short m_fFogStart[192];
	uchar m_radiosityIntensity[192];         // VCS specific
	uchar m_radiosityLimit[192];             // VCS specific
	uchar m_fLightsOnGroundBrightness[192];  // *10.0
	uchar m_nLowCloudsRed[192];
	uchar m_nLowCloudsGreen[192];
	uchar m_nLowCloudsBlue[192];
	uchar m_nFluffyCloudsTopRed[192];
	uchar m_nFluffyCloudsTopGreen[192];
	uchar m_nFluffyCloudsTopBlue[192];
	uchar m_nFluffyCloudsBottomRed[192];
	uchar m_nFluffyCloudsBottomGreen[192];
	uchar m_nFluffyCloudsBottomBlue[192];
	uchar m_fBlurRed[192];
	uchar m_fBlurGreen[192];
	uchar m_fBlurBlue[192];
	uchar m_fWaterRed[192];
	uchar m_fWaterGreen[192];
	uchar m_fWaterBlue[192];
	uchar m_fWaterAlpha[192];
	float m_blurAlpha[192];                  // VCS specific
	float m_blurOffset[192];                 // VCS specific
	float m_fCurrentAmbientRed;
	float m_fCurrentAmbientGreen;
	float m_fCurrentAmbientBlue;
	float m_fCurrentAmbientRed_Obj;
	float m_fCurrentAmbientGreen_Obj;
	float m_fCurrentAmbientBlue_Obj;
	float m_fCurrentAmbientRed_Bl;
	float m_fCurrentAmbientGreen_Bl;
	float m_fCurrentAmbientBlue_Bl;
	float m_fCurrentAmbientRed_Obj_Bl;
	float m_fCurrentAmbientGreen_Obj_Bl;
	float m_fCurrentAmbientBlue_Obj_Bl;
	float m_fCurrentDirectionalRed;
	float m_fCurrentDirectionalGreen;
	float m_fCurrentDirectionalBlue;
	float m_nCurrentSkyTopRed;
	float m_nCurrentSkyTopGreen;
	float m_nCurrentSkyTopBlue;
	float m_nCurrentSkyBottomRed;
	float m_nCurrentSkyBottomGreen;
	float m_nCurrentSkyBottomBlue;
	float m_nCurrentFogColourRed;
	float m_nCurrentFogColourGreen;
	float m_nCurrentFogColourBlue;
	float m_nCurrentSunCoreRed;
	float m_nCurrentSunCoreGreen;
	float m_nCurrentSunCoreBlue;
	float m_nCurrentSunCoronaRed;
	float m_nCurrentSunCoronaGreen;
	float m_nCurrentSunCoronaBlue;
	float m_fCurrentSunSize;
	float m_fCurrentSpriteSize;
	float m_fCurrentSpriteBrightness;
	short m_nCurrentShadowStrength;
	short m_nCurrentLightShadowStrength;
	short m_nCurrentPoleShadowStrength;
	float m_fCurrentFarClip;
	float m_fCurrentFogStart;
	float m_currentRadiosityIntensity;
	float m_currentRadiosityLimit;
	float m_fCurrentLightsOnGroundBrightness;
	float m_nCurrentLowCloudsRed;
	float m_nCurrentLowCloudsGreen;
	float m_nCurrentLowCloudsBlue;
	float m_nCurrentFluffyCloudsTopRed;
	float m_nCurrentFluffyCloudsTopGreen;
	float m_nCurrentFluffyCloudsTopBlue;
	float m_nCurrentFluffyCloudsBottomRed;
	float m_nCurrentFluffyCloudsBottomGreen;
	float m_nCurrentFluffyCloudsBottomBlue;
	float m_fCurrentBlurRed;
	float m_fCurrentBlurGreen;
	float m_fCurrentBlurBlue;
	float m_fCurrentWaterRed;
	float m_fCurrentWaterGreen;
	float m_fCurrentWaterBlue;
	float m_fCurrentWaterAlpha;
	float m_currentBlurAlpha;
	float m_currentBlurOffset;
	int m_CurrentStoredValue;
	int m_FogReduction;
	int m_ExtraColour;
	int m_bExtraColourOn;
	float m_ExtraColourInter;
	int field_337C;
};

CTimeCycle *pTimeCycle; // at 0x486B38 in SLES_546.22; loaded by the game starting at instruction 0x332688
Haven't figured out the four unknown values yet, but they all are used for drawing the colour filter (which is the reason I'm reversing this in the first place)
EDIT: updated. radiosity limit is the value above which a color is considered a highlight. radiosity intensity is a multiplier after half the limit has been subtracted from the frame buffer. blur alpha (internally multiplied by 0.8) is the strength of the blur effect, blur offset is the pixel offset (the current frame is blended three times for the blur effect, at offset,0; 0,offset, offset,offset)
  • Wesser, Blackbird88 and guard3 like this

guard3
  • guard3

    Liberty City's Finest

  • Members
  • Joined: 21 Jul 2013
  • Greece

#7

Posted 6 days ago

That's helpful for converting it to pc format. I plan to upload the extracted files for convenience, so thanks again :)

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]

#8

Posted 6 days ago

Way ahead of ya: http://aap.papnet.eu...timecyc_vcs.dat
  • guard3 likes this

Markus2002
  • Markus2002

    The Blender Guy

  • Members
  • Joined: 21 Feb 2017
  • Italy

#9

Posted 4 days ago

 

Did you know where are the Models? Wheels, Weapons ETC. inside that file... please


guard3
  • guard3

    Liberty City's Finest

  • Members
  • Joined: 21 Jul 2013
  • Greece

#10

Posted 4 days ago Edited by guard3, 4 days ago.

At 0x52D260 there's data that assuming contains floats, it looks like this:

14.1482,	0.0303955,		0.986919,	0,	-131656,	0,	100,	0,	4,	0,	7.10543e-15,	0,		7.08429e-40,	8.96383e-40,	0,	0,
-9.17807,	0.0303955,		0.986919,	0,	-131656,	0,	100,	0,	4,	0,	7.10543e-15,	0,		7.08429e-40,	8.96383e-40,	0,	0,
10.8648,	0.0303955,		0.986919,	0,	-131656,	0,	100,	0,	4,	0,	7.10543e-15,	0,		7.08429e-40,	8.96383e-40,	0,	0,	        
9.08504,	0.0303955,		0.986919,	0,	-131656,	0,	100,	0,	4,	0,	7.10543e-15,	0,		7.08429e-40,	8.96383e-40,	0,	0,	        
5.74976,	0.0303955,		0.986919,	0,	-131656,	0,	100,	18,	4,	8,	7.10543e-15,	0,		7.08429e-40,	8.96383e-40,	0,	0,	        
-5.78153,	0.0303955,		0.986919,	0,	-131656,	0,	100,	18,	4,	8,	7.10543e-15,	0,		7.08429e-40,	8.96383e-40,	0,	0,	        
-10.9299,	0.0303955,		0.986919,	0,	-131656,	0,	100,	0,	4,	0,	7.10543e-15,	0,		7.08429e-40,	8.96383e-40,	0,	0,	        
-14.2371,	0.0303955,		0.986919,	0,	-131656,	0,	100,	18,	4,	8,	7.10543e-15,	0,		7.08429e-40,	8.96383e-40,	0,	0,	        
0,		-0.00692272,	        0.0792043,	0,	-131076,	0,	100,	18,     1,	0,	7.10543e-15,	5.60519e-45,	7.08429e-40,	8.96383e-40,	0,	0,
-0.0257463,	-0.0584068,		0.319209,	0,	-524288,	0,	180,	12,	0.75,	6,	7.10543e-15,	2.8026e-45,	7.08429e-40,	8.96383e-40,	0,	0,
0.645042,	1.5273e-05,		4.41737,	0,	-524288,	0,	150,	12,	1,	8,	7.10543e-15,	0,		7.08429e-40,	8.96383e-40,	0,	0,
-1.40575,	0.20891,		3.67026,	0,	-184916,	0,	100,	12,	2,	8,	7.10565e-15,	2.8026e-45,	7.08429e-40,	8.96383e-40,	0,	0,

What kind of data could it be?


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]

#11

Posted 2 days ago

Updated previously unknown timecycle values in the post above.
  • guard3 likes this




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users