Recent Posts

Pages: [1] 2 3 4 5 ... 10
1
Forum discussion / Is there any option to join in a running game?
« Last post by Burger_Elimenation on 27 March 2022, 15:19:10 »
Is there a way to configure a Megaglest server so that it is possible to join a game that is already running? Or are there no options to allow this on my Megaglest-Server?
2
Mods / primitive war(原始戰爭)
« Last post by 小丑遊戲 on 8 January 2022, 15:03:22 »
這是之前我做的一個MOD:原始人faction的修改
https://forum.megaglest.org/index.php?topic=10117.0
目前還是只有一個陣營,就是Nomada陣營
但是比起之前,除了將之前的單位重新製作外
還多出了許多單位和建築,(目前還沒有科技研發的設計)
就如下圖所示:

translate:
This is a MOD I made before: modification of the original person faction
https://forum.megaglest.org/index.php?topic=10117.0
There is still only one camp at the moment, the Nomada camp.
But compared to before, in addition to remaking the previous units
There are also many more units and buildings, (there is no design for technology research and development yet)
As shown in the figure below:

這個之後還會再繼續更新,而且會陸續做出共三種陣營

translate:
This will continue to be updated after this, and a total of three camps will be made one after another.

Download:
https://drive.google.com/file/d/1J7hKmVgSf5IJ2MA_te_7MUrccc-Qvx1e/view?usp=sharing




4
Bug reports / End Game Stats Colours are Wrong
« Last post by jammyjamjamman on 9 November 2021, 21:15:20 »
End game stats colours are incorrect. See the screenshot below:
(click to show/hide)
5
Mods / Insects World Mod
« Last post by RobotKiller001 on 5 November 2021, 22:37:40 »
Every 1/3 weeks it could be a new patch for this mod, based on your experiences in the game
there will be the appropriate changes. Write below this post your thoughts so i can read them.

Link for Github download: https://github.com/Robotkiller001/Insects-World-Mod

Here the link to download the mod: https://drive.google.com/file/d/1DYiYcUAZ9zlhmG4thxWfmYDTnqpjoUw1/view?usp=sharing

Bees:
(click to show/hide)
 
(click to show/hide)

Spiders:
(click to show/hide)
 
(click to show/hide)

Scorpions:
(click to show/hide)
 
(click to show/hide)
6
Mods / Re: MegaGlest Improved Mod
« Last post by RobotKiller001 on 22 October 2021, 07:25:04 »
For now i removed the Bees Faction, but don't worry i'm working on another mod with those, no spoilers for now . :P :P
7
MegaGlest / Re: megaglest source code question?
« Last post by titi on 21 October 2021, 22:52:48 »
in metrics.cpp change this:

   minimapX= 10;
   minimapY= 750-128-30+16;

the virtual resolution of MG is 1000x750 ( no matter which real resolution of the screen )
8
MegaGlest / Re: megaglest source code question?Game Panel problem
« Last post by titi on 21 October 2021, 22:45:21 »
Uh I missed this question. I dont understand what you are trying to do. what is the problem?
9
MegaGlest / megaglest source code question?Game Panel problem
« Last post by 小丑遊戲 on 21 August 2021, 17:35:26 »
Can I ask questions?
It’s about the Megaglest source code
I modified:
source>glest_game>global>metrics.cpp

void Metrics::reloadData(int resWidth, int resHeight) {

    minimapX= 128;
   minimapY= 10;
   minimapW= 128;
   minimapH= 128;

   displayX= 270;
   displayY= 10;
   displayW= 128;
   displayH= 482;   

source>glest_game>graphics>renderer.cpp

void Renderer::renderDisplay() {

      //   單位名字字串
      renderTextShadow3D(
         display->getTitle().c_str(),
         coreData.getDisplayFont3D(),
         display->getColor(),
         metrics.getDisplayX() + 40,
         metrics.getDisplayY() + metrics.getDisplayH() - 360);

      //   單位基本資訊文字字串
      renderTextShadow3D(
         display->getText().c_str(),
         coreData.getDisplayFont3D(),
         display->getColor(),
         metrics.getDisplayX() +128,
         metrics.getDisplayY() + metrics.getDisplayH() -360);

      //   單位指令資訊文字字串
      renderTextShadow3D(
         display->getInfoText().c_str(),
         coreData.getDisplayFont3D(),
         display->getColor(),
         metrics.getDisplayX()+512,
         metrics.getDisplayY() + Display::infoStringY);

      //   進度條
      if(display->getProgressBar() != -1) {
         renderProgressBar3D(
            display->getProgressBar(),
            metrics.getDisplayX(),
            metrics.getDisplayY() + metrics.getDisplayH()-50,
            coreData.getDisplayFontSmall3D(), 175);
      }
   }
   else {

      //   單位名字字串
      renderTextShadow3D(
         display->getTitle().c_str(),
         coreData.getDisplayFont3D(),
         display->getColor(),
         metrics.getDisplayX()+40,
         metrics.getDisplayY() + metrics.getDisplayH() - 360);

      //   單位基本資訊文字字串
      renderTextShadow3D(
         display->getText().c_str(),
         coreData.getDisplayFont3D(),
         display->getColor(),
         metrics.getDisplayX() +128,
         metrics.getDisplayY() + metrics.getDisplayH() -360);

      //   單位指令資訊文字字串
      renderTextShadow3D(
         display->getInfoText().c_str(),
         coreData.getDisplayFont3D(),
         display->getColor(),
         metrics.getDisplayX()+512,
         metrics.getDisplayY()+Display::infoStringY);

      //   進度條
      if(display->getProgressBar() != -1) {
         renderProgressBar3D(
            display->getProgressBar(),
            metrics.getDisplayX(),
            metrics.getDisplayY() + metrics.getDisplayH()-50,
            coreData.getDisplayFontSmall3D(), 175);
      }
   }

   //   單位圖標
   glEnable(GL_TEXTURE_2D);

   glColor3f(1.f, 1.f, 1.f);
   for(int i=0; i<Display::upCellCount; ++i){
      if(display->getUpImage(i)!=NULL){
         renderQuad(
            metrics.getDisplayX() + display->computeUpX(i),
            metrics.getDisplayY() + display->computeUpY(i)-360,
            display->getUpImageSize(), display->getUpImageSize(), display->getUpImage(i));
      }
   }

    //   單位指令圖標
   for(int i=0; i<Display::downCellCount; ++i){
      if(display->getDownImage(i)!=NULL){
         Vec3f c=display->getDownImageColor(i);
         glColor3f(c.x,c.y,c.z );

         //   dy = 10
         int x= metrics.getDisplayX()+display->computeDownX(i)+300;
         int y= metrics.getDisplayY()+display->computeDownY(i)-160;
         int size= Display::imageSize;

         //   向下選定位置
         if(display->getDownSelectedPos()==i){
            x-= 3;
            y-= 3;
            size+= 6;
         }

         renderQuad(x, y, size, size, display->getDownImage(i));
      }
   }

   //   單位指令圖標位置
   int downPos= display->getDownSelectedPos();
   if(downPos!=Display::invalidPos){
      const Texture2D *texture= display->getDownImage(downPos);
      if(texture!=NULL){
         int x= metrics.getDisplayX()+display->computeDownX(downPos)+303;
         int y= metrics.getDisplayY()+display->computeDownY(downPos)-163;
         int size= Display::imageSize+6;
         renderQuad(x, y, size, size, display->getDownImage(downPos));
      }
    }

The result is like the picture below
The location of the trigger option remains the same.
Which block of code should I start with?



10
Feature requests / Re: Help with engine code
« Last post by 小丑遊戲 on 21 August 2021, 17:14:03 »
in fact,I have researched megaglest source code,too.
but i can not so understand.
Pages: [1] 2 3 4 5 ... 10
anything