Fork me on GitHub
  November 13, 2018, 04:12:15 am
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  Home Help Search Login Register  
  Show Posts
Pages: [1] 2 3
1  Mineserver / Discussion / Cross compiling for Windows from Linux on: October 17, 2012, 06:06:22 am
Would it be possible to modify the cmake configure script to use the MinGW cross-compile toolchain instead of the default linux compiler? If so what lines would I need to change?
2  Mineserver / Development / Impossible to determine endianness on: November 13, 2011, 05:33:52 am
I'm getting error C1189 when attempting to compile. Build output is as follows:

Code:
fatal error C1189: #error :  Impossible to determine endianness (Little or Big endian), please contact the author.

What would I need to do to fix this?
3  Mineserver / Development / error C2011 when compiling libevent on: November 12, 2011, 10:40:01 pm
When I try to compile Libevent I get this error:

Code:
http.c(145): error C2011: 'addrinfo' : 'struct' type redefinition

which points me to this structure:

Code:
struct addrinfo {
int ai_family;
int ai_socktype;
int ai_protocol;
size_t ai_addrlen;
struct sockaddr *ai_addr;
struct addrinfo *ai_next;
};

It then tells me to look at ws2def.h and this is the declaration it has:

Code:
typedef struct addrinfo
{
    int                 ai_flags;       // AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST
    int                 ai_family;      // PF_xxx
    int                 ai_socktype;    // SOCK_xxx
    int                 ai_protocol;    // 0 or IPPROTO_xxx for IPv4 and IPv6
    size_t              ai_addrlen;     // Length of ai_addr
    char *              ai_canonname;   // Canonical name for nodename
    __field_bcount(ai_addrlen) struct sockaddr *   ai_addr;        // Binary address
    struct addrinfo *   ai_next;        // Next structure in linked list
}

I didn't make any modifications to Libevent, so I'm not sure what I should do.
4  Mineserver / Development / Error C1021 when compiling with Visual Studio 2010 on: November 12, 2011, 10:04:56 am
Lately I've been getting this error when attempting to compile using Visual Studio 2010. So far I think I have all my dependencies setup right, so I don't know why this is popping up.

Code:
fatal error C1021: invalid preprocessor command 'cmakedefine'

What do you suggest?
5  Mineserver / News / Re: Mineserver 2.0 - New look, same great taste! on: October 25, 2011, 07:44:56 am
Hmm, would it be possible to add in a full terrain generation function? Instead of generating chunks on the go give the server a option to fully generate the maximum size of the world upon the world creation/initial startup. Just a thought.
6  Mineserver / Development / Re: TNT! on: June 02, 2011, 09:35:22 pm
Perhaps it spits out those warnings because the code isn't ISO/IEC 14882:2003 compliant? I'm not sure but that's the only reason I can think of.
7  Mineserver / Development / Re: TNT! on: June 01, 2011, 11:37:23 pm
Here's some warnings I got while compiling:

Code:
\src\blocks\tnt.cpp(29): warning C4305: '=' : truncation from 'int' to 'uint8_t'
\src\blocks\tnt.cpp(29): warning C4309: '=' : truncation of constant value
\src\blocks\tnt.cpp(31): warning C4305: '=' : truncation from 'int' to 'uint8_t'
\src\blocks\tnt.cpp(31): warning C4309: '=' : truncation of constant value
\src\blocks\tnt.cpp(34): warning C4305: '=' : truncation from 'int' to 'uint8_t'
\src\blocks\tnt.cpp(34): warning C4309: '=' : truncation of constant value
\src\blocks\tnt.cpp(38): warning C4305: '=' : truncation from 'int' to 'uint8_t'
\src\blocks\tnt.cpp(38): warning C4309: '=' : truncation of constant value
\src\blocks\tnt.cpp(40): warning C4305: '=' : truncation from 'int' to 'uint8_t'
\src\blocks\tnt.cpp(40): warning C4309: '=' : truncation of constant value
\src\blocks\tnt.cpp(42): warning C4305: '=' : truncation from 'int' to 'uint8_t'
\src\blocks\tnt.cpp(42): warning C4309: '=' : truncation of constant value
\src\blocks\tnt.cpp(50): warning C4305: '=' : truncation from 'int' to 'uint8_t'
\src\blocks\tnt.cpp(50): warning C4309: '=' : truncation of constant value
\src\blocks\tnt.cpp(52): warning C4305: '=' : truncation from 'int' to 'uint8_t'
\src\blocks\tnt.cpp(52): warning C4309: '=' : truncation of constant value
\src\blocks\tnt.cpp(56): warning C4305: '=' : truncation from 'int' to 'uint8_t'
\src\blocks\tnt.cpp(56): warning C4309: '=' : truncation of constant value
\src\blocks\tnt.cpp(58): warning C4305: '=' : truncation from 'int' to 'uint8_t'
\src\blocks\tnt.cpp(58): warning C4309: '=' : truncation of constant value
\src\blocks\tnt.cpp(60): warning C4305: '=' : truncation from 'int' to 'uint8_t'
\src\blocks\tnt.cpp(60): warning C4309: '=' : truncation of constant value
\src\blocks\tnt.cpp(62): warning C4305: '=' : truncation from 'int' to 'uint8_t'
\src\blocks\tnt.cpp(62): warning C4309: '=' : truncation of constant value
\src\blocks\tnt.cpp(64): warning C4305: '=' : truncation from 'int' to 'uint8_t'
\src\blocks\tnt.cpp(64): warning C4309: '=' : truncation of constant value
\src\blocks\tnt.cpp(303): warning C4101: 'metadata' : unreferenced local variable
\src\blocks\tnt.cpp(303): warning C4101: 'block' : unreferenced local variable
\src\blocks\tnt.cpp(310): warning C4101: 'metadata' : unreferenced local variable
\src\blocks\tnt.cpp(310): warning C4101: 'block' : unreferenced local variable
8  Mineserver / Discussion / Re: Mineserver Runs On... (post your specs) on: May 31, 2011, 08:07:00 pm
Windows 7 Ultimate x64
Phenom II X4 3.2ghz
AMPX DDR3-1333 4GB Ganged Mode
MSI 740GM-P25 MicroATX Mainboard

Compiled using SSE2, tried to make x64 build but got module link errors, not sure why though.
9  Mineserver / Development / Warnings that could use fixing on: May 22, 2011, 07:10:29 am
Here are some warnings I've come across using /W3 on Debug configuration:

commands.dll:
Code:
warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
warning C4244: '=' : conversion from 'int16_t' to 'unsigned char', possible loss of data
warning C4244: 'argument' : conversion from 'int16_t' to 'unsigned char', possible loss of data

Mineserver.exe:
Code:
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mineserver\src\blocks\../tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
src\blocks\basic.cpp(170): warning C4101: 'meta' : unreferenced local variable
src\blocks\basic.cpp(169): warning C4101: 'block' : unreferenced local variable
mineserver\src\blocks\../tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
src\blocks\jackolantern.cpp(130): warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
src\blocks\jackolantern.cpp(131): warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
src\blocks\plant.cpp(465): warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
src\blocks\plant.cpp(466): warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
src\blocks\redstone.cpp(69): warning C4305: 'argument' : truncation from '' to 'const uint8_t'
src\blocks\redstone.cpp(69): warning C4309: 'argument' : truncation of constant value
src\blocks\pumpkin.cpp(130): warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
src\blocks\pumpkin.cpp(131): warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
src\blocks\stair.cpp(123): warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
src\blocks\stair.cpp(124): warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
src\blocks\step.cpp(133): warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
src\blocks\step.cpp(134): warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
src\blocks\wood.cpp(81): warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
src\blocks\wood.cpp(82): warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
src\blocks\wool.cpp(81): warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
src\blocks\wool.cpp(82): warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mineserver\src\config\../tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
src\inventory.cpp(119): warning C4101: 'rightUse' : unreferenced local variable
src\inventory.cpp(1055): warning C4244: 'argument' : conversion from 'int16_t' to 'int8_t', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
src\map.cpp(1077): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
src\map.cpp(1077): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
src\map.cpp(1077): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
src\map.cpp(1079): warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
src\map.cpp(1081): warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
src\map.cpp(1082): warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
src\map.cpp(1082): warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
src\map.cpp(1082): warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
src\nbt.cpp(786): warning C4244: 'argument' : conversion from 'int64_t' to 'double', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
src\packets.cpp(817): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
src\packets.cpp(817): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
src\packets.cpp(817): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
src\packets.cpp(1247): warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
src\packets.cpp(1536): warning C4172: returning address of local variable or temporary
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
src\plugin_api.cpp(293): warning C4244: 'return' : conversion from 'int64_t' to 'int', possible loss of data
src\plugin_api.cpp(1021): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
src\plugin_api.cpp(1031): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
src\plugin_api.cpp(1041): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
src\plugin_api.cpp(1051): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
src\tree.cpp(117): warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
src\tree.cpp(107): warning C4101: 'meta' : unreferenced local variable
src\tree.cpp(106): warning C4101: 'blocktype' : unreferenced local variable
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
src\worldgen\biomegen.cpp(284): warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
src\worldgen\biomegen.cpp(288): warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
src\worldgen\biomegen.cpp(289): warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
src\worldgen\biomegen.cpp(306): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
src\worldgen\biomegen.cpp(418): warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
src\worldgen\biomegen.cpp(473): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
src\worldgen\biomegen.cpp(473): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
src\worldgen\eximgen.cpp(257): warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
src\worldgen\eximgen.cpp(261): warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
src\worldgen\eximgen.cpp(262): warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
src\worldgen\eximgen.cpp(334): warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
src\worldgen\eximgen.cpp(521): warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
src\worldgen\eximgen.cpp(527): warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
src\worldgen\eximgen.cpp(533): warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
src\worldgen\eximgen.cpp(539): warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
src\worldgen\eximgen.cpp(545): warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
src\worldgen\eximgen.cpp(551): warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
src\worldgen\eximgen.cpp(557): warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
src\worldgen\eximgen.cpp(563): warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
src\worldgen\eximgen.cpp(575): warning C4244: '=' : conversion from 'double' to 'int32_t', possible loss of data
src\worldgen\eximgen.cpp(576): warning C4244: '=' : conversion from 'double' to 'int32_t', possible loss of data
src\worldgen\eximgen.cpp(579): warning C4244: '-=' : conversion from 'double' to 'uint8_t', possible loss of data
src\worldgen\eximgen.cpp(588): warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
src\worldgen\eximgen.cpp(606): warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
src\worldgen\heavengen.cpp(222): warning C4101: 'currentHeight' : unreferenced local variable
src\worldgen\heavengen.cpp(223): warning C4101: 'ymax' : unreferenced local variable
src\worldgen\heavengen.cpp(224): warning C4101: 'ciel' : unreferenced local variable
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
src\worldgen\mapgen.cpp(258): warning C4244: 'initializing' : conversion from 'float' to 'uint8_t', possible loss of data
src\worldgen\mapgen.cpp(259): warning C4244: 'initializing' : conversion from 'float' to 'uint8_t', possible loss of data
src\worldgen\mapgen.cpp(340): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
src\worldgen\mapgen.cpp(340): warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
mineserver\src\tools.h(146): warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
10  Mineserver / Development / Re: Coding Style on: May 22, 2011, 06:39:45 am
In MS VC++ 2010 Express I'm getting a bunch of warnings concerning using sprintf_s instead of sprintf, fopen_s instead of fopen, and localtime_s instead of localtime. While probably not necessary, it might be a good idea to switch to the *_s commands, if for nothing else than good coding practice.
11  Mineserver / News / Re: Windows Builds on: May 22, 2011, 06:35:37 am
What command line parameters are you using or have used when compiling and linking these builds?
12  Mineserver / Plugins / Re: Plugin to allow usage of mods written in Java on: May 22, 2011, 06:30:48 am
Oh, so in reality I would have to contact the mod maker and ask them to code a variant in C++ then?
13  Mineserver / Plugins / Re: The new Plugin API | Bukkit argument on: May 19, 2011, 08:53:04 pm
Can someone please explain to me whats going on here concerning bukkit? From my understanding there is a argument but I'm a bit lost.
14  Mineserver / Plugins / Plugin to allow usage of mods written in Java on: May 19, 2011, 08:49:45 pm
Would it be possible to make a plugin that can allow usage of server mods written in Java? Or would the mods themselves need to be rewritten in C++?
15  Mineserver / Development / Re: Compiling and running on Fedora 14 on: April 18, 2011, 08:19:16 pm
I did open the port in the "Other Ports" section of the FCP, but it still won't connect. All I get are time outs. Perhaps I forgot something?

Edit: A part of me is starting to think that perhaps it's not binding the IP address and ports correctly. As of the current moment it's internal IP is 192.168.1.2. However if I try to use a port that is anything other than 25565 I get a error. If I try to leave it at 0.0.0.0 and use any other port I get a error. If I leave it at 0.0.0.0 at port 25565 it somehow binds to 127.0.0.1, which still won't let me connect. Any work arounds?
Pages: [1] 2 3
Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!