Yosephe Posted August 25, 2014 Author Share Posted August 25, 2014 Hi!I'm using engine Prospekt Source. I try to give access through the server by command "/setaccess The Raven 4". It makes Run-time error 13 Type mismatch. My code looks like this:Case "/setaccess"If UBound(Command) < 1 ThentxtChat.Text = vbNullStringExit SubEnd IfIf UBound(Command) < 2 ThentxtChat.Text = vbNullStringExit SubEnd IfIf FindPlayer(Command(1)) > 0 ThenCall SetPlayerAccess(FindPlayer(Command(1)), CLng(Command(2)))Call SendPlayerData(FindPlayer(Command(1)))ElseTextAdd "Wrong name."End IfI have no idea how could I fix this. Link to comment Share on other sites More sharing options...
Officer Johnson Posted August 25, 2014 Share Posted August 25, 2014 that engine is so outdated i wouldn't even bother. Link to comment Share on other sites More sharing options...
SkywardRiver Posted August 25, 2014 Share Posted August 25, 2014 > that engine is so outdated i wouldn't even bother.He's absolutely right. The max amount of players that engine can hold at one time without crashing terribly is like… seven.Try using a different engine would be my advice. Link to comment Share on other sites More sharing options...
Slasheree Posted August 25, 2014 Share Posted August 25, 2014 >! answering your problem, it's the space in your name that is causing the error:"/setaccess The Raven 4">!         0           1         2      3   <- indexes>! when it splits the command string into a string array this engine's code is meant to have the following order: command(0),name(1),access(2)>! and the problem is that in this line:>! ```>! Call SetPlayerAccess(FindPlayer(Command(1)), CLng(Command(2)))>! ```it's using Ravenas the access level, which you can be certain isn't a number xD>! My solution is (and this was made out of my head, make a backup before trying)>! change:>! ```>! If FindPlayer(Command(1)) > 0 ThenCall SetPlayerAccess(FindPlayer(Command(1)), CLng(Command(2)))>! ```to:>! ```>! Dim tmpname as String, l as Longfor l = 1 to UBound(Command) - 1 tmpname = tmpname & " " & Trim$(Command(l))nexttmpname = Trim$(tmpname)If FindPlayer(tmpname) > 0 ThenCall SetPlayerAccess(FindPlayer(tmpname), CLng(Command(UBound(Command))))>! ``` Link to comment Share on other sites More sharing options...
Yosephe Posted August 25, 2014 Author Share Posted August 25, 2014 Thank you for answers!Could you give me a advice? Which open-source DX8-rendering engine can hold more than 7 people?To Slasher: Thanks, your script works.EDIT: Now I try to make this command on client-side.. My code looks like this:Case "/setaccess"If GetPlayerAccess(MyIndex) < ADMIN_CREATOR Then GoTo continueFor l = 1 To UBound(Command) - 1tmpname = tmpname & " " & Trim$(Command(l))Nexttmpname = Trim$(tmpname)If tmpname > 0 ThenSendSetAccess tmpname, CLng(Command(UBound(Command)))End IfAnd if I try to give access to one word user or more word user, it writes error:Â The following error occured at "HandleKeyPresses" in 'modInput' at line 0.Run-time error '13': Type mismatch. Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted August 25, 2014 Share Posted August 25, 2014 EO 3.0 is DX8… Not sure how great it is but I do now it's buggy but I think it can handle more, may want to look into it. Link to comment Share on other sites More sharing options...
Slasheree Posted August 25, 2014 Share Posted August 25, 2014 didn't you forget the red part ?Dimtmpname as String, l as Longfor l = 1 to UBound(Command) - 1 Link to comment Share on other sites More sharing options...
Officer Johnson Posted August 25, 2014 Share Posted August 25, 2014 > Thank you for answers!> > Â > > Could you give me a advice? Which open-source DX8-rendering engine can hold more than 7 people?> > Â > > To Slasher: Thanks, your script works.> > Â > > EDIT: Now I try to make this command on client-side.. My code looks like this:> > Â > > Â > > Case "/setaccess"> > If GetPlayerAccess(MyIndex) < ADMIN_CREATOR Then GoTo continue> > For l = 1 To UBound(Command) - 1> > tmpname = tmpname & " " & Trim$(Command(l))> > Next> > tmpname = Trim$(tmpname)> > If tmpname > 0 Then> > SendSetAccess tmpname, CLng(Command(UBound(Command)))> > End If> > Â > > And if I try to give access to one word user or more word user, it writes error:Â > > The following error occured at "HandleKeyPresses" in 'modInput' at line 0.> > Run-time error '13': Type mismatch.use eo 3 Link to comment Share on other sites More sharing options...
Zetasis Posted August 25, 2014 Share Posted August 25, 2014 Eclipse Worlds is a good free open source DX8 engine and I would bet it could hold more then 7 players. Link to comment Share on other sites More sharing options...
SkywardRiver Posted August 25, 2014 Share Posted August 25, 2014 Well, I'm working on Eclipse Skywyre which is Dx8\. I may be releasing it further down the road. But first, I would definitely give EO 3 a look.Eclipse Worlds is also worth a look, but if you find it less than satisfactory you can always just rip features from it. Link to comment Share on other sites More sharing options...
Officer Johnson Posted August 25, 2014 Share Posted August 25, 2014 Lets face it most eclipse games at the most wont get over 10 to 20 players so i would personally choose eclipse worlds or eo 3 as for prospekt source it can just go away cause it will never handle that man players Link to comment Share on other sites More sharing options...
Zetasis Posted August 25, 2014 Share Posted August 25, 2014 > Lets face it most eclipse games at the most wont get over 10 to 20 players so i would personally choose eclipse worlds or eo 3 as for prospekt source it can just go away cause it will never handle that man playersProspekt could hold more players but it would require an over haul in the code. Link to comment Share on other sites More sharing options...
Growlith1223 Posted August 26, 2014 Share Posted August 26, 2014 I have returned….technically... anywho, Your best bet would be to try any engine really. try the ones you find intriguing then choose one from the assortment of engines you have picked. then go from there, every engine is different so there's really no telling what to pick. choose what's best for you and go from there. If you need any help with some programming don't hesitate to message me or anyone else on here for that matter.- Growlith1223 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