Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Diamond Casino Heist
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Red Dead Online

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

      1. Events
    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

    2. GTA 6

    3. GTA V

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

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

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    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. DYOM
      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
    3. Gangs

    1. Announcements

    2. Support

    3. Suggestions

Sign in to follow this  
Wiebrendh

Mod Manager

Recommended Posts

Wiebrendh

So, i made a windows form application, worked perfect on my pc, tested it on my laptop, and it would not open... Some other people had the same problem, and some had not. Anyone an idea what the problem could be?

Share this post


Link to post
Share on other sites
Maro Hannover

Give a link. i will test it icon-link-128.png

Share this post


Link to post
Share on other sites
Wiebrendh

I dont need another test, i tested it on 15 pc' already. I just need to know how i can fix this

Share this post


Link to post
Share on other sites
Maro Hannover

Why don't you post the code :D


i think you typed the Windows Forms Very Fast or You did'nt compile it properly.

Edited by Maro Hannover

Share this post


Link to post
Share on other sites
LordOfTheBongs

lots of things could make an app hang, if u wanna send me a copy of the exe ill look at it and see why

Share this post


Link to post
Share on other sites
Maro Hannover

No No This issue happened with me much and i've fixed it. it is problem vghost.exe. he had compiled with debugging. He should Build Solution Instead.

Share this post


Link to post
Share on other sites
LordOfTheBongs

No No This issue happened with me much and i've fixed it. it is problem vghost.exe. he had compiled with debugging. He should Build Solution Instead.

Maro, until we see his code or he actually explains what he has done we are both just guessing. He gave neither of us enough information to help him. ;)

Share this post


Link to post
Share on other sites
Rugz007

Yeah :) Weibren you may give the code ;) but don't you think it's Iv coding forum not Windows form app

Share this post


Link to post
Share on other sites
Maro Hannover

Post the code using this button < >

Share this post


Link to post
Share on other sites
Wiebrendh

Post the code using this button < >

 

i know that, but the program has multiple .cs and the settings are also important

Share this post


Link to post
Share on other sites
Rugz007

He is right :D lolol

Share this post


Link to post
Share on other sites
leftas

Back from holidays. :)

You don't try to "try and catch" 'check if directory exists' that's your error.

You set default folder but you don't check it, if it exists(GetFiles) ?

When you messing with files, you should ALWAYS use Directory.Exists(Thanks to @LordofTheBongs) "try and catch"

 

Regards,

Paul.

Edited by leftas

Share this post


Link to post
Share on other sites
Rugz007

Dude I do like your style

 

Regards

Rugved

 

It a awesome

Share this post


Link to post
Share on other sites
Wiebrendh

Back from holidays. :)

You don't try to "try and catch" that's your error.

You set default folder but you don't check it, if it exists(GetFiles) ?

When you messing with files, you should ALWAYS use "try and catch"

 

Regards,

Paul.

 

Thanks, i will try it out :)

Share this post


Link to post
Share on other sites
LordOfTheBongs

delete

Edited by LordOfTheBongs

Share this post


Link to post
Share on other sites
leftas

well here is why it wont start on my pc...

 

[image]

Yes for me also, because I use retail version and he is not checking if it's retail or it's steam, so yea I told him he should check if files exists(try catch) :)

Thanks to @LordOfTheBongs do Directory.Exists

 

@Rugz007

Please stay on topic.

 

Regards,

Paul.

Edited by leftas

Share this post


Link to post
Share on other sites
LordOfTheBongs

it is a good idea to use a form load event instead of adding code to the constructor of the form so u make sure the form completes initialization before doing anything but it doesnt matter much i guess if u know what ur doing

  • Like 1

Share this post


Link to post
Share on other sites
Rugz007

Okay

 

Regards,

Rugved

Share this post


Link to post
Share on other sites
LordOfTheBongs

delete

Edited by LordOfTheBongs
  • Like 1

Share this post


Link to post
Share on other sites
Maro Hannover

@Leftas

how you made this

 

try and catch

the line.

 

Regards,

Maro

Share this post


Link to post
Share on other sites
Wiebrendh

@Leftas

how you made this

 

try and catch

the line.

 

Regards,

Maro

 

Look at the comment options

 

also i want to suggest, when getting files, u should check for the following extensions...

 

.net

.dll

.cs

.vb

 

;)

 

oh btw... here i edited your click event for opening the settings form, so people cant spam opening multiple forms...

        private void ModManager_Settings_Click(object sender, EventArgs e)        {            foreach (Form form in Application.OpenForms)            {                if (form is Settings)                {                    form.Activate();                    return;                }            }             Form Settings = new Settings();            Settings.Show();        }

 

 

Haha did not even know this was possible, thanks :)!

 

 

##EDIT I found the problem, i used the location of GTA IV before checking if it existed, and i used regions to hide it. Thanks for all the help!

Edited by Wiebrendh

Share this post


Link to post
Share on other sites
Maro Hannover

Will You Release that awesome Windows form?

Share this post


Link to post
Share on other sites
leftas

 

[nvm...]

 

 

##EDIT I found the problem, i used the location of GTA IV before checking if it existed, and i used regions to hide it. Thanks for all the help!

 

Yea I said that you not checking if that folder exists ;)

 

@Maro

OH MY GOD, really he gave you a SOURCE CODE, you just need to edit few lines and then you got working same app.

Please don't make joke of my sign :)

 

Best Regards,

Paul.

  • Like 2

Share this post


Link to post
Share on other sites
PlayPrey

I took a look at it, the main issue is "System.IO.DirectoryNotFoundException", I changed where the game was installed (because I instealled steam elsewhere, and I only got EFLC installed)

Now it is searching for a folder named disabledscripts inside EFLC, and since that folder dont exist, the program crashes...

 

When I manually made the folder "disabledscripts" I got the program running, asking for the installation directory.

 

So yeah, LordOfTheBongs already gave you the solution... :p

 

Other than that, good job, it did detect scripthookdotnet.dll ;) ( which was my only .dll file in my scripts folder )

  • Like 1

Share this post


Link to post
Share on other sites
Wiebrendh

 

 

[nvm...]

 

 

##EDIT I found the problem, i used the location of GTA IV before checking if it existed, and i used regions to hide it. Thanks for all the help!

 

Yea I said that you not checking if that folder exists ;)

 

@Maro

OH MY GOD, really he gave you a SOURCE CODE, you just need to edit few lines and then you got working same app.

Please don't make joke of my sign :)

 

Best Regards,

Paul.

 

 

Yeah, but i could not find the last one, but that was in the region.

 

 

I took a look at it, the main issue is "System.IO.DirectoryNotFoundException", I changed where the game was installed (because I instealled steam elsewhere, and I only got EFLC installed)

Now it is searching for a folder named disabledscripts inside EFLC, and since that folder dont exist, the program crashes...

 

When I manually made the folder "disabledscripts" I got the program running, asking for the installation directory.

 

So yeah, LordOfTheBongs already gave you the solution... :p

 

Other than that, good job, it did detect scripthookdotnet.dll ;) ( which was my only .dll file in my scripts folder )

 

Yeah, that is also fixed :) now it will create that directory if it does not exist. Thanks!

 

@Maro i know you are a beginner, but that you wrote your own name wrong in you profile picture. That made me cry

  • Like 1

Share this post


Link to post
Share on other sites
leftas

@Wiebrendh

So yea, always use debugging in Visual Studio, it helps a lot!

P.S. He found some company logo and stole it, Maybe ?

 

Best Regards,

Paul.

Edited by leftas

Share this post


Link to post
Share on other sites
Wiebrendh

@Wiebrendh

So yea, always use debugging in Visual Studio, it helps a lot!

P.S. He found some company logo and stole it, Maybe ?

 

Best Regards,

Paul.

 

Thanks again.

Dont think he stole it, he just failed :)

Wou

Share this post


Link to post
Share on other sites
Noox

Why don't you post the code :D

 

i think you typed the Windows Forms Very Fast or You did'nt compile it properly.

It's not like he has to compile it manually, the compiler does that all you have to do is press a button.

Share this post


Link to post
Share on other sites
Wiebrendh

 

Why don't you post the code :D

 

i think you typed the Windows Forms Very Fast or You did'nt compile it properly.

It's not like he has to compile it manually, the compiler does that all you have to do is press a button.

 

 

Yeah, compiling is not a very difficult task..

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

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