For$
<!-- begin site header -->
<div id=

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - MechWarrior001

Pages: [1]
1
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
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: [Select]
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
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: [Select]
http.c(145): error C2011: 'addrinfo' : 'struct' type redefinition
which points me to this structure:

Code: [Select]
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: [Select]
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
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: [Select]
fatal error C1021: invalid preprocessor command 'cmakedefine'
What do you suggest?

5
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: [Select]
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: [Select]
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

6
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++?

7
Development / Compiling and running on Fedora 14
« on: April 06, 2011, 08:48:52 pm »
Ok, so I'm trying to compile Mineserver to run on a Fedora 14 installation on a HP Proliant ML370 G3, and I've been looking at the wiki, but I'm not sure if the Debian/Redhat instructions apply to Fedora 14 as-well or if there are separate steps I should take.

8
Discussion / Colored Text
« on: December 09, 2010, 09:51:38 am »
How do you type colored text?

9
Discussion / Setting up admins
« on: December 08, 2010, 02:58:10 am »
How do I setup admins/ops? I've tried placing the names in roles.txt and they don't work. Then I tried placing the names like this to see if that worked:

Code: [Select]
Player admin
Player op
Player member

And none of them worked. So how do I go about setting admin status for players?

10
Development / Struct Member Alignments
« on: December 06, 2010, 06:49:28 am »
Can Mineserver benefit from setting this to anything but default?

11
Development / Potential OpenMP support?
« on: December 06, 2010, 06:44:38 am »
From what I understand, OpenMP can be used to provide cluster-computing support. That being said, would it be possible to implement that into Mineserver? If so, it could potentially increase the maximum amount of players a server could support by allowing it to run on a cluster, thereby bringing Minecraft to potential MMO status. Or that's my theory anyways.

12
Development / x86-64 Builds
« on: December 04, 2010, 06:47:36 am »
Last time I checked it is possible to build a x86-64 executable, but it has to be written to take advantage of the additional abilities. That being said, can Mineserver use x86-64 abilities or are those not coded in yet?

13
Development / Some more admin functions
« on: December 03, 2010, 09:03:51 am »
Would it be possible to allow a server to deny build access to adminium? I host a LAN server and we have a big problem with people abusing it and accidentally screwing over their constructions.

Can we also implement the /op and /deop commands for placing and removing players from the admin database without having to restart or reload the server configs?

Pages: [1]