Quantcast

Jump to content

» «
Photo

[CLEO] Import Texture not showing correct image.

12 replies to this topic
Marty McFlaY
  • Marty McFlaY

    If you cant run, then walk, if you cant walk, then crawl :)

  • Members
  • Joined: 25 Feb 2016
  • England

#1

Posted 25 November 2017 - 02:57 PM Edited by Marty McFlaY, 25 November 2017 - 02:58 PM.

{$CLEO .cs}
thread "HBOX"
 
03F0: enable_text_draw 1

:BOX
wait 0
0390: load_txd_dictionary 'Pack' 
038F: load_texture "course" as 1 // Load dictionary with 0390 first  
03E3: set_texture_to_be_drawn_antialiased 1
038D: draw_texture 1 position 590.0 195.0 size 30.0 30.0 RGBA 225 225 225 225 
038E: draw_box_position 590.0 175.3 size 60.0 8.0 RGBA 192 192 192 0.3
0391: release_textures
jump @BOX

qLaHvjl.png

RJyURDO.png

 

Not showing the correct image. Only showing a white image in-game.  Help me to fix it.


Marty McFlaY
  • Marty McFlaY

    If you cant run, then walk, if you cant walk, then crawl :)

  • Members
  • Joined: 25 Feb 2016
  • England

#2

Posted 25 November 2017 - 03:38 PM

FAST!


The_Human
  • The_Human

    GNU/ Member Title

  • Members
  • Joined: 31 Dec 2015
  • Mars

#3

Posted 25 November 2017 - 05:23 PM

Using Script Dependent Drawings might help.


Marty McFlaY
  • Marty McFlaY

    If you cant run, then walk, if you cant walk, then crawl :)

  • Members
  • Joined: 25 Feb 2016
  • England

#4

Posted 25 November 2017 - 09:37 PM

It gives some kind of strange Chinese error. Any other solution with complete snippet?


The_Human
  • The_Human

    GNU/ Member Title

  • Members
  • Joined: 31 Dec 2015
  • Mars

#5

Posted 26 November 2017 - 06:49 AM

It gives some kind of strange Chinese error. Any other solution with complete snippet?

You must have an older version of CLEO to make SDD work. IIRC, you need CLEO 4.1.1


Marty McFlaY
  • Marty McFlaY

    If you cant run, then walk, if you cant walk, then crawl :)

  • Members
  • Joined: 25 Feb 2016
  • England

#6

Posted 26 November 2017 - 11:17 AM

Crash! Any other method?


Marty McFlaY
  • Marty McFlaY

    If you cant run, then walk, if you cant walk, then crawl :)

  • Members
  • Joined: 25 Feb 2016
  • England

#7

Posted 26 November 2017 - 07:20 PM

Anyone else? It's still giving white image.


deltaCJ
  • deltaCJ

    Davy Jones' Sock

  • Members
  • Joined: 27 Dec 2013
  • Unknown

#8

Posted 27 November 2017 - 06:10 AM Edited by deltaCJ, 27 November 2017 - 06:11 AM.

038D: draw_texture 1 position 590.0 195.0 size 30.0 30.0 RGBA 225 225 225 225

 

You set it all white LOL

 

Try messing with the RGBA numbers 

 

225   225   225    225          <-------- Change those numbers

R       G      B       A

e        r       l        l

d        e      u       p

          e      e       h

          n               a


Marty McFlaY
  • Marty McFlaY

    If you cant run, then walk, if you cant walk, then crawl :)

  • Members
  • Joined: 25 Feb 2016
  • England

#9

Posted 27 November 2017 - 07:08 AM

LOL, now i'm trying to use this and it stuck on block screen after successfully loading:

 

{$CLEO .cs}
0000:
03F0: enable_text_draw 1 
 
:PA
wait 0
0390: load_txd_dictionary "hud"
038F: load_texture "siteM16" as 1 // Load dictionary with 0390 first 
03E3: set_texture_to_be_drawn_antialiased 1  
038D: draw_texture 1 position 590.0 195.0 size 64.0 64.0 RGBA 0 0 0 225
0391: release_txd_dictionary 
jump @PA

boludoz
  • boludoz

    Rat

  • Members
  • Joined: 10 Dec 2009
  • Argentina

#10

Posted 27 November 2017 - 07:42 PM

who uses txd workshop existing Magic.TXD

deltaCJ
  • deltaCJ

    Davy Jones' Sock

  • Members
  • Joined: 27 Dec 2013
  • Unknown

#11

Posted 28 November 2017 - 02:54 AM

@Boludoz I sometimes use it, for Alphas

 

@Marty

 

You have it in a loop, it's just gonna keep re appearing lol, you won't be able to remove it unless you remove the texture

 

 

Try this:

{$CLEO .cs}
0000:
03F0: enable_text_draw 1 
 
:PA
wait 0
0390: load_txd_dictionary "hud"
038F: load_texture "siteM16" as 1 // Load dictionary with 0390 first 
03E3: set_texture_to_be_drawn_antialiased 1  
038D: draw_texture 1 position 590.0 195.0 size 64.0 64.0 RGBA 0 0 0 225
0391: release_txd_dictionary
[email protected] = 0

:PA_02
wait 0
if
[email protected] > 5000
jf @PA_02
0391: release_textures
jump @PA



 

Sanmodder
  • Sanmodder

    Fan script

  • Members
  • Joined: 11 Sep 2017
  • Poland

#12

Posted 3 weeks ago

 

LOL, now i'm trying to use this and it stuck on block screen after successfully loading:

{$CLEO .cs}
0000:
03F0: enable_text_draw 1 
 
:PA
wait 0
0390: load_txd_dictionary "hud"
038F: load_texture "siteM16" as 1 // Load dictionary with 0390 first 
03E3: set_texture_to_be_drawn_antialiased 1  
038D: draw_texture 1 position 590.0 195.0 size 64.0 64.0 RGBA 0 0 0 225
0391: release_txd_dictionary 
jump @PA
{$CLEO .cs}
0000:


while true
    wait 0 
    if 0AAB:   file_exists "hud" //checks if it found a textures file                    
    then                                                                                 
        0390: load_txd_dictionary "hud"                                                  
        038F: load_texture "siteM16" as 1 // Load dictionary with 0390 first
        break             
    end                                                                                 
    0aca: "~r~error not file_exists"
    wait 5000                                                 
end

while true
    wait 0 
    03F0: enable_text_draw 0 //the game has a textures drawing limit to 03F0: always be in the loop along with the tetures
    03E3: set_texture_to_be_drawn_antialiased 1 
    038D: draw_texture 1 position 590.0 195.0 size 64.0 64.0 RGBA 0 0 0 225  //0 0 0 255 = black textures
end

Sanmodder
  • Sanmodder

    Fan script

  • Members
  • Joined: 11 Sep 2017
  • Poland

#13

Posted 3 weeks ago

 

 

LOL, now i'm trying to use this and it stuck on block screen after successfully loading:

{$CLEO .cs}
0000:
03F0: enable_text_draw 1 
 
:PA
wait 0
0390: load_txd_dictionary "hud"
038F: load_texture "siteM16" as 1 // Load dictionary with 0390 first 
03E3: set_texture_to_be_drawn_antialiased 1  
038D: draw_texture 1 position 590.0 195.0 size 64.0 64.0 RGBA 0 0 0 225
0391: release_txd_dictionary 
jump @PA
{$CLEO .cs}
0000:


while true //:loop
    wait 0
    if 0AAB:   file_exists "hud" //checks if it found a textures file                    
    then //jf @1                                                                                 
        0390: load_txd_dictionary "hud"                                                  
        038F: load_texture "siteM16" as 1 // Load dictionary with 0390 first
        break //jump @2            
    end //:1                                                                                
    0aca: "~r~error not file_exists"
    wait 5000                                                 
end //jump @loop

//:2
while true  //:loop_1
    wait 0
    03F0: enable_text_draw 0 //the game has a texture drawing limit to 03F0 always be in the loop along with the tetures
    03E3: set_texture_to_be_drawn_antialiased 1
    038D: draw_texture 1 position 590.0 195.0 size 64.0 64.0 RGBA 0 0 0 225  //0 0 0 255 = black texture
end //jump @loop_1




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users