Quantcast

Jump to content

» «
Photo

Edit color of Yellow Markers. !

9 replies to this topic
kellne
  • kellne

    Snitch

  • Members
  • Joined: 13 Aug 2015
  • Czech-Republic

#1

Posted 2 weeks ago

Hi guys :D Please tell me which .txd is for yellow interior markers.

I want to change their colors, thanks :)


Ash_735
  • Ash_735

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

#2

Posted A week ago

It's not a texture thing (they use ingame.txd by the way) but a script thing, the textures are white and then a colour is applied to them script wise, e.g. red for mission markers, yellow for interior markers.

OrionSR
  • OrionSR

    Chain Game Development Team

  • Feroci
  • Joined: 23 May 2007
  • None
  • Helpfulness Award [GTA & Modding]

#3

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

RGBA colors can also be assigned to radar blip markers without icons, but I think the TC is asking about changing the colors of the yellow enex markers. I remember reading something about this many years ago but don't remember enough clues to track it down.


Jack
  • Jack

    Wanted Level Modifications

  • Feroci
  • Joined: 06 Dec 2011
  • Serbia

#4

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

The pointer to C3DMarker field is located inside:

C3dMarkers::Render(void)   //  0x725040
{$CLEO}
0000:

CONST
    RED = 0
    GREEN = 0
    BLUE = 0xFF
END

WHILE TRUE
    wait 0
    0A8D: [email protected] = read_memory 0x7251DE size 4 virtual_protect 0    //  pointer to C3DMarker.rwColour
    [email protected] += 0x58
    0A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0    //  C3DMarker.rwColour.Red
    [email protected] += 1
    0A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0    //  C3DMarker.rwColour.Green
    [email protected] += 1
    0A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0    //  C3DMarker.rwColour.Blue
    IF OR
        [email protected] <> RED
        [email protected] <> GREEN
        [email protected] <> BLUE
    THEN
        0A8D: [email protected] = read_memory 0x7251DE size 4 virtual_protect 0    //  C3DMarker.rwColour
        [email protected] += 0x58
        0A8C: write_memory [email protected] size 1 value RED virtual_protect 0
        [email protected] += 1
        0A8C: write_memory [email protected] size 1 value GREEN virtual_protect 0
        [email protected] += 1
        0A8C: write_memory [email protected] size 1 value BLUE virtual_protect 0
    END
END

DK22Pac
  • DK22Pac

  • Feroci
  • Joined: 12 Apr 2009
  • Ukraine
  • Best WIP Mod 2014 [Grand Theft Auto 3D Contribution]
    Contribution Award [Mods]
    Helpfulness Award [Mods]

#5

Posted A week ago

The pointer to C3DMarker field is located inside:

Won't this replace colors of all game markers?

plugin-sdk solution:
#include "plugin.h"
#include "C3dMarkers.h"

const CRGBA c = { 0, 255, 0, 255 }; // green

class EnExMarkerColor {
public:
    static void MyCreateEnExMarker(unsigned int i, CVector& p, float s, char, char, char, char, unsigned short pp, float pf, short rr, unsigned char ec) {
        C3dMarkers::PlaceMarkerCone(i, p, s, c.red, c.green, c.red, c.alpha, pp, pf, rr, ec);
    }

    EnExMarkerColor() {
        plugin::patch::RedirectCall(0x440F4E, MyCreateEnExMarker);
    }
} enExMarkerColor;
  • Jack and Sloth- like this

kellne
  • kellne

    Snitch

  • Members
  • Joined: 13 Aug 2015
  • Czech-Republic

#6

Posted A week ago

I saw name of .TXD once but it was long time ago -_-

 

I put my idea away until i found the name :D


Ash_735
  • Ash_735

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

#7

Posted 6 days ago

They use ingame.txd as I mentioned in the first reply.

Veigar
  • Veigar

    Dark Sorcerer

  • Members
  • Joined: 21 Apr 2012
  • United-States

#8

Posted 6 days ago

I believe it's called "diamond.txd" 


LaDiDa
  • LaDiDa

    I'm only human

  • Members
  • Joined: 12 Jul 2016
  • Netherlands

#9

Posted 6 days ago

I believe it's called "diamond.txd" 


Those are used as objective markers (above the bike at the start of a new game)

ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union
  • Contribution Award [Mods]
    Helpfulness Awards [Mods]

#10

Posted 5 days ago

I believe it's called "diamond.txd"


diamond.dff and diamond.txd
texture gives only gradient via alpha channel, not the color




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users