Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

[Q] Compiling Test (test script without game)


Michael Wojtanis
 Share

Recommended Posts

Michael Wojtanis

Hello.

I just remeber somebody had a solution how to put GTAIV.exe to references and test script without running game.

 

Mayby somebody can tell how to do that again or find that words? Thank You.

Link to comment
Share on other sites

Michael Wojtanis

I know, rinepim not working, because my host was like polish government - thief.

I will back when site open. [i hope so, if not then i change to another].

 

What is the use?

I could write script faster. Without game. In mobile laptop. Just not all errors are showed and tested in Visual Studio [2010, but as nearly student of high school - i hope to get lastest for low price or from dreamworks]

Link to comment
Share on other sites

Visual studio'10 was much more stricter than '12/'13(If I remember correctly). And VS is not always showing all errors.

But maybe you asking for debugging/attach debugger to game ?

 

Best wishes,

Paul.

Edited by leftas
Link to comment
Share on other sites

Michael Wojtanis

You mean ScriptHookDotNet.dll add to references or what?

 

PS. No matter. Can You explain for future moders? Thank You.

Edited by Michael Wojtanis
Link to comment
Share on other sites

Sorry, seems I can't understand.

I mean to debug program with attaching VS debugger to it. It shows all values and etc. things... What to explain ?

 

Best regards,

Paul.

Link to comment
Share on other sites

writing to the console always works or just displaying what your script is doing using something like displaytext or make a debug menu or your own console with perframedraw.

Link to comment
Share on other sites

Michael Wojtanis

@Byteme

I know that. This one of easy way to find where is problem. [because ScriptHookDotNet do not show line... seems like ScriptHookDotNet need be changed... C++ i am come!]

Link to comment
Share on other sites

It sounds like you want to attach VS debugger to gtaiv.exe and then it will be able to read the pdb files generated from your gta script projects when your dll is executing. Those tell visual studio what line in your source is being executed. The scripthookdotnet wouldnt say... the console just prints the caught exception. It isn't supposed to help debug just like the c++ scripthook wont debug your game.

 

It is pretty hard to understand what ur saying but i think i know what u are trying to say.

 

Maybe this will help... http://msdn.microsoft.com/en-us/library/3s68z0b3%28v=vs.110%29.aspx#BKMK_Attach_to_a_running_process

Edited by byteMe420
  • Like 1
Link to comment
Share on other sites

It sounds like you want to attach VS debugger to gtaiv.exe and then it will be able to read the pdb files generated from your gta script projects when your dll is executing. Those tell visual studio what line in your source is being executed. The scripthookdotnet wouldnt say... the console just prints the caught exception. It isn't supposed to help debug just like the c++ scripthook wont debug your game.

if the .pdb is next to your assembly the exception stack trace string will contain filenames/line numbers, though; unless the script hook loads the files as a byte[] instead of as a URI

SsZgxdL.png

Inactive in GTA/R* title modification indefinitely pursuant to a court order obtained by TTWO. Good job acting against modding!

Link to comment
Share on other sites

So you want a way to catch the runtime errors before runtime? Seems kind of illogical...

It's not THAT much work, just reload a save game and the Script Hook will restart so you don't have to go all the way out of the game. (On some rare occasions you may have to reload multiple times)

Link to comment
Share on other sites

Wouldn't setting debugger in plugin's project settings to launch gtaiv.exe be the best way to go?

Link to comment
Share on other sites

Thanks, Silent.

Didn't knew that, just found out that you can start external program or browser with url.

 

Best regards,

Paul.

Edited by leftas
Link to comment
Share on other sites

Wouldn't setting debugger in plugin's project settings to launch gtaiv.exe be the best way to go?

if you like drunk cameras due to missing SecuROM launcher IPC, sure

SsZgxdL.png

Inactive in GTA/R* title modification indefinitely pursuant to a court order obtained by TTWO. Good job acting against modding!

Link to comment
Share on other sites

if you like drunk cameras due to missing SecuROM launcher IPC, sure

Oh you poor IV modders

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.