DK22Pac 2,557 Posted February 18, 2012 Share Posted February 18, 2012 @terreur69 You mean 1) create blip on radar 2) show text box ? Link to post Share on other sites
Terreur69 20 Posted February 18, 2012 Share Posted February 18, 2012 (edited)  @terreur69You mean 1) create blip on radar 2) show text box ? yes  1) ADD_BLIP_FOR_CONTACT(float x, float y, float z, Blip *pBlip); ? 2) PRINT_HELP_FOREVER_WITH_STRING(char *gxtName, char *gxtText); ? Edited February 19, 2012 by terreur69 Link to post Share on other sites
Terreur69 20 Posted February 19, 2012 Share Posted February 19, 2012 @terreur69You mean 1) create blip on radar 2) show text box ? yes  1) ADD_BLIP_FOR_CONTACT(float x, float y, float z, Blip *pBlip); ? 2) PRINT_HELP_FOREVER_WITH_STRING(char *gxtName, char *gxtText); ? person ? please , please ! Link to post Share on other sites
Skorpro 129 Posted February 22, 2012 Share Posted February 22, 2012 (edited) Â 1) ADD_BLIP_FOR_CONTACT(float x, float y, float z, Blip *pBlip);Â ? 2) PRINT_HELP_FOREVER_WITH_STRING(char *gxtName, char *gxtText); ? Hi, Â -> 1) try this... Â Â Blip testBlip;eBlipSprite testSprite = BLIP_SAFEHOUSE; Â // BLIP_SAFEHOUSE = 29...ADD_BLIP_FOR_COORD(x, y, z, &testBlip); Â // Your own x,y,z coords!CHANGE_BLIP_SPRITE(testBlip, testSprite);CHANGE_BLIP_COLOUR(testBlip, 0); Â // 0 = whiteCHANGE_BLIP_DISPLAY(testBlip, BLIP_DISPLAY_MAP_ONLY); Â // BLIP_DISPLAY_MAP_ONLY = 2CHANGE_BLIP_NAME_FROM_ASCII(testBlip, "My New Safehouse"); Â Â ...and to remove... Â Â if (DOES_BLIP_EXIST(testBlip)){REMOVE_BLIP(testBlip);} Â Â -> 2) and this... Â Â PRINT_HELP("TV_HLP2"); Â // TV_HLP2 = GTX-Name! Â Â For "Hotdog text" search in vendor.sco... That's it! Â Â PS: My "New Safe House v1.0" Mod coming soon... Preview: Pic1 Pic2 Pic3 Edited February 22, 2012 by Skorpro Link to post Share on other sites
Terreur69 20 Posted February 22, 2012 Share Posted February 22, 2012 thx for answer , but for the add blip , i have this error : Â 'eBlipSprite' undeclared (first use this function) Â is very small thing, i do not understand anything in programming. Link to post Share on other sites
Skorpro 129 Posted February 23, 2012 Share Posted February 23, 2012  thx for answer , but for the add blip , i have this error... Ok, this was a simple conversion from C++ (ScriptHook)... But try this:   Blip testBlip;ADD_BLIP_FOR_COORD(x, y, z, &testBlip);  // Your own x,y,z coords!CHANGE_BLIP_SPRITE(testBlip, 29);  // OR this "CHANGE_BLIP_SPRITE(testBlip, BLIP_SAFEHOUSE);" ??CHANGE_BLIP_COLOUR(testBlip, 0);  // 0 = whiteCHANGE_BLIP_DISPLAY(testBlip, BLIP_DISPLAY_MAP_ONLY);  // OR this "CHANGE_BLIP_DISPLAY(testBlip, 2);"CHANGE_BLIP_NAME_FROM_ASCII(testBlip, "My New Safehouse");   Hope it works  Link to post Share on other sites
Terreur69 20 Posted February 23, 2012 Share Posted February 23, 2012 work for compile, but nothing ingame . Â main.c > http://www.mediafire.com/?2iof1vc7rba94hf Link to post Share on other sites
Skorpro 129 Posted February 24, 2012 Share Posted February 24, 2012 (edited)  work for compile, but nothing ingame . main.c > http://www.mediafire.com/?2iof1vc7rba94hf Hi,  I decided to check out Scocl & test your main.c. Everything works perfectly! Preview Pic You have chosen curious coords... maybe for Gostown?!? The Player was spawned in water (south of Manhattan) and the Hospital blip was near the beach ...but it works!   /***********************************************************************  Fully stripped main scriptThis file is a part of scocl project by Alexander Blade © 2011 ***********************************************************************/#include <natives.h>#include <common.h>#include <strings.h>#include <types.h>#include <consts.h>void main(void){FORCE_LOADING_SCREEN(TRUE);float x = 21.0, y = -40.0, z = 15.0;THIS_SCRIPT_SHOULD_BE_SAVED();SET_CAR_DENSITY_MULTIPLIER(1.0);SET_MAX_WANTED_LEVEL(6);SET_PLAYER_CONTROL(GetPlayerIndex(), TRUE);LOAD_SCENE(x, y, z);SET_CHAR_COORDINATES_NO_OFFSET(GetPlayerPed(),11.5, -1369.32, 7.3144);SET_CHAR_HEADING(GetPlayerPed(), 180.0);ADD_HOSPITAL_RESTART(1283, -966.899, 641.137, 6000.0, 0);ADD_POLICE_RESTART(1478.99, -1134.73, 607.902, 6000.0, 0);FORCE_TIME_OF_DAY(8, 0);RELEASE_TIME_OF_DAY();RELEASE_WEATHER();WAIT(2000);FORCE_LOADING_SCREEN(FALSE);DO_SCREEN_FADE_IN_UNHACKED(4000);Blip testBlip;ADD_BLIP_FOR_COORD(1283, -966.899, 641.137, &testBlip);  // Your own x,y,z coords!CHANGE_BLIP_SPRITE(testBlip, BLIP_HOSPITAL);  // OR this "CHANGE_BLIP_SPRITE(testBlip, BLIP_SAFEHOUSE);" ??CHANGE_BLIP_COLOUR(testBlip, 0);  // 0 = whiteCHANGE_BLIP_DISPLAY(testBlip, BLIP_DISPLAY_MAP_ONLY);  // OR this "CHANGE_BLIP_DISPLAY(testBlip, 2);"CHANGE_BLIP_NAME_FROM_ASCII(testBlip, "New Hospital");WAIT(2000);PRINT_STRING_WITH_LITERAL_STRING_NOW("string", "Scocl test!", 3000, 1);while (TRUE) { WAIT(0);}}   The only thing I've changed...  RELEASE_TIME_OF_DAY();  // otherwise you get problems with the weather...CHANGE_BLIP_NAME_FROM_ASCII(testBlip, "New Hospital");  // it's a hospital now, not a safehouse;)...WAIT(2000);PRINT_STRING_WITH_LITERAL_STRING_NOW("string", "Scocl test!", 3000, 1);  // if you can read this after loading game everything works   Compiled like this:  scocl.exe GTAIV "C:\Input\main.c" "C:\Output\" DEBUGOUTPUT   Then I've made a new "script.img" (OpenIV 0.9.3) with my main.sco and the puzzle.sco & startup.sco (..Scocl\projects\stripped\sco).  Hope it works now Edited February 24, 2012 by Skorpro Link to post Share on other sites
Terreur69 20 Posted February 24, 2012 Share Posted February 24, 2012 Yeahhhh work perfect !!! big thank man ! other question , for add the fov on gtaIV , i trying this long Camera;CREATE_CAM(14, &Camera);SET_CAM_FOV(Camera, 50.0); Â Â but , dont work ingame , why ? and yes is for gostown Link to post Share on other sites
Skorpro 129 Posted February 24, 2012 Share Posted February 24, 2012 Hi, I got some messages how to compile own SCO mods. Here are my instructions:  1. Create in drive "C:" two folders called "Input" and "Output" 2. Copy your (eg.) main.c into "C:\Input" 3. Go to the SCOCL.EXE folder (..\Scocl\bin), create a text file with notepad and paste this content...  @echo offclsecho Compiling script start! (NON-Global!)pausescocl.exe GTAIV "C:\Input\main.c" "C:\Output\" DEBUGOUTPUTpause  ... and save it as compile.bat 4. Start compile.bat. You can find the main.sco in C:\Output folder now! 5. Download and install OpenIV and start it. 6. Open the File menu and choose Create... (or press CTRL+N) then IMG archive, type "script.img" as name and save it. Next press "Yes". 7. Now you get a clean window. Press the green "+" button and choose YOUR main.sco (C:\Output). DON'T FORGET TO ADD puzzle.sco and startup.sco (..\Scocl\projects\stripped\sco) too! 8. Open the File menu and choose Rebuild (or press Shift+CTRL+R) and press "Yes" then "Yes" and again "Yes". 9. Close OpenIV. 10. Make a BACKUP of your savegames folder (C:\Users\NAME\Documents\Rockstar Games\GTA IV\) then delete all "SGTA... files" (NOT "ControlMap.dat")! 11. Make a BACKUP of the original script.img (eg. in C:\Program Files\Rockstar Games\EFLC\TLAD\common\data\cdimages)! 12. Copy YOUR self-made script.img into the game folder (eg. in C:\Program Files\Rockstar Games\EFLC\TLAD\common\data\cdimages). 13. Start the game (a new game starts) & have fun  Don't forget: This are my first steps with Scocl... maybe it's too complicated but it works for me   Link to post Share on other sites
Skorpro 129 Posted February 24, 2012 Share Posted February 24, 2012 long Camera;CREATE_CAM(14, &Camera);SET_CAM_FOV(Camera, 50.0);   Thanx for the  In C++ it's:   Camera camera;  // NOT long!CREATE_CAM(14, &camera);SET_CAM_FOV(camera, 50.0);   PS: I'm looking forward to Gostown Link to post Share on other sites
Fantaseb 0 Posted February 24, 2012 Share Posted February 24, 2012 Hi, I got some messages how to compile own SCO mods. Here are my instructions:Â Â Thnaks much apprciated, that stupid ScoToolBox was annoying Link to post Share on other sites
jdmalex2 0 Posted February 25, 2012 Share Posted February 25, 2012 Hi, I got some messages how to compile own SCO mods. Here are my instructions: 1. Create in drive "C:" two folders called "Input" and "Output" 2. Copy your (eg.) main.c into "C:\Input" 3. Go to the SCOCL.EXE folder (..\Scocl\bin), create a text file with notepad and paste this content...  @echo offclsecho Compiling script start! (NON-Global!)pausescocl.exe GTAIV "C:\Input\main.c" "C:\Output\" DEBUGOUTPUTpause  ... and save it as compile.bat 4. Start compile.bat. You can find the main.sco in C:\Output folder now! 5. Download and install OpenIV and start it. 6. Open the File menu and choose Create... (or press CTRL+N) then IMG archive, type "script.img" as name and save it. Next press "Yes". 7. Now you get a clean window. Press the green "+" button and choose YOUR main.sco (C:\Output). DON'T FORGET TO ADD puzzle.sco and startup.sco (..\Scocl\projects\stripped\sco) too! 8. Open the File menu and choose Rebuild (or press Shift+CTRL+R) and press "Yes" then "Yes" and again "Yes". 9. Close OpenIV. 10. Make a BACKUP of your savegames folder (C:\Users\NAME\Documents\Rockstar Games\GTA IV\) then delete all "SGTA... files" (NOT "ControlMap.dat")! 11. Make a BACKUP of the original script.img (eg. in C:\Program Files\Rockstar Games\EFLC\TLAD\common\data\cdimages)! 12. Copy YOUR self-made script.img into the game folder (eg. in C:\Program Files\Rockstar Games\EFLC\TLAD\common\data\cdimages). 13. Start the game (a new game starts) & have fun  Don't forget: This are my first steps with Scocl... maybe it's too complicated but it works for me When I use that code I ended up with 182KB file as apposed to 18kb with command line.. Is this what u get?  also in scotoolbox it is different then before..   BTW.. I need to thank alexander blade for his amazing work on this project.. thank you ! this compiler is great.  Link to post Share on other sites
jdmalex2 0 Posted February 25, 2012 Share Posted February 25, 2012 (edited) ... Edited February 25, 2012 by jdmalex2 Link to post Share on other sites
Terreur69 20 Posted February 25, 2012 Share Posted February 25, 2012 long Camera;CREATE_CAM(14, &Camera);SET_CAM_FOV(Camera, 50.0);   Thanx for the  In C++ it's:   Camera camera;  // NOT long!CREATE_CAM(14, &camera);SET_CAM_FOV(camera, 50.0);   PS: I'm looking forward to Gostown it alters nothing in the games, i just want to add a filed of views of 70°, he is 50°, but nothing . Link to post Share on other sites
Skorpro 129 Posted February 25, 2012 Share Posted February 25, 2012  When I use that code I ended up with 182KB file as apposed to 18kb with command line.. Is this what u get? also in scotoolbox it is different then before..  182kb?? My source "main.c" has 1,53kb and the encoded "main.sco" 7,72kb...  I'm sorry, I don't use SCO ToolBox by flitskikker. It's a great tool but it still creates LOW level codes of SCO files, not HIGH level codes! Link to post Share on other sites
jdmalex2 0 Posted February 26, 2012 Share Posted February 26, 2012 (edited)  When I use that code I ended up with 182KB file as apposed to 18kb with command line.. Is this what u get? also in scotoolbox it is different then before..  182kb?? My source "main.c" has 1,53kb and the encoded "main.sco" 7,72kb...  I'm sorry, I don't use SCO ToolBox by flitskikker. It's a great tool but it still creates LOW level codes of SCO files, not HIGH level codes! I only use scotoolbox for converting to 1.4 older instead of 1.7 or for adding hooks to load new scripts in main game. By doing so I dont need puzzle and startup or remove game saves   Edited February 26, 2012 by jdmalex2 Link to post Share on other sites
Skorpro 129 Posted February 26, 2012 Share Posted February 26, 2012 Yeeah, back home again... back to GTA... GTA addicted?!?   By doing so I dont need puzzle and startup or remove game saves  Wow sounds good! Maybe I'll try it    it alters nothing in the games, i just want to add a filed of views of 70°, he is 50°, but nothing .  Yesterday I've created a small mod. Like GTA 2 style.    Press left ALT + X to switch mod on/off!   #include <natives.h>#include <common.h>#include <strings.h>#include <types.h>#include <consts.h>void main(void){FORCE_LOADING_SCREEN(TRUE);THIS_SCRIPT_SHOULD_BE_SAVED();SET_CAR_DENSITY_MULTIPLIER(1.0);SET_MAX_WANTED_LEVEL(6);SET_PLAYER_CONTROL(GetPlayerIndex(), TRUE);LOAD_SCENE(-420.245, 1137.605, 12.530);SET_CHAR_COORDINATES_NO_OFFSET(GetPlayerPed(), -420.245, 1137.605, 12.530);SET_CHAR_HEADING(GetPlayerPed(), 360.0);ADD_HOSPITAL_RESTART(1283, -966.899, 641.137, 6000.0, 0);ADD_POLICE_RESTART(1478.99, -1134.73, 607.902, 6000.0, 0);FORCE_TIME_OF_DAY(8, 0);RELEASE_TIME_OF_DAY();RELEASE_WEATHER();WAIT(2000);FORCE_LOADING_SCREEN(FALSE);DO_SCREEN_FADE_IN_UNHACKED(4000);Blip testBlip;ADD_BLIP_FOR_COORD(1283, -966.899, 641.137, &testBlip);  // Your own x,y,z coords!CHANGE_BLIP_SPRITE(testBlip, BLIP_HOSPITAL);  // OR this "CHANGE_BLIP_SPRITE(testBlip, BLIP_SAFEHOUSE);" ??CHANGE_BLIP_COLOUR(testBlip, 0);  // 0 = whiteCHANGE_BLIP_DISPLAY(testBlip, BLIP_DISPLAY_MAP_ONLY);  // OR this "CHANGE_BLIP_DISPLAY(testBlip, 2);"CHANGE_BLIP_NAME_FROM_ASCII(testBlip, "New Hospital");WAIT(2000);PRINT_STRING_WITH_LITERAL_STRING_NOW("string", "Scocl test!", 3000, 1);boolean start_var = 0;while (TRUE) { // IS_GAME_KEYBOARD_KEY_PRESSED if ( (IS_GAME_KEYBOARD_KEY_PRESSED(56)) && (IS_GAME_KEYBOARD_KEY_PRESSED(45)) )  // press left ALT + X { Camera testCam; Ped playerPed = GetPlayerPed();  if (start_var == 0) {  PRINT_STRING_WITH_LITERAL_STRING_NOW("STRING", "Mod ON!", 2000, 1);  CREATE_CAM(14, &testCam);  SET_CAM_ACTIVE(testCam, 1);  SET_CAM_PROPAGATE(testCam, 1);  ACTIVATE_SCRIPTED_CAMS(1, 1);    ATTACH_CAM_TO_PED(testCam, playerPed);  SET_CAM_ATTACH_OFFSET(testCam, 0.0, 0.0, 19.27);  //SET_CAM_ATTACH_OFFSET_IS_RELATIVE(testCam, 1);  POINT_CAM_AT_PED(testCam, playerPed);    //SET_CAM_POINT_OFFSET(testCam, 0.0, 0.0, 10.0);  //SET_CAM_POINT_OFFSET_IS_RELATIVE(testCam, 1);  SET_CAM_FOV(testCam, 70.0);  WAIT(500);    start_var = 1; } else if (start_var == 1) {  PRINT_STRING_WITH_LITERAL_STRING_NOW("STRING", "Mod OFF!", 2000, 1);  SET_CAM_ACTIVE(testCam, 0);  SET_CAM_PROPAGATE(testCam, 0);  ACTIVATE_SCRIPTED_CAMS(0, 0);  if (DOES_CAM_EXIST(testCam))  {  DESTROY_CAM(testCam);  }  WAIT(100);  SET_CAM_BEHIND_PED(playerPed);    start_var = 0; } } WAIT(0);}}   Now you have some cam natives to play around with it. Have fun  So, need some sleep now, c ya...  Link to post Share on other sites
Terreur69 20 Posted February 26, 2012 Share Posted February 26, 2012 (edited) thank you very much for helping me, and your script is huge, i love her! but i'm looking for is his: (sorry for the noob pictures ) Â and it is possible to press a button and we move directly to the video editor ? Edited February 29, 2012 by terreur69 Link to post Share on other sites
jdmalex2 0 Posted February 26, 2012 Share Posted February 26, 2012  http://pastebin(dot)com/jUW7VptT   if you want to use the hook the code is there.. just need to rename your script.. you may need to use SCOtoolbox to change the hooks natives to 1.7 if thats what ur on.. im on 1.4 and it all works just fine..  thanks for the code  here is ragdoll code if anyone wants  void Ragdoll(void){if (IS_GAME_KEYBOARD_KEY_PRESSED(56))     {      if (!IS_PED_RAGDOLL( GetPlayerPed() ))      {        SWITCH_PED_TO_RAGDOLL( GetPlayerPed(), 20000, 30000, 0, 0, 0, 0 );  GIVE_PLAYER_RAGDOLL_CONTROL( GetPlayerIndex(), TRUE ); // allows player control START_CHAR_FIRE(GetPlayerPed()); //sets player on fire      }      else      {        SWITCH_PED_TO_ANIMATED( GetPlayerPed(), FALSE );        GIVE_PLAYER_RAGDOLL_CONTROL( GetPlayerIndex(), FALSE ); EXTINGUISH_CHAR_FIRE(GetPlayerPed());      }    }}  Link to post Share on other sites
jdmalex2 0 Posted February 27, 2012 Share Posted February 27, 2012 Now you have some cam natives to play around with it. Have fun  So, need some sleep now, c ya... That Is great man, just tryed it out.. Pretty cool reminds me of old gta days .. its a little weird walking but in a vehicle its cool.. thanks for this! Link to post Share on other sites
Terreur69 20 Posted February 29, 2012 Share Posted February 29, 2012 thank you very much for helping me, and your script is huge, i love her! but i'm looking for is his: (sorry for the noob pictures ) Â and it is possible to press a button and we move directly to the video editor ? Link to post Share on other sites
Alexander Blade 1,424 Posted March 5, 2012 Author Share Posted March 5, 2012 seems like i need to release cleo iv still lol )) Link to post Share on other sites
jdmalex2 0 Posted March 5, 2012 Share Posted March 5, 2012 seems like i need to release cleo iv still lol )) would be cool.. but even if you allow modders to choose what version to compile for like 1.4 or other.. that would be cool too. Â even if you dont .. I love this compiler. Link to post Share on other sites
Fantaseb 0 Posted March 6, 2012 Share Posted March 6, 2012 seems like i need to release cleo iv still lol )) You sent me that on ICQ ages ago I remember asking. Link to post Share on other sites
VcSaJen 0 Posted March 6, 2012 Share Posted March 6, 2012 Â seems like i need to release cleo iv still lol )) Yes! Link to post Share on other sites
Terreur69 20 Posted March 6, 2012 Share Posted March 6, 2012 (edited) Â Is there a list of what the (IS_KEYBOARD_KEY_PRESSED( 31 )) numbers are? I tried the old (same as SannyBuilder) decimal keycodes and they aren't the same. Hi, try this... Â Virtual Key Codes (for Delphi in hexadecimal) or Virtual Key Codes (the same list...) Â (Hope it works! In C ++ it works great!) Â Maybe you need this too: "IS_CONTROL_PRESSED" CONTROL Key Codes (the 5th post by Spaceeinstein!) Â Have fun I do not understand too, script there, Â Â Â while (TRUE){ // IS_GAME_KEYBOARD_KEY_PRESSED if ( (IS_GAME_KEYBOARD_KEY_PRESSED(56)) && (IS_GAME_KEYBOARD_KEY_PRESSED(45)) )Â // press left ALT + X { Â Camera testCam; Â Ped playerPed = GetPlayerPed(); Â 56= left ALT 45= X Â and in the array X and ALT the numbers does not coreponde , i put ingame 76=F7 , theres nothing there . thank. Edited March 6, 2012 by terreur69 Link to post Share on other sites
Vintage88 4 Posted March 6, 2012 Share Posted March 6, 2012 1.0.4.0 is lame use new patch enb now support for 1.0.7.0 That's simply not true. ENB Series does not fully support 1.0.7.0. If you want all ENB features to be enabled, you have to use 1.0.4.0 or 1.0.3.0.  This anyone who says you should go to 1.0.7 for ENB does not know what they r talking about  Maybe im wrong, do u have a video of this magnificent ENB on 1.0.7 because i have seen nothing that can touch ice on 1.0.7...that is a fact  Just read the whole thread, time to code like a R*, lol...big thanks to The Blade!! p1ch3 or ChinaGreenElvis both offer ENB versions that blow iCE outta the water IMO. Link to post Share on other sites
jdmalex2 0 Posted March 6, 2012 Share Posted March 6, 2012 (edited)  Is there a list of what the (IS_KEYBOARD_KEY_PRESSED( 31 )) numbers are? I tried the old (same as SannyBuilder) decimal keycodes and they aren't the same. Hi, try this...  Virtual Key Codes (for Delphi in hexadecimal) or Virtual Key Codes (the same list...)  (Hope it works! In C ++ it works great!)  Maybe you need this too: "IS_CONTROL_PRESSED" CONTROL Key Codes (the 5th post by Spaceeinstein!)  Have fun I do not understand too, script there,    while (TRUE){ // IS_GAME_KEYBOARD_KEY_PRESSED if ( (IS_GAME_KEYBOARD_KEY_PRESSED(56)) && (IS_GAME_KEYBOARD_KEY_PRESSED(45)) )  // press left ALT + X {  Camera testCam;  Ped playerPed = GetPlayerPed();  56= left ALT 45= X  and in the array X and ALT the numbers does not coreponde , i put ingame 76=F7 , theres nothing there . thank. hex /key 56 = v 45 = e  as stated here: Virtual Key Codes (for Delphi in hexadecimal)  or look in consts.h in Scocl folders there all there  #define KEY_F7 65 Edited March 6, 2012 by jdmalex2 Link to post Share on other sites
Terreur69 20 Posted March 6, 2012 Share Posted March 6, 2012 yes but why in this function, (IS_GAME_KEYBOARD_KEY_PRESSED(56)) && (IS_GAME_KEYBOARD_KEY_PRESSED(45)) )Â // press left ALT + X Â the 56= left ALT and 45= X that the number on the site are not the same . and if i put 76 it does not work yet """VK_F7 76 F7 key""" ? Link to post Share on other sites