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

[EO] Hard-Coded Options


WiseRock
 Share

Recommended Posts

Hello Today I am going to show you how to delete your IP,Port, Game Name from your options. And also I am going to show you how to load your own news from your own vb6 client. You don't want people changing the name of your game and changing the news.

This is Compatible with All Versions of Eclipse from Eclipse Dawn to Eclipse Advanced

This Helps with Security of your IP and Port.

Lets get Started!

First Go to modConstants

add this any where you like

```
Public Const GameIP as String = "127.0.0.1"

Public Const GamePort as String = 7001

Public Const GameName as String = [Your Game's Name]

```

Then Go to modClientTCP

Find

```
' connect

frmMain.Socket.RemoteHost = Options.IP

frmMain.Socket.RemotePort = Options.Port
```

Replace it with

```
' connect

frmMain.Socket.RemoteHost = GameIP

frmMain.Socket.RemotePort = GamePort
```

Then now go to SaveOptions

Delete the game name and

```

Call PutVar(filename, "Options", "GameName",Options.Game_Name)

Call PutVar(filename, "Options", "IP", Options.IP)

Call PutVar(filename, "Options", "Port", str(Options.Port))
```

Scroll down till you find

```
If Not FileExist(filename, True) Then

Options.GameName = Eclipse Origins

Options.Password = vbNullString

Options.SavePass = 0

Options.Username = vbNullString

Options.IP = "127.0.0.1"

Options.Port = 7001

Options.MenuMusic = vbNullString

Options.Music = 1

Options.sound = 1

Options.Debug = 0

Options.NightTile = 1

SaveOptions
```
Delete the IP and Port

and Game Name

Now type Ctrl+F and go to replace

1st Box

Game_Name

2nd Box

GameName

You should get about 6-9 replacements

–---------------------------------------------------

EDIT: I have removed the News Heres a better tutorial for News ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)

[Here's the Link for a Better News](http://www.touchofdeathforums.com/community/index.php?/topic/129314-make-online-news-in-frmmenu/)

No Credits Need ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) (:

Your Done!

I hope this had helped you

If you would like to thank me then play my game when it comes out to beta ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)

Edit: Make Sure You Delete in modTypes

```

Private Type OptionsRec

Game_Name As String

savePass As Byte

Password As String * NAME_LENGTH

Username As String * ACCOUNT_LENGTH

IP As String

Port As Long

MenuMusic As String

Music As Byte

sound As Byte

Debug As Byte

End Type

```
Delete GameName,Ip,Port

![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png)
Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...
> This is not a HardCode ,it's just a real static and can't be changed at Config.ini not really a good idea . but nice

You are genuinely a moron aren't you? "Hardcode" isn't "difficult code", it's code that is unchangeable outside the source.
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...