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

Need Help with Player SPAWN POINT LOCATIONS


Kumi
 Share

Recommended Posts

Hello everybody,

i Cant really understand this source code edits, im using Eclipse advance v3.0.7

How do i do a diffrent spawn locations for all the classes, so when they spawn, They will spawn there!

PLEASE, provide step by step, i tryed but i coulden't do this.

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

This is very simple ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png)

1) Go into the data folder which can be found in the server folder. Open up Classes.ini and add this to the bottom of every class:

StartMap=1

StartMapX=5

StartMapY=5

You can change those values to make players of certain classes spawn in different places.

2) In the server folder, open up the server.vbp file. Once it has loaded, open up the modTypes module (it can be found in the top-right, within the 'Modules' tree.

3) Scroll down until you find 'Private Type ClassRec' and before 'End Type' add in this:

```

startMap As Long

startMapX As Long

startMapY As Long

```

4) Open up the 'modDatabase' module and find the 'LoadClasses()' subroutine. Scroll to the bottom of that subroutine and before:

```

Next

End Sub

```

Add:

```

' get starting map info

Class(i).startMap = Val(GetVar(Filename, "CLASS" & i, "StartMap"))

Class(i).startMapX = Val(GetVar(Filename, "CLASS" & i, "StartMapX"))

Class(i).startMapY = Val(GetVar(Filename, "CLASS" & i, "StartMapY"))

```

5) Below the 'LoadClasses()' sub there will be the 'SaveClasses()' sub. At the bottom of that sub before:

```

Next

End Sub

```

Add:

```

' start map info

Call PutVar(Filename, "CLASS" & i, "StartMap", STR(Class(i).startMap))

Call PutVar(Filename, "CLASS" & i, "StartMapX", STR(Class(i).startMapX))

Call PutVar(Filename, "CLASS" & i, "StartMapY", STR(Class(i).startMapY))

```

6) Find the 'AddChar(ByVal index As Long, ByVal Name As String, ByVal Sex As Byte, ByVal ClassNum As Long, ByVal Sprite As Long)' sub and within that sub find:

```

Player(index).Map = START_MAP

Player(index).x = START_X

Player(index).y = START_Y

```

And replace it with this:

```

Player(index).Map = Class(ClassNum).startMap

Player(index).x = Class(ClassNum).startMapX

Player(index).y = Class(ClassNum).startMapY

```

7) Save the project and compile the server (File>Make Server.exe) and you're done! ![^_^](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/happy.png)
Link to comment
Share on other sites

> No. Reasons are you need to calm your tits and not double post… second reason being that if you actually searched, you would have found a tutorial for it.

For duck sake, getting sick of you haters seriously, is it so hard to be nice? THE GUY IS NEW, you WAS NEW to before. And dude, you tryed the search function? Seriously? I use it everyday, the ONLY topics i get are outdated, with outdated LINKS just linking back the main community page of this forum.
Link to comment
Share on other sites

Many thanks _Zesh_. i Will try that out soon. Also thanks _Ice Tee_, I appritate it since im new at Eclipse and also at source edits and stuff. Just trying to learn something here.

Thank you both for being helpfull and polite not hateing on a new guy ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) !
Link to comment
Share on other sites

> Many thanks _Zesh_. i Will try that out soon. Also thanks _Ice Tee_, I appritate it since im new at Eclipse and also at source edits and stuff. Just trying to learn something here.
>
> Thank you both for being helpfull and polite not hateing on a new guy ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) !

No problem. Have you got it working?
Link to comment
Share on other sites

> So i cant change my starting locations? Becouse the old location i used to spawn in is bugged and will crash if i spawn in it.

If you've got a bug like that you need to fix it, not just work around it. Otherwise it'll potentially become so deep-routed in your game it'll be incredibly difficult to remove and will put you off finishing your game.

And I'm pretty sure you just change the boot info' as you need.. ?
Link to comment
Share on other sites

> No problem. Have you got it working?

Wow! yes, many thanks! now i can continue working on my game better ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png)

so happy that i can understand on how this works! Thanks again!

> If you've got a bug like that you need to fix it, not just work around it. Otherwise it'll potentially become so deep-routed in your game it'll be incredibly difficult to remove and will put you off finishing your game.

The place where i used to spawn got bugged by a event i did, and i can't remove the event. when i spawn in that map it says some Sub-script error 9 and i have to close the server.exe
Link to comment
Share on other sites

> Wow! yes, many thanks! now i can continue working on my game better ![:D](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/biggrin.png)
>
> so happy that i can understand on how this works! Thanks again!
>
> The place where i used to spawn got bugged by a event i did, and i can't remove the event. when i spawn in that map it says some Sub-script error 9 and i have to close the server.exe

Delete that map (server -> data files -> maps).
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...