01-18-2014, 09:22 PM
If you are using Windows XP you have to use 2008. If you have an higher windows version then you could use 2013 if you want. If cmake works (we had/have some problems) then you could also use 2010.
Countdown
|
01-18-2014, 09:22 PM
If you are using Windows XP you have to use 2008. If you have an higher windows version then you could use 2013 if you want. If cmake works (we had/have some problems) then you could also use 2010.
Thanks given by: daniel0916
01-18-2014, 10:38 PM
01-18-2014, 10:40 PM
I tried VS2010 with CMake, and it also works, and it runs on XP, so whatever you want. There are links for VS2008 and VS2013 (both Express) in the COMPILING file: https://github.com/mc-server/MCServer/bl...MPILING.md
I think you should read the COMPILING file, it will provide you with most answers; if there's a question left unanswered, then it's a good candidate for addition to that file, so keep asking Thanks given by: daniel0916
01-19-2014, 04:18 AM
(This post was last modified: 01-19-2014, 04:40 AM by daniel0916.)
Thanks VB 2013 is working perfectly .
Code: a_Player->SendMessage(a_Item->m_ItemType + ""); And Visual Studio make after the compiling a error when starting it. But when i start the mcserver_debug.exe in the folder the build work. Visual Studio says: Can't start the program "C:\Users\Daniel\Documents\GitHub\MCServer\Debug\ALL_BUILD". The system can't find this file.
01-19-2014, 04:25 AM
You need to right-click the MCServer project in the Solution Explorer and select Set as startup project; then running from VS will work.
Currently the easiest way to convert from a number to a string is by using the Printf() function: a_Player->SendMessage(Printf("ItemType: %d", a_Item->m_ItemType));The first parameter to Printf() is the formatting string; every %-prefixed item will get replaced with the next parameter in queue. The formatting sequences follow the standard C printf() function- %d for signed integer, %u for unsigned integer, %x for hexadecimal, %f for floating point, %s for string. Have a look at the docs here: http://www.cplusplus.com/reference/cstdio/printf/ Thanks given by: daniel0916
01-19-2014, 04:36 AM
(This post was last modified: 01-19-2014, 05:04 AM by daniel0916.)
(01-19-2014, 04:25 AM)xoft Wrote: You need to right-click the MCServer project in the Solution Explorer and select Set as startup project; then running from VS will work.I didn't find Set. (01-19-2014, 04:25 AM)xoft Wrote: Currently the easiest way to convert from a number to a string is by using the Printf() function:Thanks. Edit: How can i get from a player the entity? because i need cEntity. Code: a_Player->GetEntityType Edit2: EntityType can't work.. hmm
01-19-2014, 05:24 AM
Sorry, I have only VS2008, so can't help you. Perhaps tigerw can.
Any cPlayer object *is* a cEntity, so you can use all the functions in cEntity on those objects. So you can do a_Player->GetLookVector()Even if the GetLookVector() is a function in cEntity - the cPlayer inherits them all.
01-19-2014, 06:10 AM
I saw that i can give a player a poison effect but he don't become damage and the poison don't go away after the time. Is only the hunger effect implemented?
01-19-2014, 06:13 AM
Non of the effects are actualy working. You can send them to a client so the client thinks an entity has an potion effect, but it doesn't do anything.
|
« Next Oldest | Next Newest »
|