Kumi Posted February 24, 2013 Author Share Posted February 24, 2013 Hello everybody,i Cant really understand this source code edits, im using Eclipse advance v3.0.7How 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 More sharing options...
Kumi Posted February 25, 2013 Author Share Posted February 25, 2013 Somone, Please? Link to comment Share on other sites More sharing options...
Kumi Posted February 25, 2013 Author Share Posted February 25, 2013 Somone, Please? Link to comment Share on other sites More sharing options...
Growlith1223 Posted February 25, 2013 Share Posted February 25, 2013 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. Link to comment Share on other sites More sharing options...
Kumi Posted February 25, 2013 Author Share Posted February 25, 2013 Didin't know i doubled posted oO.Anyway, my tits are calm and i did find some tutorial on how to change the starting points, but it didint work.Thats why im asking for help. Link to comment Share on other sites More sharing options...
Lavos Posted February 25, 2013 Share Posted February 25, 2013 You can't do that in EA, there is nothing like that featured in the engine itself. Just use the boot options in the map editor. Link to comment Share on other sites More sharing options...
Kumi Posted February 25, 2013 Author Share Posted February 25, 2013 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. Link to comment Share on other sites More sharing options...
Kumi Posted February 28, 2013 Author Share Posted February 28, 2013 Anyone helpfull here? Link to comment Share on other sites More sharing options...
PD Posted March 1, 2013 Share Posted March 1, 2013 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=1StartMapX=5StartMapY=5You 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:``` NextEnd 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:``` NextEnd 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 More sharing options...
MrIce Posted March 1, 2013 Share Posted March 1, 2013 > 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 More sharing options...
Kumi Posted March 1, 2013 Author Share Posted March 1, 2013 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 More sharing options...
PD Posted March 1, 2013 Share Posted March 1, 2013 > 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 More sharing options...
Synergy Posted March 1, 2013 Share Posted March 1, 2013 > 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 More sharing options...
Kumi Posted March 2, 2013 Author Share Posted March 2, 2013 > 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 More sharing options...
Synergy Posted March 2, 2013 Share Posted March 2, 2013 > 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.exeDelete that map (server -> data files -> maps). Link to comment Share on other sites More sharing options...
Kumi Posted March 4, 2013 Author Share Posted March 4, 2013 Thanks, i do that to prevent further errors ![:)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/smile.png) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now