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.


Messages - ThuGie

Pages: [1]
1
Support / Re: Mobs on mineserver
« on: March 22, 2011, 06:54:15 pm »
Hey,

passiveMobs is indeed not supplied with the download.
You can compile it yourself though if you know how.

And it only supports a basic mob system.
Will spawn Chicken, Cow, Pig, Sheep(white)

And when you kill them you get the item and it will disappear directly.

Perhaps i will compile it from the latest build and upload it later.

2
Support / Re: all command config explaination
« on: March 22, 2011, 06:52:10 pm »
Thats because it expects the config files to be in files place them there and it will make a
.mineserver directory in your %appdata% location and copy the config files to there and use them.

3
Discussion / Re: Mineserver Runs On... (post your specs)
« on: March 20, 2011, 02:51:32 pm »
Running mineserver on a p4 2ghz 1,2gb ram 40gb hdd.

It seems to run smooth but haven't had a lot of people on yet.

4
Plugins / Re: [Plugin] getTime
« on: March 20, 2011, 02:50:21 pm »
Because vsc works fine for me ?
And only used gcc like once.

5
Plugins / [Plugin] getTime
« on: March 18, 2011, 11:57:47 am »
Well,

I was thinking at some point we would need a getTime function for plugins.
As for to know if a enemy mob aka zombie should spawn or not.

So i just made it as i just figured out how to get Visual Studio 2010 working with some help on this forum haha thanks alot xoft :).

I tested it it works fine for me. could use some improving ? my c++ isn't the best actually never used it before .... wow yeah i know..

ok here we go
commands.ccp
add under registerCommand home
Code: [Select]
registerCommand(new Command(parseCmd("gettime"), "<time>", "Get the serverTime", getTime));
add under method saveMap
Code: [Select]
void getTime(std::string user, std::string command, std::deque<std::string> args)
{
std::string msg = "The current server time is " + dtos(mineserver->map.getTime());
mineserver->chat.sendmsgTo(user.c_str(), msg.c_str());
}

plugin_api.h
add under bool (*setTime)(int timeValue);
Code: [Select]
int (*getTime)();

plugin_api.ccp
add above plugin_api_pointers.map.setTime
Code: [Select]
plugin_api_pointers.map.getTime                  = &map_getTime;add above bool map_setTime(int timeValue)
Code: [Select]
int map_getTime()
{
  return (int64_t)Mineserver::get()->map(0)->mapTime;
}

If i am not forgetting anything this should work perfectly on your server without any problem.


[edit]
Anybody have a clue on how to use
mineserver->map.getMapData_blocklight
if i'm right you can use that to see how light a tile is right ?
For spawning enemy mobs you can check if its near light or not would really like some help with this thanks :).

[edit-2]
Atm i got this its really bad i should probably write my own plugin :$ shame on me..
Code: [Select]
/*
  Copyright (c) 2010, The Mineserver Project
  All rights reserved.

  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions are met:
  * Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the
    documentation and/or other materials provided with the distribution.
  * Neither the name of the The Mineserver Project nor the
    names of its contributors may be used to endorse or promote products
    derived from this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY
  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <stdlib.h>
#include <string>
#include <deque>
#include <ctime>
#include <sstream>
#include <cstdlib>
#include <map>
#include <vector>
#include <iostream>
#include <ctime>
#include <stdint.h>
#include <math.h>

#define MINESERVER_C_API
#include "../../src/plugin_api.h"

#include "passiveMobs.h"

#define PLUGIN_PASSIVEMOBS_VERSION 1.1

#define PI 3.14159265

double sin_lt[3600];
double cos_lt[3600];

const char CHATCMDPREFIX   = '/';
mineserver_pointer_struct* mineserver;

std::string dtos(double n)
{
  std::ostringstream result;
  result << n;
  return result.str();
}

std::string Mobnames[] = {"Chicken","Pig","Sheep","Cow"};
std::string enemyMobNames[] = {"Spider","Zombie","Skeleton","Creeper"};
 
// The list of Mobs this plugin has control of
// Note that other plugins may make other mobs, and control them itself
class MyPetMob{
  public:
  int ID;
  double velocity;
  MyPetMob(int ID){ this->ID = ID; }
};
std::vector<MyPetMob*> MyMobs;

int maxMobs = 15; // Maximum ammount of mobs allowed
time_t lastSpawn = time(NULL);

int topBlockSuitable(int x, int z, int w){
  int y;
  unsigned char block, meta;
  for(y=127; y>0; y--){
    mineserver->map.getBlockW(x,y,z,w,&block,&meta);
    if(block!=0){break;}
  }
  if(block == 78 || block == 2 || block == 38 || block == 37){
    return y;
  }
  return 0;
}

bool canStepIn(int type){
  if(type == 0 || type == 6 || type == 8 || type == 9 || type == 10 ||
     type == 11 || type == 37 || type == 38 || type == 39 || type == 40 ||
     type == 50 || type == 51 || type == 55 || type == 59 ||
     type == 69 || type == 70 || type == 72 || type == 75 || type == 76 ||
     type == 77 || type == 78 || type == 83)
    return true;
  return false;
}

bool moveSuitable(double* x, double* y, double* z, int w){
  unsigned char block, meta;
  mineserver->map.getBlockW((int)floor(*x),(int)*y,(int)floor(*z),w,&block,&meta);
  if(canStepIn(block))
    return true;
  //mineserver->map.getBlockW((int)floor(*x),(int)(*y)+1,(int)floor(*z),w,&block,&meta);
  //if(canStepIn(block)){
    //(*y)++;
    //return true;
  //}
  return false;
}

void fallMob(double* x, double* y, double* z, int w){
  unsigned char block, meta;
  for(int count = 1; count < 128; count ++){
    mineserver->map.getBlockW((int)floor(*x),(int)(*y)-count,(int)floor(*z),w,&block,&meta);
    if(!canStepIn(block)){
      *y=(1+(*y))-count;
      return;
    }
  }
}

void timer200Function()
{
  if(MyMobs.size() < maxMobs && time(NULL)-lastSpawn>2){
    if(mineserver->user.getCount()>0){
      int randomPlayer = rand()%mineserver->user.getCount();
      double x,y,z;
      int w;
      if(mineserver->user.getPositionW(mineserver->user.getUserNumbered(randomPlayer),&x,&y,&z,&w,NULL,NULL,NULL))
      {
        x += ((rand()%100)-50);
        z += ((rand()%100)-50);
        y = topBlockSuitable(x,z,w);
        if(y>0){
          y+=1;
          int randomMob = rand()%4;
int newMob = 0;
  if (mineserver->map.getTime() > 18000 && mineserver->map.getTime() < 24000) {
newMob = mineserver->mob.createMob(enemyMobNames[randomMob].c_str());
  } else {
newMob = mineserver->mob.createMob(Mobnames[randomMob].c_str());
  }
          MyPetMob* newMobData = new MyPetMob(newMob);
          MyMobs.push_back(newMobData);
          mineserver->mob.moveMobW(newMob,x,y,z,w);
          mineserver->mob.spawnMob(newMob);
          lastSpawn=time(NULL);
        }
      }
    }
  }
  for(int i = MyMobs.size()-1; i>=0; i--){
    double x,y,z;
    int w;
    mineserver->mob.getMobPositionW(MyMobs[i]->ID,&x,&y,&z,&w);


    if(mineserver->mob.getHealth(MyMobs[i]->ID)==0){
      int type = mineserver->mob.getType(MyMobs[i]->ID);
      int item = 0,count = 0;
      if(type == 90){ item = 319; count = (rand()%4); }
      if(type == 91){ item = 35; count = (rand()%5);  }
      if(type == 92){ item = 334; count = (rand()%6); }
      if(type == 93){ item = 288; count = (rand()%8); }
      if(item != 0){
        mineserver->map.createPickupSpawn((int)floor(x),(int)floor(y),(int)floor(z),
                                         item, count, 0,NULL);
      }
      // TODO : Fix obvious gaping memory leak
      MyMobs.erase(MyMobs.begin()+i);
      continue;
    }
    int nearest = 10000;
    for (int j = 0; j < mineserver->user.getCount(); j++){
      char *name;
      name= mineserver->user.getUserNumbered(j);
      double px,py,pz;
      int pmap;
      mineserver->user.getPositionW(name, &px,&py,&pz,&pmap,NULL,NULL,NULL);

      if(w!=pmap){ continue; }
      int distance = abs(int(px-x)) + abs(int(py-y)) + abs(int(pz-z));
      if(distance < nearest){ nearest=distance; }
    }
    if(nearest < 0 || nearest > 200){
      MyMobs.erase(MyMobs.begin()+i);
      continue;
    }
    int action = rand()%100;
    double yaw, pitch;
    double forward=0;
    mineserver->mob.getLook(MyMobs[i]->ID, &yaw, &pitch);
    if(action < 5){
      yaw += 30;
    }else if(action <10){
      yaw += 15;
      while(yaw>=360){ yaw-=360;}
      forward=0.3;
    }else if(action <15){
      yaw -= 30;
    }else if(action <20){
      yaw -= 15;
      while(yaw <= 0){ yaw += 360; }
      forward=0.3;
    }else if(action < 30){
      forward=+0.6;
    }else if(action < 50){
      forward=-0.6;;
    }
    MyMobs[i]->velocity+=forward;
    if(MyMobs[i]->velocity>2.0){ MyMobs[i]->velocity = 2.0; }
    if(MyMobs[i]->velocity<0.0){ MyMobs[i]->velocity = 0.0; }
    forward = MyMobs[i]->velocity;
   
    if(yaw<=0){yaw+=360;}
    if( yaw>=360 ) { yaw-=360; }

    if(forward>0.1 && rand()%6 == 3){
      double incz = cos_lt[(int)(yaw*10)] * forward;
      double incx = sin_lt[(int)(yaw*10)] * forward;
      x-=incx; z+=incz;

      if(moveSuitable(&x,&y,&z,w)){
        fallMob(&x,&y,&z,w);
        mineserver->mob.moveMobW(MyMobs[i]->ID,x,y,z,w);
      }
      fallMob(&x,&y,&z,w); // Even if they dont move, make them fall
    }
    mineserver->mob.setLook(MyMobs[i]->ID, yaw, pitch);
     
  }
       
   

}

std::string pluginName = "passiveMobs";

PLUGIN_API_EXPORT void CALLCONVERSION passiveMobs_init(mineserver_pointer_struct* mineserver_temp)
{
  mineserver = mineserver_temp;

  if (mineserver->plugin.getPluginVersion(pluginName.c_str()) > 0)
  {
    std::string msg = "passiveMobs is already loaded v."+dtos(mineserver->plugin.getPluginVersion(pluginName.c_str()));
    mineserver->logger.log(6, "plugin.passiveMobs", msg.c_str());
    return;
  }
  std::string msg = "Loaded "+pluginName+"!";
  mineserver->logger.log(6, "plugin.passiveMobs", msg.c_str());

  mineserver->plugin.setPluginVersion(pluginName.c_str(), PLUGIN_PASSIVEMOBS_VERSION);

  for(int i=0; i<3600; i ++){
    sin_lt[i] = sin(((double)(i/10)*PI/180));
    cos_lt[i] = cos(((double)(i/10)*PI/180));
  }
  mineserver->plugin.addCallback("Timer200", (void *)timer200Function);
}

PLUGIN_API_EXPORT void CALLCONVERSION passiveMobs_shutdown(void)
{
  if (mineserver->plugin.getPluginVersion(pluginName.c_str()) <= 0)
  {
    mineserver->logger.log(6, "plugin.passiveMobs", "pluginMobs is not loaded!");
    return;
  }
}

I don't take any credit for this only thing i added was enemy monsters that don't attack??!! wth ? right haha
And changed the walking a bit.. instead of them running around all crazy..

6
Jailout you can just remove that function.
As its not even used..

7
Support / Re: Error at end of build. (Visual Studio 2010 build pack)
« on: March 18, 2011, 11:21:07 am »
Yeah removed the function and i had to set the ../files path to the ./ in the executable.
For some reason this build places them in %appdata%\.mineserver

And i had all files next to the executable while it was looking in a files directory :).
Currently adding a getTime function so i can get the time..
Incase i want to spawn different mobs at night :p.

8
Support / Re: Error at end of build. (Visual Studio 2010 build pack)
« on: March 18, 2011, 10:35:40 am »
Hey your amazing its almost working i get

========== Build: 10 succeeded, 1 failed, 0 up-to-date, 2 skipped ==========

Could it be because of this ?
Code: [Select]
src\blocks\leaves.cpp(22): error C2169: 'abs' : intrinsic function, cannot be defined
src\blocks\leaves.cpp(74): error C2264: 'abs' : error in function definition or declaration; function not called
src\blocks\leaves.cpp(74): error C2264: 'abs' : error in function definition or declaration; function not called
src\blocks\leaves.cpp(74): error C2264: 'abs' : error in function definition or declaration; function not called
Should i remove that function and try again ?

[edit]
After removing the function the server did compile correctly.
Although it still skipped 2 i guess its PACKAGE and INSTALL dont really need that right ?

9
Support / Re: Error at end of build. (Visual Studio 2010 build pack)
« on: March 18, 2011, 10:05:12 am »
Hey thanks for the fast reply,

And not sure if your on irc but it seems to be on invite only could you invite me me = ThuGie on irc :).

Quote from: xoft
ZLIB_INCLUDE_DIR, ZLIB_LIBRARY, EVENT_INCLUDE_DIR, EVENT_LIBRARY, NOISE_INCLUDE_DIR and NOISE_LIBRARY. You need to rewrite those to point to the msvc build pack's include directories (*_INCULDE_DIR) and the specific *.lib files (*_LIBRARY)

For the INCLUDE dir should it be the lib directory ? or simply the include dir ?

10
Support / Re: Error at end of build. (Visual Studio 2010 build pack)
« on: March 18, 2011, 09:31:32 am »
Hi,

I'm completely new to CMake and the .bat file doesn't seem to work for me.
Trows alot of warnings at last it does generating code but nothing more..

Code: [Select]
chat.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
cliScreen.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
config.cpp
constants.cpp
furnace.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
furnaceManager.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
inventory.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
inventory.cpp(119) : warning C4101: 'rightUse' : unreferenced local variable
inventory.cpp(1049) : warning C4244: 'argument' : conversion from 'int16_t' to 'int8_t', possible loss of data
lighting.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
logger.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
map.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
map.cpp(1078) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
map.cpp(1078) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
map.cpp(1078) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
map.cpp(1080) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
map.cpp(1082) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
map.cpp(1083) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
map.cpp(1083) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
map.cpp(1083) : warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
map.cpp(1586) : warning C4018: '<' : signed/unsigned mismatch
map.cpp(1607) : warning C4018: '<' : signed/unsigned mismatch
mcregion.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mcregion.cpp(453) : warning C4018: '<' : signed/unsigned mismatch
mcregion.cpp(456) : warning C4018: '<' : signed/unsigned mismatch
mcregion.cpp(502) : warning C4018: '<' : signed/unsigned mismatch
mcregion.cpp(509) : warning C4018: '<' : signed/unsigned mismatch
mcregion.cpp(519) : warning C4018: '<' : signed/unsigned mismatch
mineserver.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
mob.cpp
mob.cpp(69) : warning C4018: '<' : signed/unsigned mismatch
mob.cpp(108) : warning C4018: '<' : signed/unsigned mismatch
mob.cpp(131) : warning C4018: '<' : signed/unsigned mismatch
mob.cpp(153) : warning C4018: '<' : signed/unsigned mismatch
mob.cpp(216) : warning C4018: '<' : signed/unsigned mismatch
nbt.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
nbt.cpp(786) : warning C4244: 'argument' : conversion from 'int64_t' to 'double', possible loss of data
packets.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
packets.cpp(808) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
packets.cpp(808) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
packets.cpp(808) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
packets.cpp(1238) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
packets.cpp(1325) : warning C4018: '<' : signed/unsigned mismatch
physics.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
physics.cpp(275) : warning C4018: '<' : signed/unsigned mismatch
plugin.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
plugin_api.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
plugin_api.cpp(976) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
plugin_api.cpp(986) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
plugin_api.cpp(996) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
plugin_api.cpp(1006) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
screenBase.cpp
sockets.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
Generating Code...
Compiling...
tools.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
tree.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
tree.cpp(117) : warning C4244: 'initializing' : conversion from 'double' to 'float', possible loss of data
tree.cpp(107) : warning C4101: 'meta' : unreferenced local variable
tree.cpp(106) : warning C4101: 'blocktype' : unreferenced local variable
user.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
basic.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
blocks\basic.cpp(169) : warning C4101: 'meta' : unreferenced local variable
blocks\basic.cpp(168) : warning C4101: 'block' : unreferenced local variable
blockfurnace.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\blocks\../tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
cake.cpp
chest.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\blocks\../tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
default.cpp
door.cpp
dyed.cpp
blocks\dyed.cpp(102) : warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
blocks\dyed.cpp(103) : warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
falling.cpp
fire.cpp
ladder.cpp
leaves.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
blocks\leaves.cpp(22) : error C2169: 'abs' : intrinsic function, cannot be defined
blocks\leaves.cpp(74) : error C2264: 'abs' : error in function definition or declaration; function not called
blocks\leaves.cpp(74) : error C2264: 'abs' : error in function definition or declaration; function not called
blocks\leaves.cpp(74) : error C2264: 'abs' : error in function definition or declaration; function not called
liquid.cpp
note.cpp
plant.cpp
blocks\plant.cpp(106) : warning C4018: '<' : signed/unsigned mismatch
blocks\plant.cpp(465) : warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
blocks\plant.cpp(466) : warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
redstone.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
blocks\redstone.cpp(69) : warning C4305: 'argument' : truncation from '' to 'const uint8_t'
blocks\redstone.cpp(69) : warning C4309: 'argument' : truncation of constant value
sign.cpp
snow.cpp
Generating Code...
Compiling...
stair.cpp
blocks\stair.cpp(87) : warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
blocks\stair.cpp(88) : warning C4244: 'argument' : conversion from 'int16_t' to 'char', possible loss of data
torch.cpp
tracks.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
workbench.cpp
biomegen.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
worldgen\biomegen.cpp(284) : warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\biomegen.cpp(288) : warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\biomegen.cpp(289) : warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\biomegen.cpp(306) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
worldgen\biomegen.cpp(418) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
worldgen\biomegen.cpp(473) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
worldgen\biomegen.cpp(473) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
cavegen.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
eximgen.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
worldgen\eximgen.cpp(277) : warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(281) : warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(282) : warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(349) : warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(536) : warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(542) : warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(548) : warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(554) : warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(560) : warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(566) : warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(572) : warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(578) : warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(590) : warning C4244: '=' : conversion from 'double' to 'int32_t', possible loss of data
worldgen\eximgen.cpp(591) : warning C4244: '=' : conversion from 'double' to 'int32_t', possible loss of data
worldgen\eximgen.cpp(594) : warning C4244: '-=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(606) : warning C4244: '=' : conversion from 'double' to 'uint8_t', possible loss of data
worldgen\eximgen.cpp(624) : warning C4244: 'initializing' : conversion from 'double' to 'uint8_t', possible loss of data
heavengen.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
worldgen\heavengen.cpp(222) : warning C4101: 'currentHeight' : unreferenced local variable
worldgen\heavengen.cpp(223) : warning C4101: 'ymax' : unreferenced local variable
worldgen\heavengen.cpp(224) : warning C4101: 'ciel' : unreferenced local variable
mapgen.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
worldgen\mapgen.cpp(258) : warning C4244: 'initializing' : conversion from 'float' to 'uint8_t', possible loss of data
worldgen\mapgen.cpp(259) : warning C4244: 'initializing' : conversion from 'float' to 'uint8_t', possible loss of data
worldgen\mapgen.cpp(340) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
worldgen\mapgen.cpp(340) : warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data
nethergen.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
lexer.cpp
node.cpp
parser.cpp
c:\mineserver-vs2010_build_pack\mineserver\src\config\../tools.h(110) : warning C4244: 'return' : conversion from 'double' to 'int', possible loss of data
scanner.cpp
config\scanner.cpp(61) : warning C4244: 'initializing' : conversion from 'std::streamoff' to 'int', possible loss of data
Generating Code...

I have installed CMake when i press generate it say's i dont have the dependency's installed.

I thought i could use it from the build pack.
But no clue where to place them.

Code: [Select]
Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 10
Check for working CXX compiler using: Visual Studio 10 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
CONFIG_LOCAL is set -- assuming local build
Dependency check: mineserver
Could NOT find ZLIB (missing:  ZLIB_INCLUDE_DIR ZLIB_LIBRARY)
Could NOT find EVENT (missing:  EVENT_LIBRARY EVENT_INCLUDE_DIR)
Could NOT find NOISE (missing:  NOISE_LIBRARY NOISE_INCLUDE_DIR)
CMake Error at CMakeLists.txt:179 (message):
  

   Not all dependencies could be found:

   - ZLIB

   - Event

   - Noise

  

  After installing them please rerun cmake.


Any more information would really help thanks :).

[edit]
I tried the new rev of the do_build.bat with plugins it does compile the plugins.. err weird ?

Pages: [1]