zsuperxtreme_1 0 Report post Posted May 20, 2009 Terlebih dahulu aku ingin meminta maaf kepada member kelab bina game, sbb aku terstopkan diri aku buat game bersama korang, dan stop buat game untuk MSC. Ada masalah dalaman yang tragis x dptkan aku cerita kat sini. Cuma doakan agar kelab nie dapat terus berlangsung.Jom kawan - kawan kita cipta Multiplayer Online Game just for fun, later for something good for the team.Tujuan : Play and meet Kelab Bina Game in the gameSapa setuju......... angkat tangan...Yg diperlurkan1. Math expert2. Programmer (Zsuperxtreme)3. 3D modeller4. ArtLet's begin Quote Share this post Link to post Share on other sites
MalaYneuMaya 4 Report post Posted May 21, 2009 assalamualaikum...ada kisah tragis la plak...takpela..at least ko dah kembali..kehkehmultiplayer game..3d ke? mcm Arena Pahlawan dulu tu? Quote Share this post Link to post Share on other sites
zsuperxtreme_1 0 Report post Posted May 25, 2009 Ha ah mcm arena pahlawan, tapi nak upgrade kod sikit sbb nak support byk geng putera nie... ::icon_biggrin::Otai 3d kita vib kata nak join, leh la asah bakat kat sini.. hok hok hok.Sapa nak supply 3d character dipersilakan. Quote Share this post Link to post Share on other sites
LanoV 22 Report post Posted May 25, 2009 Hehehe... ZX dah kembali rupenya... kisah tragis tu jadikan sejarah, sekarang kita perlu looking forward for future mission and vision.PS:/ Concept 3D apa nak buat? Quote Share this post Link to post Share on other sites
zsuperxtreme_1 0 Report post Posted May 25, 2009 TARGET USER: Lebih dari 30,000 player.Problem (define dari Arena Pahlawan) - packet latency (walau guna UDP) - good support (4 user), if more than latencySolution - Socket through TCP - User Clipping (by distance e.g 1000px, longer reduce by alpha transparent and vanish) - Client terminal cuma receive data by perimeter.Ini flow project Quote Share this post Link to post Share on other sites
zsuperxtreme_1 0 Report post Posted May 25, 2009 Thanks lanog. ::icon_biggrin::KOnsep mcm arena pahlawan, fire-fire, tapi for the time being, target jumlah user, without latency.So kalau nak buat object 3d, just design je apa-apa jenis object, mcm pahlawan ke, alien ke, robot ke....format .3ds atau .mdl for 3d objectCurrent progress- Tgh buat coding untuk Socket client and server- 3D world - *empty environmentProgress needed to follow up- 3d Character Quote Share this post Link to post Share on other sites
LanoV 22 Report post Posted May 25, 2009 Okey... nak bongkar balik model2 lama nanti nie. BTW, low poly kan.. ker dah support high poly.. hehehe. Count me in 3d Character design (sumbang sikit2 jer arr..). Quote Share this post Link to post Share on other sites
zsuperxtreme_1 0 Report post Posted May 25, 2009 Still la low poly... huhu.... high poly x dapek nak mass dah. Quote Share this post Link to post Share on other sites
vib 0 Report post Posted May 25, 2009 huhuh... soalan...1. guna game enjin apa?2. satu kerekter brapa poly3. texture size?PS: Ada sesapa yg byk idea pasal kerekter...bleh la post concept/kerekter art kat sini...jadikan reference.. ::icon_smile:: Quote Share this post Link to post Share on other sites
NazreenNazari 5 Report post Posted May 26, 2009 alamak,best ni..aku ade ktinggalan ape2 ke? ::icon_biggrin:: Quote Share this post Link to post Share on other sites
LanoV 22 Report post Posted May 26, 2009 Sapa2 rajin, sila ler meng'3D'kan character2 nie.. hehe.Dari kiri ke kanan: Profesor Memory, Budak Nerd dan Uncle Beard.Dari kiri ke kanan: Magicianjin, Budak Gemuk dan Appleman.Source:Lanogame Quote Share this post Link to post Share on other sites
zsuperxtreme_1 0 Report post Posted May 26, 2009 VIB-1. Still guna A6, hoho, A7 byk pakai bone rigging, leceh sikit. Untuk next project nanti nak try torque, Vib, ada lelanun torque tak?-2. Poly the most optimum la (MAX : 1000 vertex), (BEST : Around 500 vertex)-3. Texture size (The Best : 300px), kalau lebih, takut lagging. Tapi untuk object mcm rumah ke, building ke, boleh but less than 1000 pxNazKo tak tertinggal apa apa lagi, huhu, jom join. tengok flow kalau nak involve, LanogCute character hehehehe. Nice.Kepada geng-geng sekalian, kalau kenal member yg best, ajak la join. daripada kita melepak, lagi baik kita produce something utk asah skill dan looking forward on something. Quote Share this post Link to post Share on other sites
zsuperxtreme_1 0 Report post Posted May 26, 2009 Programming Parameter Strategy for Mass Multiplayer Online Game1. Client send location and other parameters to server Parameter - user(id) name - user(id) score - user(id) weapon - user(id) health - user(id) message - user(id) location x - user(id) location y - user(id) location z - user(id) pan - user(id) action - user(id) bullet x - user(id) bullet y - user(id) bullet z - user(id) bullet panServer send information to client - same as above - Server yang decide health player bukan client. - Rules : if(inside_circle(user(id),1000)){ send(..all user information within range..)}Untuk delay, lagging n latency - jika information x dpt send dlm 1 second, player dpt aura of protection.Hall of fame - simpan score kat server.... - Otai medal display. Quote Share this post Link to post Share on other sites
zsuperxtreme_1 0 Report post Posted May 26, 2009 Aku try come up with basic game by this week... ::icon_wink:: boleh la buat reunion dalam game... hohohohoOk kpd member-member let's do it seriously... ::icon_biggrin::Aku guna server opis untuk start this game as server-side:D Quote Share this post Link to post Share on other sites
MalaYneuMaya 4 Report post Posted May 26, 2009 assalamualaikum...aku modelling karakter, atau benda2 organik mmg tak reti..objek2 biasa buleh le..kehkeh Quote Share this post Link to post Share on other sites
zsuperxtreme_1 0 Report post Posted May 26, 2009 OK je, buat la apa yang patut mcm box ke, barrel ke and etc... Quote Share this post Link to post Share on other sites
LanoV 22 Report post Posted May 26, 2009 zsuperxtreme wrote:Aku guna server opis untuk start this game as server-side:DBoss opis ko tak marah ker guna server opis tu... ::icon_bounce:: Quote Share this post Link to post Share on other sites
zsuperxtreme_1 0 Report post Posted May 28, 2009 Bos maintain je.. huhu... lagipun aku ada lebih kurang dua server. So no problem.... Takde sapa sapa ke nak hantar 3d kat sini.... Boleh la nak begin projek mass multiplayer nie... ::icon_biggrin:: Quote Share this post Link to post Share on other sites
MalaYneuMaya 4 Report post Posted May 28, 2009 assalamualaikum...blom lagi kot zx..masing2 bz agaknya..nanti2 ada la yg pos tu.. ::icon_biggrin:: Quote Share this post Link to post Share on other sites
zsuperxtreme_1 0 Report post Posted May 29, 2009 Ok takper, i'm waiting... yang penting this project is still on. ::icon_biggrin:: Quote Share this post Link to post Share on other sites
LanoV 22 Report post Posted May 29, 2009 MalaYneuMaya wrote:assalamualaikum...blom lagi kot zx..masing2 bz agaknya..nanti2 ada la yg pos tu.. ::icon_biggrin::Yup.. semua nampak sibuk. Aku pun lagi ler sibuk macam2... so tak dapat ler nak contribute cam dulu2, memandangkan komitmen dah bertambah. Komputer pun baru bukak kotak nie... dah lama berbalut tak sentuh.... hahaha. Quote Share this post Link to post Share on other sites
zsuperxtreme_1 0 Report post Posted June 2, 2009 Fuh komputer baru tu lan.. hehehe... takpe janji pc power boleh la buat game Quote Share this post Link to post Share on other sites
zsuperxtreme_1 0 Report post Posted June 2, 2009 Ok kepada member sekalian, disini serba sedikit kod , segala komen dihargaiKepada yang nak study study buat multiplayer game code, bleh la usya usya.Code Client - Server (50% done, x siap lagi) setup for 1000 player at this momentCode:Dim key(100) As IntegerDim x(100) As IntegerDim y(100) As IntegerDim z(100) As IntegerDim tArray() As StringDim num_of_Player As IntegerDim host As IntegerConst SERVER As Integer = 1Const CLIENT As Integer = 2Dim Data As StringPrivate Sub bntListen_Click()On Error GoTo t'sock1 is the name of our Winsock ActiveX Controlsock1.Close 'we close it in case it listening before'txtPort is the textbox holding the Port numbersock1.LocalPort = txtPort 'set the port we want to listen to '( the client will connect on this port too) host = SERVERsock1.Listen 'Start ListeningtmrSendData.Enabled = TruetxtLog = txtLog & "*** Server Listening" & vbCrLfExit Subt:MsgBox "Error : " & Err.Description, vbCriticalEnd SubPrivate Sub bntExit_Click()EndEnd SubPrivate Sub btnClient_Click()On Error GoTo t'sock1 is the name of our Winsock ActiveX Controlsock1.Close 'we close it in case it was trying to connect'txtIP is the textbox holding the host IP'txtIP can contain both hostnames ( like www.google.com ) or IPs ( like 127.0.0.1 )sock1.RemoteHost = InputBox("What is the IP for the server?", "Server IP", "127.0.0.1") 'set the remote host to the ip we wrote 'in the txtIP textbox'txtPort is the textbox holding the Port numbersock1.RemotePort = txtPort 'set the port we want to connect to '( the server must be listening on this port too) sock1.Connect 'try to connecthost = CLIENTExit Subt:MsgBox "Error : " & Err.Description, vbCriticalEnd SubPrivate Sub sock1_Close()'handles the closing of the connectionsock1.Close 'close connectiontxtLog = txtLog & "*** Disconnected" & vbCrLfEnd SubPrivate Sub sock1_Connect()'txtLog is the textbox used as our'chat buffer.'sock1.RemoteHost returns the hostname( or ip ) of the host'sock1.RemoteHostIP returns the IP of the hosttxtLog = "Connected to " & sock1.RemoteHostIP & vbCrLfEnd SubPrivate Sub sock1_ConnectionRequest(ByVal requestID As Long)'txtLog is the textbox used as our'chat buffer.'this event is triggered when a client try to connect on our host'we must accept the request for the connection to be completed'just check for stateIf sock1.State <> sckClosed Then sock1.Close'with this we accept the connection and we are now connected to'the client and we can start sending/receiving datasock1.Accept requestIDtxtLog = "Client Connected. IP : " & sock1.RemoteHostIP & vbCrLfEnd SubPrivate Sub sock1_DataArrival(ByVal bytesTotal As Long)'This is being trigger every time new data arrive'we use the GetData function which returns the data that winsock is holdingDim dat As String 'where to put the datasock1.GetData dat, vbString 'writes the new data in our string dat ( string format )tArray() = Split(dat, ";")Data = datIf host = SERVER Then ServerUpdateListIf host = CLIENT Then ClientUpdateListEnd SubFunction ClientUpdateList() Open "mmorg.db" For Output As #1 Print #1, Data Close #1End FunctionFunction ServerUpdateList()Dim i As IntegerDim found As Integerfound = -1For i = 0 To num_of_Player If (key(i) = Val(tArray(0))) Then found = iNext iIf found <> -1 Thenx(found) = Val(tArray(1))y(found) = Val(tArray(2))z(found) = Val(tArray(3))Elsex(num_of_Player + 1) = Val(tArray(1))y(num_of_Player + 1) = Val(tArray(2))z(num_of_Player + 1) = Val(tArray(3))num_of_Player = num_of_Player + 1End IfEnd FunctionPrivate Sub sock1_Error(ByVal Number As Integer, Description As String, ByVal Scode As Long, ByVal Source As String, ByVal HelpFile As String, ByVal HelpContext As Long, CancelDisplay As Boolean)'this event is to handle any kind of errors'happend while using winsock'Number gives you the number code of that specific error'Description gives you string with a simple explanation about the error'append the error message in the chat buffertxtLog = txtLog & "*** Error : " & Description & vbCrLf'and now we need to close the connectionsock1_Close'you could also use sock1.close function but i'prefer to call it within the Sock1_Close functions that'handles the connection closing in generalEnd SubPrivate Sub tmrSendData_Timer()On Error GoTo t'we want to send the contents of txtSend textboxDim dat As StringDim player As StringDim i As Integer Open "mmorg.db" For Input As #1 Line Input #1, player Close #1 tArray() = Split(player, ";") For i = 0 To num_of_Player dat = dat & key(i) & ";" & x(i) & ";" & y(i) & ";" & z(i) & vbNewLineNext iIf sock1.State = sckConnected ThenIf host = SERVER Then sock1.SendData dat 'trasmits the string to hostEnd If'error handling'( for example , we will get an error if try to send' any data without being connected )Exit Subt:MsgBox "Error : " & Err.Descriptionsock1_Close 'close the connectionEnd SubCode in the game for creating objectCode:string ops[80];var gkey;var gx;var gy;var gz;var_nsave fhandle;var find;function ent_find(tkey,tx,ty,tz){ find=0; you = ent_next (NULL); // retrieve first entity while (you != NULL) // repeat until there are no more entities { if(you.skill50 == tkey && you!=player){you.x =tx;you.y=ty;you.z=tz;find=1;} you = ent_next (you); // get next entity } return(find);}function ent_other_action(){ my.skill99 = 1;}function ent_create_(tkey,tx,ty,tz){ temp.x = tx; temp.y = ty; temp.z = tz; you = ent_create ("rocket.mdl", temp, ent_other_action); // store the entity pointer you.skill50 = tkey;}function other_player(){ while(1) { gkey = 1; //to prevent end file fhandle = file_open_read("mmog.db"); // test.txt contains "this,is,a,test" while(gkey != 0) { gkey = file_var_read(fhandle); // name gx = file_var_read(fhandle); // var x gy = file_var_read(fhandle); // var y gz = file_var_read(fhandle); // var pan if(gkey!=0) { //check_var(gkey); if(ent_find(gkey,gx,gy,gz) == 0){ent_create_(gkey,gx,gy,gz);} } wait(16); } file_close(fhandle); wait(1); } } Quote Share this post Link to post Share on other sites
LanoV 22 Report post Posted June 2, 2009 Wahh.. dah banyak coding nampaknya.. hahaha. Quote Share this post Link to post Share on other sites
zsuperxtreme_1 0 Report post Posted June 3, 2009 Sikit - sikit je, tengah practice camne nak reduce latency Quote Share this post Link to post Share on other sites