Cuberite Forum
Players Inventory - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Discussion (https://forum.cuberite.org/forum-5.html)
+--- Thread: Players Inventory (/thread-312.html)

Pages: 1 2


RE: Players Inventory - tbar - 01-30-2012

I really appreciate what you have done!!Big Grin Unfortunately I cannot compile the latest revision because of compile errors Huh:

Code:
[tbar@arch mc-server-read-only2]# svn up
Updating '.':
At revision 187.
[tbar@arch mc-server-read-only2]# make
/usr/bin/g++ -s -O3 source/cCriticalSection.cpp -c -I. -Isource -Isource/md5 -IWebServer -Isource/packets -Itolua++-1.0.93/src/lib -Ilua-5.1.4/src -Izlib-1.2.5 -IiniFile -Itolua++-1.0.93/include -Ijsoncpp-src-0.5.0/include -Ijsoncpp-src-0.5.0/src/lib_json -o build/cCriticalSection.o
source/cCriticalSection.cpp: In constructor ‘cCSLock::cCSLock(cCriticalSection*)’:
source/cCriticalSection.cpp:91:2: error: class ‘cCSLock’ does not have any field named ‘m_IsLocked’
make: *** [build/cCriticalSection.o] Error 1

I've tried doing a 'make clean' but that changes nothing...

(I'm using ArchLinux...)


RE: Players Inventory - FakeTruth - 01-30-2012

Try getting revision 185 (that one should work), the latests updates seem to have broken the Linux buildTongue


RE: Players Inventory - tbar - 01-31-2012

You're right rev 185 works perfectly with this plugin! Thanks!Tongue

Looking at the plugin.lua file I wonder where I can see the different possibilities for the cItem? In other words where is E_BLOCK_STONE defined?

And what does 0 mean in cItem( E_BLOCK_STONE, 10, 0 )?

Anyways: Thanks a lot for implementing this plugin!! Smile


RE: Players Inventory - FakeTruth - 01-31-2012

E_BLOCK_STONE is defined here: http://code.google.com/p/mc-server/source/browse/trunk/source/BlockID.h
But you can also use a number Smile

cItem takes 3 pameters:
1. Item ID
2. Quantity
3. Item health, for different kinds of logs and dyes