Coding a launcher.
 |
|
 |
| |
hristobg  |
Posted: Thursday, Sep 15 2011, 13:26
|
IV Map Modder, Scholarship Edition Project Leader

Group: Members
Joined: Aug 1, 2009


|
Hi, fellas! I need your help. Okay, first of all, I have absolutely none knowledge of coding in Delphi, Visual Basic or whatever software it is.
I'm still a beginner and I need help. I want to create a simple launcher for my GTA San Andreas game (mod). Just, maybe, a few features - a button that leads to the official site of the mod, list chooser (I have to explain it more detailed) that loads two different files.
Okay, you didn't get what I said, right? I love to explain myself with examples. Okay, this launcher is planned for ENB Series. I have enbseries_low.ini and enbseries_high.ini. In the launcher I want a list that chooses which file to load, before starting the game, '_low' is for users that uses weak computers and '_high' - for the powerful one. I don't want the final users to manual rename enbseries_high to enbseries, just game to work, I want that launcher to automaticaly do it for them.
Hope you understood me well, because my English isn't very good, as you see... Thank you in advance!Regards, Christo
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
hristobg  |
Posted: Thursday, Sep 15 2011, 18:35
|
IV Map Modder, Scholarship Edition Project Leader

Group: Members
Joined: Aug 1, 2009


|
Using Virtual Basic, right? I have no idea where to put that code, but I'll experiment. Thank you.
EDIT: After the game is closed, I guess the file will remain with it's new name. Maybe there should be something like checking before renaming.
Regards, Christo This post has been edited by hristobg on Thursday, Sep 15 2011, 18:38
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
hristobg  |
Posted: Thursday, Sep 15 2011, 18:45
|
IV Map Modder, Scholarship Edition Project Leader

Group: Members
Joined: Aug 1, 2009


|
Which program can I use for that program language?
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
hristobg  |
Posted: Thursday, Sep 15 2011, 18:53
|
IV Map Modder, Scholarship Edition Project Leader

Group: Members
Joined: Aug 1, 2009


|
Thank you very much for offering your help! I was wondering is there a way to read from the registry and search where the game (actually is San Andreas, but doesn't matter) is installed, so there will be no need to add the launcher into game folder. But, I guess, I should test my skills first, gain some experience with this software, then asking about that. This post has been edited by hristobg on Thursday, Sep 15 2011, 18:58
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
hristobg  |
Posted: Thursday, Sep 15 2011, 19:49
|
IV Map Modder, Scholarship Edition Project Leader

Group: Members
Joined: Aug 1, 2009


|
As I said earilier, I have none knowledge and I'm completely new to this kind of stuff (  ), so I want to ask you another question. I have button 'Start' and I pasted the code you gave me. The path is SOFTWARE\Rockstar Games\GTA San Andreas\Installation and the key in which is writen the installation path is 'ExePath'. I pasted all that in the code box which appeared after double clicking on the button 'Start' that I've created. And then... I failed. It says there is some error when I try to start the application, maybe I just need to watch more tutorials. And I have some radio buttons (high settings, medium settings, low settings), but they're just useless, they have no operations. I don't know how to check which radiobutton is choosed. I know, I sound as a total retard now to you...  EDIT: Looks like the program thinks the RegistryKey is unknown, also, I simply tried that code: | CODE | | System.Diagnostics.Process.Start("gtaiv.exe"); |
^ I changed the .exe path, builded the project, pressed the button that this code was relative to and nothing happened. Regards, Christo This post has been edited by hristobg on Thursday, Sep 15 2011, 20:21
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
nightwalker83  |
|
Don't mind me

Group: Members
Joined: Oct 10, 2004


|
| QUOTE (K^2 @ Monday, Sep 19 2011, 21:39) | | You got "yelled at" for posting a source to something that would have been more useful as a binary download. There is nothing wrong with posting source code if that's what the discussion is about. But yeah, in this case, it's probably better kept to PM. It looks like hristobg has the coding portion covered anyways. |
No, that is not why I was yelled at, it was a thread I started! The reason I was yeleld at was because I didn't realize the not everyone on here would have access to VB6. On the other forum I frequent they only allow posting source code to protect the user from dangers that might be in the compiled files. Yeah, although, I personally think Andrew would have been better teaching hristobg VB rather than C# since it is a bit easier to understand if you are new to programming but whatever. I know how to code in C# I have a bad habit of going back to VB6. This post has been edited by nightwalker83 on Monday, Sep 19 2011, 11:26
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
K^2  |
|
Vidi Vici Veni

Group: Zaibatsu
Joined: Apr 14, 2004



|
Back in the days, when C# didn't even exist and Visual Basic was up to something like 4.0, I remember something a university professor was telling to his introduction to programming students.
"It is ok if you know nothing about programming. It's much worse if you know BASIC."
Back then I programmed in QBasic and played a bit with VB. I knew enough C to get by, but haven't really gotten into it yet. I did not really understand what the hate was all about. Nor did I understand it after switching completely to C++. The phrase really gained clarity over time, as I learned processor architecture, wrote machine code on different platforms, some audio drivers, got proficient with C and C++, picked up a few more languages. It's true. Visual Basic is completely fine if that's all you are ever planning to do, but if you ever want to program something serious, any variation of BASIC is absolutely the worst choice for your first language. Yes it's easy. Yes, you can teach it to someone who've never programmed in less time than any other language. But damn, does it mess you up! I'm not even sure I can point to a specific problem with it. It just makes you used to doing things the wrong way. The messy inefficient way. The kind of way that will make you want to cry every time you see a Dr. Watson window pop up. I remember that feeling when I was first learning linked lists and binary trees.
I honestly couldn't tell you if C# is any better in that regard. I suspect it is, but having grown up on BASIC, I can only make claims about pitfalls of that particular language.
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
Pages:
(2) [1] 2
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
| |
 |
|
 |
|