direstraits Posted August 21, 2013 Share Posted August 21, 2013 Hi. Is there a way to move the radar position using a cleo script? For San Andreas. HQ Weapon Icons for SA Click Here Link to comment Share on other sites More sharing options...
fastman92 Posted August 22, 2013 Share Posted August 22, 2013 Remember to relocate a value to new location stored in CLEO script and replacing references to this value. 0x858A10 [float] - X position, radar left corner of map part, relative to left side of screen 0x866B70 [float] - Y position, radar top corner of map part, relative to bottom of screen As already written - relocate references to point into new location of CLEO script memory where is your value, you have to do it. Link to comment Share on other sites More sharing options...
direstraits Posted August 22, 2013 Author Share Posted August 22, 2013 Thanks for the reply and the memory address, but I'm not a good cleo scripter. Can you show a script? Because I only know the most basic things in cleo. HQ Weapon Icons for SA Click Here Link to comment Share on other sites More sharing options...
fastman92 Posted August 22, 2013 Share Posted August 22, 2013 Sorry, i can't. I have no access to my primary PC at the moment. Use IDA Pro and IDB to find where are pointers to these 2 float values and point them to CLEO script :Radar_Pos_Xhex00 00 00 00end:Radar_Pos_Yhex 00 00 00 00end Can't you simply use Interface Editor made by Alexander Blade? Link to comment Share on other sites More sharing options...
Wesser Posted August 22, 2013 Share Posted August 22, 2013 (edited) If you don't know how to practicing what fastman stated, take this script which enables you to move all the related radar components: {$CLEO}0000: NOPconst fRadarLeft = [email protected] fRadarTop = [email protected] fRadarWidth = [email protected] fRadarHeight = [email protected] fRadarRingPlaneHorzPad = [email protected] fRadarRingPlaneVertPad = [email protected] fAltimeterRadarLeft = [email protected] fAltimeterRadarTop = [email protected] fAltimeterRadarHeight = [email protected] fAltimeterVertBarLeftMostRadarPos = [email protected] fAltimeterVertBarLeftRadarPos = [email protected] fAltimeterHorzBarLeftMostRadarPos = [email protected] fAltimeterHorzBarLeftRadarPos = [email protected] fAltimeterHorzBarHeight = [email protected] fRadarDiscHorzMargin = [email protected] fRadarDiscVertMargin = [email protected]: [email protected] = [email protected] += 0x10 // CScriptThread.m_iBaseAddress0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect [email protected] -= @HudRadarAndComponentsCoords0085: fRadarLeft = [email protected]: fRadarTop = [email protected] + 0x040A8E: fRadarWidth = [email protected] + 0x080A8E: fRadarHeight = [email protected] + 0x0C0A8E: fRadarRingPlaneHorzPad = [email protected] + 0x100A8E: fRadarRingPlaneVertPad = [email protected] + 0x140A8E: fAltimeterRadarLeft = [email protected] + 0x180A8E: fAltimeterRadarTop = [email protected] + 0x1C0A8E: fAltimeterRadarHeight = [email protected] + 0x200A8E: fAltimeterVertBarLeftMostRadarPos = [email protected] + 0x240A8E: fAltimeterVertBarLeftRadarPos = [email protected] + 0x280A8E: fAltimeterHorzBarLeftMostRadarPos = [email protected] + 0x2C0A8E: fAltimeterHorzBarLeftRadarPos = [email protected] + 0x300A8E: fAltimeterHorzBarHeight = [email protected] + 0x340A8E: fRadarDiscHorzMargin = [email protected] + 0x380A8E: fRadarDiscVertMargin = [email protected] + 0x3C// Map and sprites position relative to the radar rectangle.0A8C: write_memory 0x005834C2 size 4 value fRadarWidth virtual_protect 10A8C: write_memory 0x005834D4 size 4 value fRadarLeft virtual_protect 10A8C: write_memory 0x005834F6 size 4 value fRadarHeight virtual_protect 10A8C: write_memory 0x00583500 size 4 value fRadarTop virtual_protect 1// Radar ring plane rectangle.0A8C: write_memory 0x0058A449 size 4 value fRadarWidth virtual_protect 10A8C: write_memory 0x0058A453 size 4 value fRadarRingPlaneHorzPad virtual_protect 10A8C: write_memory 0x0058A469 size 4 value fRadarLeft virtual_protect 10A8C: write_memory 0x0058A47D size 4 value fRadarHeight virtual_protect 10A8C: write_memory 0x0058A489 size 4 value fRadarRingPlaneVertPad virtual_protect 10A8C: write_memory 0x0058A499 size 4 value fRadarTop virtual_protect 1// Altimeter rectangle.0A8C: write_memory 0x0058A5E2 size 4 value fAltimeterRadarLeft virtual_protect 10A8C: write_memory 0x0058A5F0 size 4 value fAltimeterVertBarLeftMostRadarPos virtual_protect 10A8C: write_memory 0x0058A60E size 4 value fAltimeterRadarTop virtual_protect 10A8C: write_memory 0x0058A620 size 4 value fAltimeterVertBarLeftRadarPos virtual_protect 10A8C: write_memory 0x0058A632 size 4 value fAltimeterRadarHeight virtual_protect 10A8C: write_memory 0x0058A6E6 size 4 value fAltimeterRadarLeft virtual_protect 10A8C: write_memory 0x0058A6F2 size 4 value fAltimeterHorzBarLeftMostRadarPos virtual_protect 10A8C: write_memory 0x0058A70E size 4 value fAltimeterRadarHeight virtual_protect 10A8C: write_memory 0x0058A71E size 4 value fAltimeterRadarTop virtual_protect 10A8C: write_memory 0x0058A759 size 4 value fAltimeterHorzBarLeftRadarPos virtual_protect 10A8C: write_memory 0x0058A767 size 4 value fAltimeterHorzBarHeight virtual_protect 1// Upper-left radar disc rectangle.0A8C: write_memory 0x0058A79B size 4 value fRadarLeft virtual_protect 10A8C: write_memory 0x0058A7A9 size 4 value fRadarDiscHorzMargin virtual_protect 10A8C: write_memory 0x0058A7C7 size 4 value fRadarTop virtual_protect 10A8C: write_memory 0x0058A7D9 size 4 value fRadarDiscVertMargin virtual_protect 10A8C: write_memory 0x0058A7E9 size 4 value fRadarWidth virtual_protect 10A8C: write_memory 0x0058A801 size 4 value fRadarHeight virtual_protect 1// Upper-right radar disc rectangle.0A8C: write_memory 0x0058A836 size 4 value fRadarLeft virtual_protect 10A8C: write_memory 0x0058A840 size 4 value fRadarWidth virtual_protect 10A8C: write_memory 0x0058A848 size 4 value fRadarDiscHorzMargin virtual_protect 10A8C: write_memory 0x0058A868 size 4 value fRadarTop virtual_protect 10A8C: write_memory 0x0058A87A size 4 value fRadarDiscVertMargin virtual_protect 10A8C: write_memory 0x0058A8AB size 4 value fRadarHeight virtual_protect 1// Lower-left radar disc rectangle.0A8C: write_memory 0x0058A8E9 size 4 value fRadarLeft virtual_protect 10A8C: write_memory 0x0058A8F9 size 4 value fRadarDiscHorzMargin virtual_protect 10A8C: write_memory 0x0058A913 size 4 value fRadarTop virtual_protect 10A8C: write_memory 0x0058A921 size 4 value fRadarHeight virtual_protect 10A8C: write_memory 0x0058A92D size 4 value fRadarDiscVertMargin virtual_protect 10A8C: write_memory 0x0058A943 size 4 value fRadarWidth virtual_protect 1// Lower-right radar disc rectangle.0A8C: write_memory 0x0058A98A size 4 value fRadarLeft virtual_protect 10A8C: write_memory 0x0058A99D size 4 value fRadarWidth virtual_protect 10A8C: write_memory 0x0058A9AB size 4 value fRadarDiscHorzMargin virtual_protect 10A8C: write_memory 0x0058A9C7 size 4 value fRadarTop virtual_protect 10A8C: write_memory 0x0058A9D5 size 4 value fRadarHeight virtual_protect 10A8C: write_memory 0x0058A9E1 size 4 value fRadarDiscVertMargin virtual_protect 1// Radar searchlight maximum width?0A8C: write_memory 0x0058781B size 4 value fRadarWidth virtual_protect 10A93: end_custom_thread:HudRadarAndComponentsCoordshex 00002042 // ( 40.0f) fRadarLeft 0000D042 // (104.0f) fRadarTop 0000BC42 // ( 94.0f) fRadarWidth 00009842 // ( 76.0f) fRadarHeight 00009041 // ( 18.0f) fRadarRingPlaneHorzPad 00009041 // ( 18.0f) fRadarRingPlaneVertPad 00002042 // ( 40.0f) fAltimeterRadarLeft 0000D042 // (104.0f) fAltimeterRadarTop 00009842 // ( 76.0f) fAltimeterRadarHeight 0000A041 // ( 20.0f) fAltimeterVertBarLeftMostRadarPos 00002041 // ( 10.0f) fAltimeterVertBarLeftRadarPos 0000C841 // ( 25.0f) fAltimeterHorzBarLeftMostRadarPos 0000A040 // ( 5.0f) fAltimeterHorzBarLeftRadarPos // Unscaled, R* bug. 00000040 // ( 2.0f) fAltimeterHorzBarHeight // Unscaled, R* bug. 00008040 // ( 4.0f) fRadarDiscHorzMargin 00008040 // ( 4.0f) fRadarDiscVertMarginend To convert floating-point values to a 4-byte hexdecimal or viceversa use this online converter and reverse each byte. Edited August 22, 2013 by Wesser 012 345 678 9A BCD EFG HIJK LMN OPQR STUV WX YZ Link to comment Share on other sites More sharing options...
direstraits Posted August 22, 2013 Author Share Posted August 22, 2013 Interface Editor is buggy to me, And I don't know how use IDA Pro or IDB. But thanks for your efforts even when you are away from the main computer. I know you can do this, I never doubted. EDIT : Wesser replied. LOL HQ Weapon Icons for SA Click Here Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now