Skrypty & Kody Hp i Mana w procetach

Status
Zamknięty.

ejnik

User
Zarejestrowany
Dołączył
Styczeń 20, 2010
Posty
21
Liczba reakcji
1
Mam tfs 0.3.6 i prosi? bym was o napisanie skryptu dzi?ki ktoremu hp i mana b?dzie pokazywana w % (pro?ctach)
 
Odp: Hp i Mana w procetach

dalo by rad? jakos bez kompilacji? bo caly czas errors error
 
Odp: Hp i Mana w procetach

Nie da?o by rady, daj log.
 
Odp: Hp i Mana w procetach

moje lo
gi

Compiler: MinGW GCC 4.7.2 32-bit Release
Building Makefile "C:\Documents and Settings\W?a?ciciel\Moje dokumenty\Pobieranie\0.3.6pl1.r101\dev-cpp\Makefile.win"
Executing make...
mingw32-make.exe -f "C:\Documents and Settings\W?a?ciciel\Moje dokumenty\Pobieranie\0.3.6pl1.r101\dev-cpp\Makefile.win" all
g++.exe -D__DEBUG__ -c ../actions.cpp -o obj//actions.o -I"C:/Program Files/Dev-Cpp/MinGW32/include" -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -w -Wall -g3

In file included from ../actions.cpp:17:0:
../otpch.h:28:30: fatal error: libxml/xmlmemory.h: No such file or directory
compilation terminated.

C:\Documents and Settings\W?a?ciciel\Moje dokumenty\Pobieranie\0.3.6pl1.r101\dev-cpp\Makefile.win:30: recipe for target 'obj//actions.o' failed
mingw32-make.exe: *** [obj//actions.o] Error 1

Execution terminated
 
Ostatnia edycja:
Odp: Hp i Mana w procetach

Nie masz bibliotek libxml itd. ?ci?gnij je
 
Odp: Hp i Mana w procetach

error ...
logi
Compiler: MinGW GCC 4.7.2 32-bit Release
Building Makefile "C:\Documents and Settings\W?a?ciciel\Moje dokumenty\Pobieranie\0.3.6pl1.r101\dev-cpp\Makefile.win"
Executing make...
mingw32-make.exe -f "C:\Documents and Settings\W?a?ciciel\Moje dokumenty\Pobieranie\0.3.6pl1.r101\dev-cpp\Makefile.win" all
g++.exe -D__DEBUG__ -c ../actions.cpp -o obj//actions.o -I"C:/Program Files/Dev-Cpp/MinGW32/include" -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -w -Wall -g3

In file included from ../actions.cpp:17:0:
../otpch.h:28:30: fatal error: libxml/xmlmemory.h: No such file or directory
compilation terminated.

C:\Documents and Settings\W?a?ciciel\Moje dokumenty\Pobieranie\0.3.6pl1.r101\dev-cpp\Makefile.win:30: recipe for target 'obj//actions.o' failed
mingw32-make.exe: *** [obj//actions.o] Error 1

Execution terminated
 
Odp: Hp i Mana w procetach

../otpch.h:28:30: fatal error: libxml/xmlmemory.h: No such file or directory

"No such file or directory" - ciekawe co to znaczy.
 
Odp: Hp i Mana w procetach

Wiesz co, chcia?em Ci podpowiedzie?, ?eby? u?y? CodeBlocks, ale w?tpi?, ?e ogarniesz go.

Masz tutaj video poradnik dev cpp. Jak zainstalowa? biblioteki:

 
Odp: Hp i Mana w procetach

error


LOGI
Kompilator: Default compiler
Building Makefile: "C:\Documents and Settings\W?a?ciciel\Moje dokumenty\Pobieranie\0.3.6pl1.r101\dev-cpp\Makefile.win"
Wykonywanie make...
make.exe -f "C:\Documents and Settings\W?a?ciciel\Moje dokumenty\Pobieranie\0.3.6pl1.r101\dev-cpp\Makefile.win" all
g++.exe -c ../protocolgame.cpp -o obj//protocolgame.o -I"C:/Documents and Settings/W?a?ciciel/Moje dokumenty/Pobieranie/Stian's Repack Dev-Cpp v2/include" -I"C:/Documents and Settings/W?a?ciciel/Moje dokumenty/Pobieranie/Stian's Repack Dev-Cpp v2/include/c++" -D__USE_MYSQL__ -D__USE_SQLITE__ -D__ENABLE_SERVER_DIAGNOSTIC__ -fexpensive-optimizations -O1

../protocolgame.cpp: In member function `void ProtocolGame::AddPlayerStats(NetworkMessage_ptr)':
../protocolgame.cpp:2695: error: 'class NetworkMessage' has no member named 'put'
../protocolgame.cpp:2695: error: expected primary-expression before "char"
../protocolgame.cpp:2695: error: expected `;' before "char"
../protocolgame.cpp:2696: error: 'class NetworkMessage' has no member named 'put'
../protocolgame.cpp:2697: error: 'class NetworkMessage' has no member named 'put'
../protocolgame.cpp:2698: error: 'class NetworkMessage' has no member named 'put'
../protocolgame.cpp:2698: error: expected primary-expression before '>' token
../protocolgame.cpp:2701: error: 'class NetworkMessage' has no member named 'put'
../protocolgame.cpp:2701: error: expected primary-expression before '>' token
../protocolgame.cpp:2703: error: 'class NetworkMessage' has no member named 'put'
../protocolgame.cpp:2703: error: expected primary-expression before '>' token
../protocolgame.cpp:2705: error: 'class NetworkMessage' has no member named 'put'
../protocolgame.cpp:2705: error: expected primary-expression before '>' token
../protocolgame.cpp:2706: error: 'class NetworkMessage' has no member named 'put'
../protocolgame.cpp:2706: error: expected primary-expression before "char"
../protocolgame.cpp:2706: error: expected `;' before "char"
../protocolgame.cpp:2707: error: 'class NetworkMessage' has no member named 'put'
../protocolgame.cpp:2708: error: 'class NetworkMessage' has no member named 'put'
../protocolgame.cpp:2709: error: 'class NetworkMessage' has no member named 'put'
../protocolgame.cpp:2709: error: expected primary-expression before "char"
../protocolgame.cpp:2709: error: expected `;' before "char"
../protocolgame.cpp:2710: error: 'class NetworkMessage' has no member named 'put'
../protocolgame.cpp:2710: error: expected primary-expression before "char"
../protocolgame.cpp:2710: error: expected `;' before "char"
../protocolgame.cpp:2711: error: 'class NetworkMessage' has no member named 'put'
../protocolgame.cpp:2711: error: expected primary-expression before "char"
../protocolgame.cpp:2711: error: expected `;' before "char"
../protocolgame.cpp:2712: error: 'class NetworkMessage' has no member named 'put'
../protocolgame.cpp:2712: error: expected primary-expression before '>' token

make.exe: *** [obj//protocolgame.o] Error 1

Wykonanie zako?czone
 
Odp: Hp i Mana w procetach

[CPP]void ProtocolGame::AddPlayerStats(NetworkMessage_ptr msg)
{
msg->AddByte(0xA0);
msg->AddU16((uint16_t)std::ceil(player->getHealth() * 100 / player->getPlayerInfo(PLAYERINFO_MAXHEALTH)));
msg->AddU16((uint16_t)100);
msg->AddU32(uint32_t(player->getFreeCapacity() * 100));
uint64_t experience = player->getExperience();
if(experience > 0x7FFFFFFF) // client debugs after 2,147,483,647 exp
msg->AddU32(0x7FFFFFFF);
else
msg->AddU32(experience);

msg->AddU16(player->getPlayerInfo(PLAYERINFO_LEVEL));
msg->AddByte(player->getPlayerInfo(PLAYERINFO_LEVELPERCENT));
msg->AddU16((uint16_t)std::ceil(player->getMana() * 100 / player->getPlayerInfo(PLAYERINFO_MAXMANA)));
msg->AddU16((uint16_t)100);
msg->AddByte(player->getPlayerInfo(PLAYERINFO_MAGICLEVEL));
msg->AddByte(player->getPlayerInfo(PLAYERINFO_MAGICLEVELPERCENT));
msg->AddByte(player->getPlayerInfo(PLAYERINFO_SOUL));
msg->AddU16(player->getStaminaMinutes());
}[/CPP]

Wystarczy?o przejrze? m?j temat...
 
Odp: Hp i Mana w procetach

Poka? kilka z tych b??d?w, a nie sam? liczb?...
 
Odp: Hp i Mana w procetach

obj//group.o:group.cpp:(.text+0x529): more undefined references to `__Unwind_Resume' follow
obj//group.o:group.cpp:(.text+0x5da): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
obj//group.o:group.cpp:(.text+0x9a1): undefined reference to `__Unwind_Resume'
obj//group.o:group.cpp:(.text+0x9b6): undefined reference to `__Unwind_Resume'
obj//group.o:group.cpp:(.text+0xafb): undefined reference to `__Unwind_Resume'
obj//group.o:group.cpp:(.text+0xb1f): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
obj//group.o:group.cpp:(.text+0xb53): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
obj//group.o:group.cpp:(.text+0xb80): undefined reference to `__Unwind_Resume'
obj//group.o:group.cpp:(.text+0xbcf): undefined reference to `__Unwind_Resume'
obj//group.o:group.cpp:(.text+0xc0c): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
obj//group.o:group.cpp:(.text+0xcbb): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
obj//group.o:group.cpp:(.text+0xccb): undefined reference to `std::ostream& std::ostream::_M_insert<unsigned long>(unsigned long)'
obj//group.o:group.cpp:(.text+0xce5): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
obj//group.o:group.cpp:(.text+0xd6f): undefined reference to `__Unwind_Resume'
obj//group.o:group.cpp:(.text+0xdc7): undefined reference to `__Unwind_Resume'
obj//group.o:group.cpp:(.text$_ZN5GroupD0Ev[__ZN5GroupD0Ev]+0x6f): undefined reference to `__Unwind_Resume'
obj//group.o:group.cpp:(.text$_ZN5GroupD0Ev[__ZN5GroupD0Ev]+0xc4): undefined reference to `__Unwind_Resume'
obj//group.o:group.cpp:(.text$_ZN5GroupD1Ev[__ZN5GroupD1Ev]+0x6f): undefined reference to `__Unwind_Resume'

obj//group.o:group.cpp:(.text$_ZN5GroupD1Ev[__ZN5GroupD1Ev]+0xc4): more undefined references to `__Unwind_Resume' follow
obj//group.o:group.cpp:(.eh_frame+0x12): undefined reference to `___gxx_personality_v0'

make.exe: *** [TheForgottenServer.exe] Error 1

Wykonanie zako?czone
 
Odp: Hp i Mana w procetach

Co Ty masz za silnik, tak w og?le?

---------- Tre?? dodana o 01:02 ----------

A raczej source*
 
Odp: Hp i Mana w procetach

tfs 0.3.6pl

---------- Tre?? dodana o 21:12 ----------

Uda?o mi si? skompilowac silnik, wszytko ?adnie pi?knie wielkie dzieki, ale gdy loguje sie na pasy 1/1 server crashuje sie , na goda mog? sie zalogowac bez problemow jedyne co mnie ciekawi dlaczego god ma 1008% hp i 1008% many


Prosze o pomoc
 
Odp: Hp i Mana w procetach

Kiedy? by? b??d w kodzie, potem go poprawi?em, ale ten z drugiej strony zosta?. Zaraz podam poprawion? wersj?.
 
Status
Zamknięty.
Back
Do góry