Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Edit of frankpetrov's client changing edit's


Bloodmorphed
 Share

Recommended Posts

Well for all of you that has read this guys post I'm going to show you how to complete get rid of this option IP thing. I was messing around with it because I did not want that option at all or to not even show up

Remote Hosting:

Open you're client source and in modClientTCP find:
```
frmMain.Socket.RemoteHost = Options.IP
```
Change it to:
```
frmMain.Socket.RemoteHost = "yourno-ipname.com"
```
(I'm assuming you portforwarded everything and all is good)

Now to completely REMOVE the option (This will prevent from rewriting it in your option.ini file)

Open modDatabase and Find AND Remove all codes below:
```
Call PutVar(fileName, "Options", "IP", Options.IP)
``````
Options.IP = "127.0.0.1"
``````
Options.IP = GetVar(fileName, "Options", "IP")
```
Now the Port (so they cannot change the port, I'm not sure if this is actually "useful" but it puts my mind at-ease)

Again in modClientTCP find:
```
frmMain.Socket.RemotePort = Options.Port
```
And make it

```
frmMain.Socket.RemotePort = "7001(or w/e port your using)"
```
Now to remove the option completely,
in modDatabase find and remove the code listed below: (all of them!)
```
Call PutVar(fileName, "Options", "Port", Str(Options.Port))
``````
Options.Port = 7001
``````
Options.Port = Val(GetVar(fileName, "Options", "Port"))
```
You probably already know how to do this, But for the people who don't and don't want their client used for other games, this is helpful

Credits:
frankpetrov for the original one
me for modifying it to completely remove the option
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

×
×
  • Create New...