[Help] 4story Luncher C++

09/20/2015 21:39 WallPet#1
I wanted create a my personal luncher for 4story, the suprise was when i decide start it, however i dont have own Files, so i have a Folder from another server, i need how do put my ip to TClient for start Whit xxx.xxx.xx.xx 4816 Any one can help me?
[Only registered and activated users can see links. Click Here To Register...]
09/20/2015 22:03 AncientCompiler#2
Quote:
Originally Posted by WallPet View Post
I wanted create a my personal luncher for 4story, the suprise was when i decide start it, however i dont have own Files, so i have a Folder from another server, i need how do put my ip to TClient for start Whit xxx.xxx.xx.xx 4816 Any one can help me?
[Only registered and activated users can see links. Click Here To Register...]
First of this application was written in Vb.net not in C++ !

To start a client with some paramter use Shell.

Code:
Dim gameexe As String = "C:\yourpathtothegame\TClient.exe" 'non relative paths are dumb but not important for this example
Dim IP As String = "xxx.xxx.xx.xx"
Dim port As String = "4816"

Shell(gameexe & IP & port)
Btw.: Im sure the "Luncher" would be thankfull if you call him by the right name "Launcher"

I hope i`ve helped you.
09/20/2015 22:51 WallPet#3
Hmm i dont know what do you mean whit Shell, can you explain me? I yes isnt C++ Are Vb A component of they i think.
09/20/2015 22:56 AncientCompiler#4
Quote:
Originally Posted by WallPet View Post
Hmm i dont know what do you mean whit Shell, can you explain me? I yes isnt C++ Are Vb A component of they i think.
Just use the code example and put your values into the defines
09/20/2015 23:01 WallPet#5
Gives me an error, you have skype for 1 seg help?
09/20/2015 23:03 AncientCompiler#6
I dont use skype anymore cause of too many messages what i received in the past.

But anyway let us find a solution here so other ppl who are looking for the same thing can find the solution here.

It`s very simple.

Post me the error code please.
09/20/2015 23:13 WallPet#7
[Only registered and activated users can see links. Click Here To Register...]
09/20/2015 23:20 AncientCompiler#8
[Only registered and activated users can see links. Click Here To Register...]

1. Remove this line
2. Write "TClient.exe" (WITH these MARKS)
09/20/2015 23:31 WallPet#9
[Only registered and activated users can see links. Click Here To Register...] Gives me an error
[Only registered and activated users can see links. Click Here To Register...] And ... i do it good no?
09/20/2015 23:41 AncientCompiler#10
U havent entered the path to the exe you want to start.
So you have to start your application in the same folder where TClient.exe is.

This error only appears cause he cant find the exe.
09/21/2015 05:26 ReadersClub#11
srsly dafuq :D am i havin a bad dream or seein this for real? code copyin without an idea continues
09/21/2015 11:07 glossypvp#12
WallPet, please use your brain. It's not as hard as you think.
You know, I've started learning programming with VB.Net, then I realized that it's pretty easy, and not as efficent, professional as other programming languages. I just want to say that try to KEEP AWAY from VB.Net. Anyways if you'd like to stay at such an easy programming language as VB.Net, try C#. It's almost equal to VB.Net, except it's syntax.

With that loooong off topic text, I just wanted to say, that when I was learning programming, and I didn't know how to do something, I just googled it up, and tadaaa! The magic happened. I was suddenly able to do it! In your case, you'd like to start TClient with some specific parameters.
[Only registered and activated users can see links. Click Here To Register...] page explains how to do it.
So you would write something like:
Code:
Process.Start("TClient 84.4.111.111 1234")
.

See it? It's not hard. Next time google it up before you bring yourself into a such awkward situation.
09/21/2015 21:44 WallPet#13
Okay men, i am really glad for that text. You're a nice guy! Thanks for help!

But gives me error too.. and i did how you say..
10/02/2015 16:56 stotterer09#14
This is my code, why do you say you wrote it?(btw. this code is not really good)

which error does it give?
10/02/2015 17:34 WallPet#15
[Only registered and activated users can see links. Click Here To Register...] That's the error xD i added the another guy to skype.. but they dont accept me...