- Joined
- Jan 22, 2009
- Messages
- 1,192
- Reaction score
- 543
@Purpleyouko
Yes, use vs2008.
Don't give errors, only various warnings.
Yes, use vs2008.
Don't give errors, only various warnings.
Sure,all bugs already known and half of them fixed.
Wonder,if someone really want to develop it.This is more useless,than you can think.
I checked they website (Built by one company,later sold to kongzhong
Those are linker errors.How I can fix it errors?
1>d3d_interface.obj : error LNK2001: unresolved external symbol _IID_IDirect3D7
1>d3d_interface.obj : error LNK2001: unresolved external symbol _IID_IDirect3DTnLHalDevice
1>sysinfo.obj : error LNK2001: unresolved external symbol _IID_IDirectMusic
1>sysinfo.obj : error LNK2001: unresolved external symbol _CLSID_DirectMusic
@Purpleyouko
Do you have any news with Jiangshan?
@Allen Sobao
You can use strings from Loong to translate.
I'm getting pretty close.@Purpleyouko
Do you have any news with Jiangshan?
2>C:\Program Files\Microsoft Visual Studio 10.0\VC\include\utility(163): error C2439: 'std::_Pair_base<_Ty1,_Ty2>::second' : member could not be initialized
2> with
2> [
2> _Ty1=const UINT,
2> _Ty2=CAdjustCtrl *
2> ]
2> C:\Program Files\Microsoft Visual Studio 10.0\VC\include\utility(167) : see declaration of 'std::_Pair_base<_Ty1,_Ty2>::second'
2> with
2> [
2> _Ty1=const UINT,
2> _Ty2=CAdjustCtrl *
2> ]
4>ScriptFuncImpl.cpp(1431): error C2440: 'initializing' : cannot convert from 'DWORD' to 'std::bitset<_Bits>'
4> with
4> [
4> _Bits=32
4> ]
4> No constructor could take the source type, or constructor overload resolution was ambiguous
tagGuildPower power = GuildMgr::Inst()->GetPosPower(pLocalPlayer->GetRoleGuildPos());
[B]std::bitset<EGPT_MAX> bitsetPower = *(DWORD*)(void*)(&power);[/B]
lua_pushboolean(L, bitsetPower[EGPT_PUBLISHQUESTQUEST]);
int SC_HasLocalPlayerGuildPower(lua_State* L)
{
DWORD dwPowertType = (DWORD)lua_tonumber(L, -1);
LocalPlayer* pLocalPlayer = RoleMgr::Inst()->GetLocalPlayer();
if( P_VALID(pLocalPlayer) )
{
DWORD dwGuildID = pLocalPlayer->GetRoleGuildID();
if( P_VALID(dwGuildID) )
{
tagGuildPower power = GuildMgr::Inst()->GetPosPower(pLocalPlayer->GetRoleGuildPos());
[B][I]std::bitset<EGPT_MAX> bitsetPower = *(DWORD*)(void*)(&power);[/I][/B]
lua_pushboolean(L, bitsetPower[EGPT_PUBLISHQUESTQUEST]);
return 1;
}
}
lua_pushboolean(L, FALSE);
return 1;
}
int SC_HasLocalPlayerGuildPower(lua_State* L)
{
DWORD dwPowertType = (DWORD)lua_tonumber(L, -1);
LocalPlayer* pLocalPlayer = RoleMgr::Inst()->GetLocalPlayer();
if( P_VALID(pLocalPlayer) )
{
DWORD dwGuildID = pLocalPlayer->GetRoleGuildID();
if( P_VALID(dwGuildID) )
{
tagGuildPower power = GuildMgr::Inst()->GetPosPower(pLocalPlayer->GetRoleGuildPos());
[I][B]DWORD tmp = (DWORD)(void*)(&power);[/B][/I]
//std::bitset<EGPT_MAX> bitsetPower = *(DWORD*)(void*)(&power);
[I][B]std::bitset<EGPT_MAX> bitsetPower;
bitsetPower._Getword(tmp);[/B][/I]
lua_pushboolean(L, bitsetPower[EGPT_PUBLISHQUESTQUEST]);
return 1;
}
}
lua_pushboolean(L, FALSE);
return 1;
}
The links in the first post are working just fine.
Still fighting the _pair_base problem but I thought i would take a quick look at the server files.
As it happens 5 of the 11 in the project are shared with the client so they were already compiled.
Out of the remaining 6, 5 of them compiled straight away (after adding in the missing library links and stuff)
I will be looking as the final one (the actual world server) today in a bit more detail. The error doesn't look like it will be too hard to fix. It's just an issue with a function called SAFE_DELETE which is attempting to modify a value which is defined as a constant after a trade event between players.
Like i said, I don't anticipate it being all that tricky to fix.
Just another case where 2008 is a lot more forgiving than 2010. They really tightened up the rules in the new compiler.
To continue on that, its almost compiling on VS2010 Pro BUT there is one last error that looks really nasty in the client, otherwise GameServer and RUnitTest compile just fine in 2010![]()
Great work guys, I'm waiting the new version that can be compiled on 2010 (hate old **** 2008).The links in the first post are working just fine.
Still fighting the _pair_base problem but I thought i would take a quick look at the server files.
As it happens 5 of the 11 in the project are shared with the client so they were already compiled.
Out of the remaining 6, 5 of them compiled straight away (after adding in the missing library links and stuff)
I will be looking as the final one (the actual world server) today in a bit more detail. The error doesn't look like it will be too hard to fix. It's just an issue with a function called SAFE_DELETE which is attempting to modify a value which is defined as a constant after a trade event between players.
Like i said, I don't anticipate it being all that tricky to fix.
Just another case where 2008 is a lot more forgiving than 2010. They really tightened up the rules in the new compiler.
Great work guys, I'm waiting the new version that can be compiled on 2010 (hate old **** 2008).
Better than nothing.We probably won't release it, too much effort. Most probably guide you on how to do it like Purple has been posting.