Last edited by awesomo; 12-09-15 at 03:43 PM.
hi, when build zGameServer, debug this error on line
fatal error C1900: Il mismatch between 'P1' version '20081201' and 'P2' version '20080116'1>LINK : fatal error LNK1257: code generation failed,
other question is: where configure limits users on server ?
Hi folks, how i can adjust skybox at client?
Ps. I used this code at my zClient
Code:#pragma once #include <gl\gl.h> #include <gl\glu.h> #include <tlhelp32.h> #include "glaux.h" #pragma comment(lib,"OpenGL32.lib") #pragma comment(lib,"GLu32.lib") #pragma comment(lib,"GLaux.lib") #pragma comment(lib,"ADVAPI32.lib") #pragma comment(lib,"Gdi32.lib") #pragma comment(lib,"winmm.lib") #pragma comment(lib,"User32.lib") #define SKY_NULL_BMP ".\\Data\\Custom\\Sky\\Null.bmp" #define SKY_BACK_BMP ".\\Data\\Custom\\Sky\\World%d\\Back.bmp" #define SKY_BOTTOM_BMP ".\\Data\\Custom\\Sky\\World%d\\Bottom.bmp" #define SKY_FRONT_BMP ".\\Data\\Custom\\Sky\\World%d\\Front.bmp" #define SKY_LEFT_BMP ".\\Data\\Custom\\Sky\\World%d\\Left.bmp" #define SKY_RIGHT_BMP ".\\Data\\Custom\\Sky\\World%d\\Right.bmp" #define SKY_TOP_BMP ".\\Data\\Custom\\Sky\\World%d\\Top.bmp" class cSkyBox { public: cSkyBox(); virtual ~cSkyBox(); bool bDisplayInitialized; struct FRGB { float R,G,B; }; FRGB SkyColor; unsigned int uTextures[32][6]; void Load(); void ChangeSky(); void GetCamCoords(double* x_cam,double* y_cam,double* z_cam); void InitDisplay(); bool CanDrawSky(); static void Display(); }; extern cSkyBox gSkyBox;Code:#include "StdAfx.h" #include "SkyBox.h" #include "ToolKit.h" #include "Main.h" #include "Import.h" typedef int(*TSkyHook)(); TSkyHook SkyHook = (TSkyHook) 0x0; typedef int(*TBlend)(int); TBlend Blend = (TBlend) 0x0; typedef int(*TUnBlend)(); TUnBlend UnBlend = (TUnBlend) 0x0; cSkyBox gSkyBox; cSkyBox::cSkyBox() { bDisplayInitialized = false; } cSkyBox::~cSkyBox() { /**/ } void cSkyBox::ChangeSky() { SYSTEMTIME sm; GetLocalTime(&sm); int hourstate = sm.wHour % 2; float minutestate = (float)sm.wMinute / 60.0f; if(hourstate == 0) { SkyColor.R = minutestate; SkyColor.G = minutestate; SkyColor.B = minutestate; } else { SkyColor.R = 1.0f - minutestate; SkyColor.G = 1.0f - minutestate; SkyColor.B = 1.0f - minutestate; } } void cSkyBox::GetCamCoords(double* x_cam, double* y_cam, double* z_cam) { double m[16]; glGetDoublev(GL_MODELVIEW_MATRIX,m); *x_cam = -m[12] * m[0] - m[13] * m[1] - m[14] * m[2]; *y_cam = -m[12] * m[4] - m[13] * m[5] - m[14] * m[6]; *z_cam = -m[12] * m[8] - m[13] * m[9] - m[14] * m[10]; } void CALLBACK SkyTimerProc(HWND hwnd,UINT uMsg,UINT_PTR idEvent,DWORD dwTime) { gSkyBox.ChangeSky(); } void cSkyBox::InitDisplay() { SetTimer(pGameWindow,3,60000,(TIMERPROC)int(1)); { char texturepath[256]; sprintf_s(texturepath,"%s",SKY_NULL_BMP); if(!gToolKit.FileExists(texturepath)) { MessageBox(0,"Impossivel encontrar Null.bmp","Erro SkyBox",MB_OK | MB_ICONERROR); ExitProcess(0); } AUX_RGBImageRec* images[64][6]; AUX_RGBImageRec* blankimage = auxDIBImageLoad(texturepath); try { for(int i=0 ; i < 60;i++) { for(int j=0; j < 6; j++) { images[i][j] = blankimage; } sprintf_s(texturepath,SKY_BACK_BMP,i+1); if(gToolKit.FileExists(texturepath)) { images[i][0] = auxDIBImageLoad(texturepath); } sprintf_s(texturepath,SKY_BOTTOM_BMP,i+1); if(gToolKit.FileExists(texturepath)) { images[i][1] = auxDIBImageLoad(texturepath); } sprintf_s(texturepath,SKY_FRONT_BMP,i+1); if(gToolKit.FileExists(texturepath)) { images[i][2] = auxDIBImageLoad(texturepath); } sprintf_s(texturepath,SKY_LEFT_BMP,i+1); if(gToolKit.FileExists(texturepath)) { images[i][3] = auxDIBImageLoad(texturepath); } sprintf_s(texturepath,SKY_RIGHT_BMP,i+1); if(gToolKit.FileExists(texturepath)) { images[i][4] = auxDIBImageLoad(texturepath); } sprintf_s(texturepath,SKY_TOP_BMP,i+1); if(gToolKit.FileExists(texturepath)) { images[i][5] = auxDIBImageLoad(texturepath); } } } catch(...) { /* NOPE */ } for(int i = 0;i < 60;i++) { for(int j = 0;j < 6;j++) { glGenTextures(1,&this->uTextures[i][j]); glBindTexture(GL_TEXTURE_2D,this->uTextures[i][j]); glPixelStorei(GL_UNPACK_ALIGNMENT,1); glTexImage2D(GL_TEXTURE_2D,0,3,images[i][j]->sizeX,images[i][j]->sizeY,0,GL_RGB,GL_UNSIGNED_BYTE,images[i][j]->data); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_NEAREST); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_NEAREST); } } SkyColor.R = 1.0f; SkyColor.G = 1.0f; SkyColor.B = 1.0f; if(1) { SetTimer(pGameWindow,2,5000,(TIMERPROC)SkyTimerProc); ChangeSky(); } } this->bDisplayInitialized = true; } bool cSkyBox::CanDrawSky() { char texturepath[64]; sprintf_s(texturepath,SKY_TOP_BMP,(pMapNumber + 1)); if(gToolKit.FileExists(texturepath)) { return true; } return false; } void cSkyBox::Display() { SkyHook(); if(pPlayerState == GameProcess) { if(!gSkyBox.bDisplayInitialized) { gSkyBox.InitDisplay(); } if(1 && gSkyBox.CanDrawSky()) { double x_cam, y_cam, z_cam; gSkyBox.GetCamCoords(&x_cam,&y_cam,&z_cam); Blend(1); glColor3d(gSkyBox.SkyColor.R,gSkyBox.SkyColor.G,gSkyBox.SkyColor.B); glBindTexture(GL_TEXTURE_2D,gSkyBox.uTextures[pMapNumber][5]); glBegin(GL_QUADS); //TOP glTexCoord2f(1.0f, 0.0f); glVertex3d(x_cam-1900, y_cam+1900, 1500); glTexCoord2f(0.0f, 0.0f); glVertex3d(x_cam+1900, y_cam+1900, 1500); glTexCoord2f(0.0f, 1.0f); glVertex3d(x_cam+1900, y_cam-1900, 1500); glTexCoord2f(1.0f, 1.0f); glVertex3d(x_cam-1900, y_cam-1900, 1500); glEnd(); glBindTexture(GL_TEXTURE_2D,gSkyBox.uTextures[pMapNumber][1]); glBegin(GL_QUADS); //BOTTOM glTexCoord2f(1.0f, 1.0f); glVertex3d(x_cam-1900, y_cam+1900, 0); glTexCoord2f(0.0f, 1.0f); glVertex3d(x_cam+1900, y_cam+1900, 0); glTexCoord2f(0.0f, 0.0f); glVertex3d(x_cam+1900, y_cam-1900, 0); glTexCoord2f(1.0f, 0.0f); glVertex3d(x_cam-1900, y_cam-1900, 0); glEnd(); glBindTexture(GL_TEXTURE_2D,gSkyBox.uTextures[pMapNumber][2]); glBegin(GL_QUADS); //FRONT glTexCoord2f(1.0f, 1.0f); glVertex3d(x_cam-1900, y_cam+1900, 1500); glTexCoord2f(0.0f, 1.0f); glVertex3d(x_cam+1900, y_cam+1900, 1500); glTexCoord2f(0.0f, 0.0f); glVertex3d(x_cam+1900, y_cam+1900, 0); glTexCoord2f(1.0f, 0.0f); glVertex3d(x_cam-1900, y_cam+1900, 0); glEnd(); glBindTexture(GL_TEXTURE_2D,gSkyBox.uTextures[pMapNumber][0]); glBegin(GL_QUADS); //BACK glTexCoord2f(0.0f, 1.0f); glVertex3d(x_cam-1900, y_cam-1900, 1500); glTexCoord2f(1.0f, 1.0f); glVertex3d(x_cam+1900, y_cam-1900, 1500); glTexCoord2f(1.0f, 0.0f); glVertex3d(x_cam+1900, y_cam-1900, 0); glTexCoord2f(0.0f, 0.0f); glVertex3d(x_cam-1900, y_cam-1900, 0); glEnd(); glBindTexture(GL_TEXTURE_2D,gSkyBox.uTextures[pMapNumber][3]); glBegin(GL_QUADS); //LEFT glTexCoord2f(1.0f, 1.0f); glVertex3d(x_cam-1900, y_cam-1900, 1500); glTexCoord2f(0.0f, 1.0f); glVertex3d(x_cam-1900, y_cam+1900, 1500); glTexCoord2f(0.0f, 0.0f); glVertex3d(x_cam-1900, y_cam+1900, 0); glTexCoord2f(1.0f, 0.0f); glVertex3d(x_cam-1900, y_cam-1900, 0); glEnd(); glBindTexture(GL_TEXTURE_2D,gSkyBox.uTextures[pMapNumber][4]); glBegin(GL_QUADS); //RIGHT glTexCoord2f(0.0f, 1.0f); glVertex3d(x_cam+1900, y_cam-1900, 1500); glTexCoord2f(1.0f, 1.0f); glVertex3d(x_cam+1900, y_cam+1900, 1500); glTexCoord2f(1.0f, 0.0f); glVertex3d(x_cam+1900, y_cam+1900, 0); glTexCoord2f(0.0f, 0.0f); glVertex3d(x_cam+1900, y_cam-1900, 0); glEnd(); UnBlend(); } } } void cSkyBox::Load() { gToolKit.HookOffset((DWORD)&this->Display,0x0,ASM::CALL); }
Last edited by SmileYzn; 13-09-15 at 01:28 AM.
This is Client Problem as zTeam told me and cant be fixed without update to Season 8 Episode 3
Updating only the client to 8.3 or client + server files? If anyone has a link to an 8.3 working client, please drop it here.
edit:
Someone know how to change channel from gold to normal?
![]()
Last edited by awesomo; 13-09-15 at 02:01 PM.
where missions gens are activated please
- - - Updated - - -
Someone know how to change channel from gold to normal?
Change in ServerList.bmd file
mo file serverlis ra ma sua tu 1 den 3 thi phai 0 mac dinh la cong thanh
-3 trade , 2gold-pvp,1no-pvp
Last edited by gunbound1012; 13-09-15 at 04:16 PM.
That's just editing the text. I want to be able to change the channel to Gold/Normal-PvE/PvP. That should be configurable in a configuration file somewhere.
As far as I can translate I understand you can switch your server state by value -3, 1 and 2. Could you give an example of your ServerList.txt?
I can only configure ID, Name, IP, Port...
anyone have fix zclient.dll error i windows xp?
anyone already added /gg to GM Command?
Check the thread...there was a way to change "!" To /gg....anyways in my source (michi's latest) "!" Is working as /gg already....you should check it bro :)
What error? Cant test on wxp as i use seven xD.
As far as i know it was working fine on xp with frameworks and vc++ redists.
Im using michi's latest source shared....and anyways the way to change this was shared on this thread. And if Im not wrong yesterday someone (cant remember who now) shared a few txts with his research on this thread and the fix is on one of those txts too...i was just readjng them an hour ago and i remember reading about the "!"->"/gg" matter.
anyone can help me about this?
if you will use the /post or ! ingame it will be a global msg like GM
and even i remove that in the protocol.cpp it will appeared where do i need to change to remove that thing?
- - - Updated - - -
how to increase selupan drop rate even you have a high rate of this eventitembag
Code:<?xml version="1.0" ?> <itembag> <settings> <name>RaklionBossEvent-52</name> <zen min="1000000" max="5000000" /> <excoption op1="30" op2="10" op4="10" op8="10" op16="30" op32="10" /><!--For Sets--> <!-- 1 Increases Mana after hunting monsters + Mana \ Increases Zen 2 Increases Life after hunting monsters + life \ Defense success rate 4 Increase Attacking(Wizardry)speed \ Reflect damage 8 Increase damage \ Decrese damage 16 Increase damage level \ Increse max mana 32 Excellent damage rate \ Increse max hp --> </settings> <itemlist rate="10000"> <!--Dark Devil --> <item id="7" num="55" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="8" num="55" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="9" num="55" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="10" num="55" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="11" num="55" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <!--Titan --> <item id="7" num="45" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="8" num="45" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="9" num="45" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="10" num="45" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="11" num="45" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <!--Storm Wing --> <item id="7" num="74" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="8" num="74" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="9" num="74" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="10" num="74" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="11" num="74" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <!--Upper Keys --> <item id="7" num="75" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="8" num="75" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="9" num="75" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="10" num="75" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="11" num="75" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <!--Sticky --> <item id="7" num="56" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="8" num="56" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="9" num="56" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="10" num="56" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="11" num="56" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <!--Succubus --> <item id="7" num="53" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="8" num="53" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="9" num="53" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="10" num="53" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="11" num="53" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <!--Hell Night--> <item id="8" num="57" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="9" num="57" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="10" num="57" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="11" num="57" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <!--Hell Knight --> <item id="8" num="76" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="9" num="76" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="10" num="76" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="11" num="76" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <!--Embisyeon --> <item id="7" num="58" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="8" num="58" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="9" num="58" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="10" num="58" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> <item id="11" num="58" lvlmin="0" lvlmax="0" skill="1" luck="1" option="0" excmin="3" excmax="3" is_anc="0" sockmin="2" sockmax="2" /> </itemlist> </itembag>