damian666 Posted June 11, 2011 Share Posted June 11, 2011 link to version 4 doest work, redirects to the thread instead, just so ya know ^.^Dami Link to comment Share on other sites More sharing options...
The New World Posted June 11, 2011 Author Share Posted June 11, 2011 lol. fixed Link to comment Share on other sites More sharing options...
The New World Posted June 11, 2011 Author Share Posted June 11, 2011 Now the client cannot be running while another instance of the client is in use, by any user on the computer.This image shows the first running instance of the client, and an error message showing after the attempted execution of another.![](http://www.freemmorpgmaker.com/files/imagehost/pics/a308323687c98bc874ef45c918a923ce.PNG) Link to comment Share on other sites More sharing options...
damian666 Posted June 11, 2011 Share Posted June 11, 2011 nice, by process ID?Dami Link to comment Share on other sites More sharing options...
ToshiroHayate Posted June 11, 2011 Share Posted June 11, 2011 @Rose:> Now the client cannot be running while another instance of the client is in use, by any user on the computer.Oh very nice! I never really thought about restricting multiple clients, definitely something worth having though. Link to comment Share on other sites More sharing options...
Rithy58 Posted June 11, 2011 Share Posted June 11, 2011 I don't understand how your converter work. Could you explain to me please?For mine, I manually set ALL the data and at the end, add extra value.For example:>! ```Public Sub ConvertPlayers()Dim i As LongDim i2 As LongDim i3 As LongDim i4 As LongDim i5 As LongDim i6 As LongDim i7 As LongDim i8 As Long>! For i = 1 To MAX_PLAYERS With Player(i) .Login = .Login .Password = .Password ' General .Name = .Name .Sex = .Sex .Class = .Class .Sprite = .Sprite .Level = .Level .exp = .exp .Access = .Access .PK = .PK ' Vitals For i2 = 1 To Vitals.Vital_Count - 1 .Vital(i2) = .Vital(i2) Next ' Stats For i3 = 1 To Stats.Stat_Count - 1 .Stat(i3) = .Stat(i3) Next .POINTS = .POINTS ' Worn equipment For i4 = 1 To Equipment.Equipment_Count - 1 .Equipment(i4) = .Equipment(i4) Next ' Inventory For i5 = 1 To MAX_INV .Inv(i5).Num = .Inv(i5).Num .Inv(i5).Value = .Inv(i5).Value Next For i6 = 6 To MAX_PLAYER_SPELLS .Spell(i6) = .Spell(i6) Next ' Hotbar For i7 = 1 To MAX_HOTBAR .Hotbar(i7).Slot = .Hotbar(i7).Slot .Hotbar(i7).sType = .Hotbar(i7).sType Next ' Position .Map = .Map .x = .x .y = .y .Dir = .Dir 'Quest For i8 = 18 To MAX_NPCS .NPCQuest(i8).NPCQuestProgress = 0 Next End With Call SavePlayer(i)Next>! ```In this example, I'm adding the Quest Data Holder(I guess that's what it's called?) in and set the value to 0 because the old account data do not contain the Quest Data. I tried using only one i but it doesn't work so I had to dim and use many different i for loop.I don't really understand how your work but it look more effieciant.Sincerely,Rithy Link to comment Share on other sites More sharing options...
The New World Posted June 11, 2011 Author Share Posted June 11, 2011 @Rithy58:> I don't really understand how your work but it look more effieciant.> > Sincerely,> RithyYou're probably talking about the```Get #F, , Resource(i)```All this does is load the Entire UDT as it is right now. Then to add the Data it holds you simply do```Put #F, , Resource(i)```and then under that you add the specific new members to be added to the converted file. For example:```Put #F, , Resources(i).TreeGender```@Damian666:> nice, by process ID?> > DamiNah, cheap function that checks it by process title. Figured it'd be different for every game.```' check for already running game client If WindowIsOpen(Options.Game_Name) Then Call MsgBox("Client already running!", vbCritical, "Error") Call DestroyGame End If```I recommend that the Options.Game_Name is changed to a hard coded string. Or I'll just make the Game_Name an in-client constant. Link to comment Share on other sites More sharing options...
Rithy58 Posted June 11, 2011 Share Posted June 11, 2011 @Rose:> You're probably talking about the```> Get #F, , Resource(i)> ```All this does is load the Entire UDT as it is right now. Then to add the Data it holds you simply do```> Put #F, , Resource(i)> ```and then under that you add the specific new members to be added to the converted file. For example:```> Put #F, , Resources(i).TreeGender> ```OH! Okay, thanks. I never actually know what the Get and Put do. Thanks a lot!So the Put will add the new type at the end of the file?So let me see if I understand the usage correctly.My goal is to convert the old NPC data by adding the Quest type to NPC.1\. Modify the Public Sub ConvertNpcs()``` For i = 1 To MAX_NPCS filename = App.Path & "\data\npcs\npc" & i & ".dat" F = FreeFile Open filename For Binary As #F ' Load old Values ConTextAdd ("Loading npc " & i & ".dat!") Get #F, , Npc(i) ' Add old Custom Values for the file being converted below 'Do I need to put anything here? ' Put new values with old values ConTextAdd ("Converting npc " & i & ".dat!") Put #F, , Npc(i) ' Add new Custom values to add to the file being converted below Put #F, , Npc(i).Quest Close #F ConTextAdd ("Npc " & i & ".dat converted!") Next```2\. Compile, Run Server, Press Convert NPC3\. Close the Server and then add the Quest in the NPCRec in modType4\. Remove Put #F, , Npc(i).Quest, Compile. DoneSincerely,Rithy Link to comment Share on other sites More sharing options...
The New World Posted June 11, 2011 Author Share Posted June 11, 2011 Thats exactly what you do.```' Add old Custom Values for the file being converted below```I meant to take that comment out, considering it's unneccesary. Link to comment Share on other sites More sharing options...
Rithy58 Posted June 11, 2011 Share Posted June 11, 2011 Oh wow, you just made my converter look like a piece of poop >.>This is so much better. One problem though is, what if I want to add a new type between the 2 current Vit type. So like instead of going Vit(1) then Vit(2) then some other type but I want a Vit(3) before those other type. Your current converter would add the Vit(3) to the end of the file, right?Sincerley,Rithy Link to comment Share on other sites More sharing options...
The New World Posted June 11, 2011 Author Share Posted June 11, 2011 @Rithy58:> Oh wow, you just made my converter look like a piece of poop >.>> > This is so much better. One problem though is, what if I want to add a new type between the 2 current Vit type. So like instead of going Vit(1) then Vit(2) then some other type but I want a Vit(3) before those other type. Your current converter would add the Vit(3) to the end of the file, right?> > Sincerley,> RithyHow it currently is, yes. But all you'd have to do is add the extra Get and Puts to Get the old data and use Put to put it in the order you want. Link to comment Share on other sites More sharing options...
Rithy58 Posted June 11, 2011 Share Posted June 11, 2011 Okay, thanks.Your is more efficient but required more steps to use than mine.I only have to add the Rec and New Type in the modConverter and done.Sincerely,Rithy Link to comment Share on other sites More sharing options...
damian666 Posted June 11, 2011 Share Posted June 11, 2011 any progress on that tile converter?since you were on the topic, would love to add extra layers, still fucks up for me >.<normal map conversion is easy, but the layers… *shiversoh, and thanx for the explanation of the no 2 clients stuff :PDami Link to comment Share on other sites More sharing options...
The New World Posted June 11, 2011 Author Share Posted June 11, 2011 @Damian666:> any progress on that tile converter?> > since you were on the topic, would love to add extra layers, still ducks up for me >.<> > normal map conversion is easy, but the layers… *shivers> > oh, and thanx for the explanation of the no 2 clients stuff :P> > DamiI'll look into it. Working on security right now. A tad more important. Link to comment Share on other sites More sharing options...
damian666 Posted June 11, 2011 Share Posted June 11, 2011 /agreedxd Link to comment Share on other sites More sharing options...
The New World Posted June 11, 2011 Author Share Posted June 11, 2011 So, someone tell me, should I take out the control arrays for the editors or not? Or maybe I should just release two versions of Eclipse Galaxy? Link to comment Share on other sites More sharing options...
ToshiroHayate Posted June 11, 2011 Share Posted June 11, 2011 @Rose:> So, someone tell me, should I take out the control arrays for the editors or not? Or maybe I should just release two versions of Eclipse Galaxy?That would be more convenient for the people. Instead of debating over which one should be kept. However, it's mostly your choice since you're the one who has to take the extra time out to do it. Link to comment Share on other sites More sharing options...
The New World Posted June 11, 2011 Author Share Posted June 11, 2011 Either way I'm working on reducing the number of packets for v0.0.5 Link to comment Share on other sites More sharing options...
Helladen Posted June 12, 2011 Share Posted June 12, 2011 I see it reduces your CPU usage. Thanks for clearing that up, I'm by no means anywhere a excellent or good programmer at that. Just expressing my opinion towards this optimization. Link to comment Share on other sites More sharing options...
The New World Posted June 12, 2011 Author Share Posted June 12, 2011 @Helladen:> I see it reduces your CPU usage. Thanks for clearing that up, I'm by no means anywhere a excellent or good programmer at that. Just expressing my opinion towards this optimization.Just quit straddling the opinions of a few people and experiment with things as a whole. Define or discover a more general opinion. It's like listening to someone tell you the sky is green on tuesdays because you don't know any better. Ask questions, don't assume shit. Link to comment Share on other sites More sharing options...
Joyce Posted June 12, 2011 Share Posted June 12, 2011 > So, someone tell me, should I take out the control arrays for the editors or not? Or maybe I should just release two versions of Eclipse Galaxy?I'd say keep them, It's not THAT hard to adjust to it.. And catering to the dummies while losing simplicity(just because they can't see how it makes it easier) is never a good idea. Link to comment Share on other sites More sharing options...
Stach Posted June 12, 2011 Share Posted June 12, 2011 I agree. Keep it the way it is. If they are too lazy to do 3 extra seconds to find the index then that's their problem. Link to comment Share on other sites More sharing options...
The New World Posted June 12, 2011 Author Share Posted June 12, 2011 Client-Side -> modGeneral > Sub Main():``` If App.PrevInstance Then MsgBox "Instance of game client is already running!", vbCritical, "Error: Hacking Attempt" DestroyGame Exit Sub End If``` Link to comment Share on other sites More sharing options...
Helladen Posted June 12, 2011 Share Posted June 12, 2011 @Stach:> I agree. Keep it the way it is. If they are too lazy to do 3 extra seconds to find the index then that's their problem.I believe in using control arrays, just not combine them all into one solid control. Sometimes merging all that code together can make it a lot harder to add minor things to the controls you already have. But it's just my opinion after all, I say this every time I say something others disagree with me on. Link to comment Share on other sites More sharing options...
elementaldisaster Posted June 12, 2011 Share Posted June 12, 2011 This looks awesome…:D cant wait to get on the comp tomorrow and give it a test drive! 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