Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.7.10] guiscreen not run in server
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 0
thepdone

[1.7.10] guiscreen not run in server

By thepdone, August 6, 2015 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

thepdone    2

thepdone

thepdone    2

  • Stone Miner
  • thepdone
  • Members
  • 2
  • 87 posts
Posted August 6, 2015

how to run server ?

 

https://github.com/thepdone/OnerGamer/tree/master/src/main

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    6689

diesieben07

diesieben07    6689

  • Reality Controller
  • diesieben07
  • Forum Team
  • 6689
  • 45730 posts
Posted August 6, 2015
IppKJ.jpg
  • Quote

Share this post


Link to post
Share on other sites

thepdone    2

thepdone

thepdone    2

  • Stone Miner
  • thepdone
  • Members
  • 2
  • 87 posts
Posted August 6, 2015

guiscreen can not be run on the server.

  • Quote

Share this post


Link to post
Share on other sites

Choonster    1624

Choonster

Choonster    1624

  • Reality Controller
  • Choonster
  • Forge Modder
  • 1624
  • 5050 posts
Posted August 6, 2015

guiscreen can not be run on the server.

You'll need to be a bit more specific than that. What are you trying to do, how is it not working, what errors are you getting?

  • Quote

Share this post


Link to post
Share on other sites

thepdone    2

thepdone

thepdone    2

  • Stone Miner
  • thepdone
  • Members
  • 2
  • 87 posts
Posted August 7, 2015

i create gui screen but this Guiscreen is not available on this servers.

 

 

package OnerGamer.Gui.iPhone;

 

import org.lwjgl.opengl.GL11;

 

import OnerGamer.Gui.iPhone.Button.EndButton;

import OnerGamer.Gui.iPhone.Button.LEDButton;

import OnerGamer.Gui.iPhone.Button.LHButton;

import OnerGamer.Register.References;

import net.minecraft.client.Minecraft;

import net.minecraft.client.gui.GuiButton;

import net.minecraft.client.gui.GuiScreen;

import net.minecraft.util.ResourceLocation;

 

public class GuiiPhone extends GuiScreen {

 

EndButton button0;

LEDButton button1;

LHButton button2;

 

int guiWidth = 148;

int guiHeight = 80;

 

@Override

public void drawScreen(int x, int y, float f){

int guiX = (width - guiWidth) /2;

int guiY = (width - guiHeight) /2;

mc.renderEngine.bindTexture(new ResourceLocation("onermod:" + "textures/gui/iphone/bggus.png"));

GL11.glColor4f(1,1,1,1);

drawDefaultBackground();

drawTexturedModalRect(guiX - 50, guiY - 185, 0, 0, guiWidth + 148 , guiHeight + 165);

fontRendererObj.drawString("LED", guiX + 42, guiY - 86, 0x000000);

fontRendererObj.drawString("LockHome", guiX + 80, guiY - 86, 0x000000);

super.drawScreen(x, y, f);

}

 

@Override

public void initGui(){

int guiX = (width - guiWidth) /2;

int guiY = (width - guiHeight) /2;

buttonList.clear();

buttonList.add(button0 = new EndButton(0, guiX + 67, guiY + 30, 20, 20, ""));

buttonList.add(button1 = new LEDButton(1, guiX + 43, guiY - 110, 10, 20, ""));

buttonList.add(button2 = new LHButton(2, guiX + 92, guiY - 110, 20, 20, ""));

super.initGui();

}

 

@Override

protected void actionPerformed(GuiButton button){

switch(button.id){

case 0:

this.mc.displayGuiScreen((GuiScreen)null);

            this.mc.setIngameFocus();

}

switch(button.id){

case 1:

Minecraft.getMinecraft().displayGuiScreen(new GuiLED());

}

switch(button.id){

case 2:

Minecraft.getMinecraft().displayGuiScreen(new GuiLockHome());

}

super.actionPerformed(button);

}

}

 

  • Quote

Share this post


Link to post
Share on other sites

Failender    119

Failender

Failender    119

  • World Shaper
  • Failender
  • Forge Modder
  • 119
  • 1091 posts
Posted August 7, 2015

That is true. Gui screens are to be displayed on client side. and now?

  • Quote

Share this post


Link to post
Share on other sites

thepdone    2

thepdone

thepdone    2

  • Stone Miner
  • thepdone
  • Members
  • 2
  • 87 posts
Posted August 7, 2015

How do run guiscreen on server ?

  • Quote

Share this post


Link to post
Share on other sites

Failender    119

Failender

Failender    119

  • World Shaper
  • Failender
  • Forge Modder
  • 119
  • 1091 posts
Posted August 7, 2015

why.

 

SPOILER ALERT: you cant

  • Quote

Share this post


Link to post
Share on other sites

thepdone    2

thepdone

thepdone    2

  • Stone Miner
  • thepdone
  • Members
  • 2
  • 87 posts
Posted August 7, 2015

hahaha OK Thx :)

  • Quote

Share this post


Link to post
Share on other sites

Failender    119

Failender

Failender    119

  • World Shaper
  • Failender
  • Forge Modder
  • 119
  • 1091 posts
Posted August 7, 2015

why do you want to do that? there is no need to display gui screens on server side

 

  • Quote

Share this post


Link to post
Share on other sites

thepdone    2

thepdone

thepdone    2

  • Stone Miner
  • thepdone
  • Members
  • 2
  • 87 posts
Posted August 7, 2015

It's just an experiment.

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • AdieCraft
      Japanese Style Temple Base

      By AdieCraft · Posted 18 minutes ago

      Hello there!   Check out my latest tutorial in my Japanese Builds series, building a Japanese Temple base.   Make sure to Subscribe, so you don't miss any future videos.   Thanks   Adie   Japanese Style Temple Base    
    • DaemonUmbra
      Forge crashes on start

      By DaemonUmbra · Posted 58 minutes ago

      Forge for 1.13+ requires Java 8-10 Forge for 1.12.2- requires Java 8
    • GttiqwT
      [1.12.2] Multiple Structure Generation

      By GttiqwT · Posted 1 hour ago

      Yeah I get where you're coming from. I also watched harry talk's tutorial and at first it worked but then I got the problem that it wont spawn more than one structure otherwise it'll overlap and only spawn the latest one added. I tried to follow this tutorial again and it just didnt seem to work at all now. When I get more time ill have to do it again and then afterwards try and fix the issues with spawning more than one structure. I'm currently trying to fix the issue where it causes cascading gen lag but I dont know how to fix that quite yet either.
    • Draco18s
      Distinguish singleplayer vs. multiplayer

      By Draco18s · Posted 1 hour ago

      No. Your client code is sending information to make the server do things. Your server code is telling the server to do those same things (again).
    • solitone
      Distinguish singleplayer vs. multiplayer

      By solitone · Posted 2 hours ago

      This isn’t an issue but normal behaviour, is it?
  • Topics

    • AdieCraft
      0
      Japanese Style Temple Base

      By AdieCraft
      Started 18 minutes ago

    • bitman
      1
      Forge crashes on start

      By bitman
      Started 2 hours ago

    • Merthew
      7
      [1.12.2] Multiple Structure Generation

      By Merthew
      Started November 7, 2018

    • solitone
      24
      Distinguish singleplayer vs. multiplayer

      By solitone
      Started December 5

    • TheGreenSquarez
      5
      Forge 28.1.10 won't show on launcher + 28.1.0 fails to work

      By TheGreenSquarez
      Started Wednesday at 11:21 AM

  • Who's Online (See full list)

    • Mango106
    • Creeperslayercc
    • Gamercraft99
    • Alpvax
    • thinkverse
    • AdieCraft
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.7.10] guiscreen not run in server
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community