spectrum
-
Posts
46 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by spectrum
-
-
7 minutes ago, Nebi said:
Full function code:
bool CArenaMap::AddArena(DWORD mapIdx, WORD startA_X, WORD startA_Y, WORD startB_X, WORD startB_Y) { itertype(m_listArena) iter = m_listArena.begin(); for (; iter != m_listArena.end(); iter++) { if ((CArena*)(*iter)->CheckArea(startA_X, startA_Y, startB_X, startB_Y) == false) { sys_log(0, "CArenaMap::AddArena - Same Start Position set. stA(%d, %d) stB(%d, %d)", startA_X, startA_Y, startB_X, startB_Y); return false; } } m_dwMapIndex = mapIdx; CArena *pArena = M2_NEW CArena(startA_X, startA_Y, startB_X, startB_Y); m_listArena.push_back(pArena); return true; }
is there anything missing here?
i think you need auto for itertype
I have c ++ 17 and it didn't cause this problem
bool CArenaMap::AddArena (DWORD mapIdx, WORD startA_X, WORD startA_Y, WORD startB_X, WORD startB_Y) { auto iter = m_listArena.begin(); for (; iter != m_listArena.end(); iter++) { if ((CArena*) (*iter)->CheckArea (startA_X, startA_Y, startB_X, startB_Y) == false) { sys_log (0, "CArenaMap::AddArena - Same Start Position set. stA(%d, %d) stB(%d, %d)", startA_X, startA_Y, startB_X, startB_Y); return false; } } m_dwMapIndex = mapIdx; CArena* pArena = M2_NEW CArena (startA_X, startA_Y, startB_X, startB_Y); m_listArena.push_back (pArena); return true; }
-
-
Just now, Nebi said:
I did not understand.
it's missing itertype(m_listArena) iter = m_listArena.begin();
on top for (; iter != m_listArena.end(); iter++)
-
20 minutes ago, Nebi said:
I'm getting an error when compiling Metin2 gcc11 c++20. Can you help me?
game/src/arena.cpp
ERROR:
arena.cpp: In member function 'bool CArenaMap::AddArena(DWORD, WORD, WORD, WORD, WORD)': arena.cpp:83:89: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 83 | if ((CArena*)(*iter)->CheckArea(startA_X, startA_Y, startB_X, startB_Y) == false) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ bool CArenaMap::AddArena(DWORD mapIdx, WORD startA_X, WORD startA_Y, WORD startB_X, WORD startB_Y) { itertype(m_listArena) iter = m_listArena.begin();
for (; iter != m_listArena.end(); iter++) { if ((CArena*)(*iter)->CheckArea(startA_X, startA_Y, startB_X, startB_Y) == false) { sys_log(0, "CArenaMap::AddArena - Same Start Position set. stA(%d, %d) stB(%d, %d)", startA_X, startA_Y, startB_X, startB_Y); return false; } }
bool CArenaMap::AddArena(DWORD mapIdx, WORD startA_X, WORD startA_Y, WORD startB_X, WORD startB_Y) { itertype(m_listArena) iter = m_listArena.begin(); for (; iter != m_listArena.end(); iter++) { if ((CArena*)(*iter)->CheckArea(startA_X, startA_Y, startB_X, startB_Y) == false) { sys_log(0, "CArenaMap::AddArena - Same Start Position set. stA(%d, %d) stB(%d, %d)", startA_X, startA_Y, startB_X, startB_Y); return false; } }
-
9 minutes ago, xTryhard said:
i dont know exactly what you mean with "moved player" when you relog you have to load the shop string again and update the python window
I create the shop and after I go through the map the name of the shopoffline does not remain fixed by the store
-
i have problem when i moved player the offline shop name does not remain fixed by the shop
https://metin2.download/picture/Fh8K5piB52iFoYsL7bF4ovR54FcXNrp2/.png
is there a solution please?
-
most don't know how to upgrade to c ++ 17 or change the code to have like GF but they still want to be on serverside, so very good idea
UP
-
On 1/20/2022 at 8:16 PM, forum80 said:
thats problem it is the number bonus, check number bonus
-
On 10/2/2021 at 5:45 PM, Draveniou1 said:
I do this topic for those who have a problem with Unknown Header operating server in France with 800-1k player online and it has been working for 5 days without problems and without kick
If you have provlem :
Open in game.py
search and remove:
if constInfo.SEQUENCE_PACKET_ENABLE:
net.SetPacketSequenceMode()Now open constinfo.py and search and remove
SEQUENCE_PACKET_ENABLE = 1
----------------------------------------------------------------------------------------------
Source Client:
Search
return SendSequence();
change with
// return disable;
it is in intrologin.py no game.py , try to use lentile
def Connect(self, id, pwd):
if constInfo.SEQUENCE_PACKET_ENABLE:
net.SetPacketSequenceMode()https://metin2.download/picture/55cAxCRatHc8SUXkEpIcR0RJh9AD5S1z/.png
and more the first remove this bullshit it is IraWork
- 2
- 1
- 1
- 1
-
the problem that many do not check if you have an item on position 1 (example 19 level 1 sword) level 1 sword occupies position 1 and 6 in the safebox - deposit adding another weapon on slot 6 overlap
normal : https://metin2.download/picture/pJ3tIASQ2GtRwJaBTCgY1hTO2GGYBIAO/.png
bug : https://metin2.download/picture/qmx54CuTyVR22HnlsiuHc8QrpwpF1TsL/.png
-
dont't read
for (const auto& format : FormatTable)
more precisely auto
error :
locale.cpp:169: error: 'format' has not been declareda solution plizz?
-
Hello all ! I have one question , any have tutorial or anyting for make update directx 8 > directx10 and SpeedTree?
thanks !
-
metin2_map_spiderdungeon_02 switch from another server
-
mysql and game were it is ?
-
take out
HEADER_GD_BLOCK_COUNTRY_IP the sistem and auction_manager all .much better work the server.
-
for all guys don't understend . take the good cod
if (pAttacker->GetPoint(POINT_HIT_HP_RECOVERY) && number(0, 4) > 0) // 80% E¢ç¡¤u { int i = ((iCurHP>=0)?MIN(dam, iCurHP):dam) * pAttacker->GetPoint(POINT_HIT_HP_RECOVERY) / 100; //@fixme107 if (i) { CreateFly(FLY_HP_SMALL, pAttacker); pAttacker->PointChange(POINT_HP, i); } } if (pAttacker->GetPoint(POINT_HIT_SP_RECOVERY) && number(0, 4) > 0) // 80% E¢ç¡¤u { int i = ((iCurHP>=0)?MIN(dam, iCurHP):dam) * pAttacker->GetPoint(POINT_HIT_SP_RECOVERY) / 100; //@fixme107 if (i) { CreateFly(FLY_SP_SMALL, pAttacker); pAttacker->PointChange(POINT_SP, i); } }
- 1
Spesific item can only move on the top row of inventory
in Community Support - Questions & Answers
Posted
uiInventory.py show