Coding

 Reply to this postStart new topic

Live TV Screens

Huckleberry Pie
post Feb 25 2012, 02:07 PM
Post #21


Ameteur Member

Posts: 49
Joined: 5-August 09



Now what about video screens? As in make one flat plane display an FMV or something.
Go to the top of the page
 
+Quote Post
Albreht
post Mar 6 2012, 03:07 PM
Post #22


Trained Newbie

Posts: 21
Joined: 19-February 12



this is still not working for me.
could someone who have tried this and it works upload source code .txt or .cs here?
Go to the top of the page
 
+Quote Post
Deji
post Mar 6 2012, 09:14 PM
Post #23


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



Did you, per chance, miss out the first parts of the topic? The one that explains about adding the appropriate line to cull.ipl to actually see the screen? And the part about writing some actual data to see on the screen? They're both pretty important.

Assuming it's not crashing any more from not using version 2...
SANNY
{$CLEO .cs}
0AB1: CALL @SetupLiveScreen NUM_PARAMS 7 SCREEN 0 COORDS 2512.1816 -1669.3521 21.0431 WIDTH 20.0 HEIGHT 10.0 ANGLE 90.0
:main
WAIT 0
IF 00FE:   LOCATE_CHAR_ANY_MEANS $PLAYER_ACTOR SPHERE 0 COORDS 2512.1816 -1669.3521 21.0431 RADIUS 150.0 150.0 150.0
THEN
    IF 00C2:   CAM_IS_SPHERE_VISIBLE 159@ 160@ 161@ radius 5.0
    THEN
        0A8E: 0@ = 0xB6F028 + 0x14
        0A8D: 1@ = read_memory 0@ size 4 virtual_protect 0
        0A8E: 0@ = 0xB6F028 + 0xADC
        0AA6: call_method 0x59BBC0 struct 0@ num_params 1 pop 0 1@   // CMatrix__Copy(&CCamera.TvCamMatrix, CCamera.placeable.pMatrix)
    END
END
GOTO @main

:SetupLiveScreen
0012: 0@ *= 0x30
000A: 0@ += 0x8D5DD8
0017: 4@ /= 2.0
0017: 5@ /= 2.0
02F6: 8@ = SIN 6@
02F7: 7@ = COS 6@
0013: 7@ *= 4@
0013: 8@ *= 4@
0087: 9@ = 1@
0087: 10@ = 2@
005B: 9@ += 7@
005B: 10@ += 8@
0087: 11@ = 3@
005B: 11@ += 5@
0087: 12@ = 1@
0087: 13@ = 2@
0063: 12@ -= 7@
0063: 13@ -= 8@
0087: 17@ = 3@
0063: 17@ -= 5@
0A8C: write_memory 0@ size 4 value 9@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 10@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 11@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 12@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 13@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 11@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 12@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 13@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 17@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 9@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 10@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 17@ virtual_protect 0
0AB2: RET 0


And in "GTA San Andreas\data\maps\cull.ipl", replace
CODE
-1399.83, -208.103, 1039.34, 0, 120.187, 1039.34, 173.006, 0, 1157.71, 2, 0, 0, 0, 0

With
CODE
#-1399.83, -208.103, 1039.34, 0, 120.187, 1039.34, 173.006, 0, 1157.71, 2, 0, 0, 0, 0 # BACKED UP 8-TRACK TV
2486.905, -1668.2683, 13.3437, 0, 150.0, 9.0, 150.0, 0, 100.0, 2, 0, 0, 0, 0 # GROVE TV


--------------------
Go to the top of the page
 
+Quote Post
Albreht
post Mar 8 2012, 02:32 PM
Post #24


Trained Newbie

Posts: 21
Joined: 19-February 12



not working...
i'm noob or my gta or pc is wrong.
so i give up
i'll try it again when i graduate from noob
thank you for help wink.gif
Go to the top of the page
 
+Quote Post
Fish
post Jan 1 2016, 09:44 PM
Post #25


The New Guy!

Posts: 8
Joined: 5-October 15



Why a black screen?
Go to the top of the page
 
+Quote Post
Junior_Djjr
post Jan 3 2016, 02:17 PM
Post #26


Ameteur Member

Posts: 32
From: Brazil
Joined: 12-January 14



QUOTE (Fish @ Jan 1 2016, 07:44 PM) *
Why a black screen?
~img~
Try to see your game mirrors if they work, if also not work is because some mod disabled the cull of your game.


--------------------
Go to the top of the page
 
+Quote Post
Fish
post Jan 5 2016, 06:11 PM
Post #27


The New Guy!

Posts: 8
Joined: 5-October 15



QUOTE (Junior_Djjr @ Jan 3 2016, 06:17 PM) *
Try to see your game mirrors if they work, if also not work is because some mod disabled the cull of your game.

How to turn on the mirror? unsure.gif
Go to the top of the page
 
+Quote Post
Junior_Djjr
post Feb 6 2016, 11:15 AM
Post #28


Ameteur Member

Posts: 32
From: Brazil
Joined: 12-January 14



QUOTE (Fish @ Jan 5 2016, 04:11 PM) *
How to turn on the mirror? unsure.gif
Now I see, Deji forgot this line:
CODE
0A8C: write_memory 0x50B538 size 1 value 0xEB virtual_protect 1

And also, obviously, made a mistake here:
CODE
00C2:   CAM_IS_SPHERE_VISIBLE 159@ 160@ 161@ radius 5.0



This works:
CODE
{$cleo}
0AB1: call @SetupLiveScreen num_params 7 screen 0 coords 2512.1816 -1669.3521 18.0 width 20.0 height 10.0 angle 90.0
0A8C: write_memory 0x50B538 size 1 value 0xEB virtual_protect 1

while true  
    wait 0
    player.Defined(0)
    jf continue
    00FE:   actor $player_actor sphere 0 in_sphere 2512.1816 -1669.3521 21.0431 radius 150.0 150.0 150.0
    jf continue
    00C2:   sphere_onscreen 2512.1816 -1669.3521 21.0431 radius 10.0
    jf continue
    
    0A8E: 0@ = 0xB6F028 + 0x14
    0A8D: 1@ = read_memory 0@ size 4 virtual_protect 0
    0A8E: 0@ = 0xB6F028 + 0xADC
    0AA6: call_method 0x59BBC0 struct 0@ num_params 1 pop 0 1@   // CMatrix__Copy(&CCamera.TvCamMatrix, CCamera.placeable.pMatrix)
end


:SetupLiveScreen
0012: 0@ *= 0x30
000A: 0@ += 0x8D5DD8
0017: 4@ /= 2.0
0017: 5@ /= 2.0
02F6: 8@ = SIN 6@
02F7: 7@ = COS 6@
0013: 7@ *= 4@
0013: 8@ *= 4@
0087: 9@ = 1@
0087: 10@ = 2@
005B: 9@ += 7@
005B: 10@ += 8@
0087: 11@ = 3@
005B: 11@ += 5@
0087: 12@ = 1@
0087: 13@ = 2@
0063: 12@ -= 7@
0063: 13@ -= 8@
0087: 17@ = 3@
0063: 17@ -= 5@
0A8C: write_memory 0@ size 4 value 9@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 10@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 11@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 12@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 13@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 11@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 12@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 13@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 17@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 9@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 10@ virtual_protect 0
000A: 0@ += 4
0A8C: write_memory 0@ size 4 value 17@ virtual_protect 0
0AB2: RET 0



--------------
Edit:

https://youtu.be/hfg1mlcAAa8
Thanks for this biggrin.gif


This post has been edited by Junior_Djjr: Feb 6 2016, 01:02 PM


--------------------
Go to the top of the page
 
+Quote Post
Fish
post Feb 11 2016, 08:40 PM
Post #29


The New Guy!

Posts: 8
Joined: 5-October 15



Thank you! Now it works!!)
how to make a mirror of the car in the video?)
Go to the top of the page
 
+Quote Post
PewPewPew
post Jan 26 2017, 12:17 PM
Post #30


The New Guy!

Posts: 5
Joined: 13-January 16



How use " 00A0: store_actor $PLAYER_ACTOR position_to 1@ 2@ 3@ " and make camera follow player actor?? @deji
Go to the top of the page
 
+Quote Post
Reply to this postStart new topic

2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: