actualluy I'm making EffNet its loosely based on Vornet, so if you want to butt heads and collaborate its up to you.
Posts by King Nothing
A new update is now available, introducing a lot of new content!
Latest hotfix: 0.7.5.2 (2024-09-10)
Latest hotfix: 0.7.5.2 (2024-09-10)
-
-
thank you , I never know I could define variables outside an event
-
what I am trying to do is
type /XXXX and an editable text field with an OK button pops up
I set the ok button to clickable, but I need the "onGuiElementClickEvent" in order for it to work, I am confused on how to do this.
Code -
I tried Adding a Text Field and all i got was a white Screen
I tried Adding a database, that gave me errors
What I am trying to do is NOT possible or the API is full of bugs.Code
This Code should NOT make the Screen Completly Whiteif any one can chat with me on steam, feel free.
-
I'm assuming this is Normal when you add a text Field? i scaled it down and i get a big white screen
Code -
heres a color chart that may help http://www.nthelp.com/colorcodes.htm
thank you. i've been googling the color codes with NO luck.
-
thanks and sorry for the caps, I was just getting frustrated because my database won't work so now I'm working on a different Project and this GUI Thing is getting on my nerves
and when I think of RGBA I think of
this: rgba(255, 0, 0, 0.3)I don't know where you are coming up with (Oox000000BB) it looks like an extended version of the hexadecimal colors.
-
I read and pulled apart Red's Guestbook Plugin and of course it didn't show up in the game.
all I Want is to place a simple Box on the screen so the player can enter info..
any help would be appreciated.
-
the above code SHOULD work and update the record.
-
the VALUES are variables, not fixed values.
-
Javadb.execute("CREATE TABLE IF NOT EXISTS 'MailPeople' ('player_name' CHAR(64) NOT NULL DEFAULT ('[NoName]'),'recipient_name' CHAR(64) NOT NULL DEFAULT ('[NoName]'),'time' CHAR(64) NOT NULL DEFAULT ('[NoName]'),'text' CHAR(64) NOT NULL DEFAULT('[NoTime]'), 'read');");
Now the console says "Recpiant is a "Column," it is clearly in the VALUES I've tried everything to write a variable, coukd someone please tell me what the heck I am doing wrong?
-
Java
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at pluginapi.PluginEventHandler.triggerEvent(SourceFile:166)
at aF.b.a(SourceFile:171)
at aF.b.messageReceived(SourceFile:121)
at k.e.a(SourceFile:109)
at k.c.run(SourceFile:65)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
at Commands.Commands.onCommand(Commands.java:79)
... 9 more
Mirrawe helped me and I still cannont figure this out.... -
Never mind.. I moved the bracket and it worked
-
package Mail;
import net.risingworld.api.Plugin;
import net.risingworld.api.events.EventMethod;
import net.risingworld.api.events.Listener;
import net.risingworld.api.events.player.PlayerCommandEvent;
import net.risingworld.api.objects.Player;
public class Mail extends Plugin implements Listener{
@Override
public void onEnable(){
registerEventListener(this);
}
@Override
public void onDisable(){
//...
}
@EventMethod
public void onPlayerCommand(PlayerCommandEvent event){
Player player = event.getPlayer();
String command = event.getCommand();
//split the command
String[] cmd = command.split(" ");
//check the command
if(cmd[0].equals("/mail")){
//check if player Entered a Recipeant
if(cmd.length > 1){
String towhom = command.substring(5);
player.sendTextMessage("Sent Mail to:" + towhom);
}}
else{
//inform player that he has to enter the recpiant
player.sendTextMessage("[#FF0000]You Need to Specify Who You are Mailing!");
player.sendTextMessage("[#FF0000]USAGE: /mail UncleBob");}
}
}
It will say "Mail sent to: XXXX" but when I just type in "/mail" it won't see the Else Command, it doesn't say anything i the chat
-
I was Informed by Yahgiggle that is Possible to make Your own Vehicle with the api?? all you have to do is lock to your screen. that sounds awesome
-
yes the Model, typo
-
It unfortuanetly does not work any more, the mode stopped showing up, all I did was edit Red's Guestbook plugin and used my own model, LOL
-
could you post a link to the 3d model you are trying to import and your plugin source code?
thats what it was, it had too many polys, loaded a different model and it works like a charm
-
http://tf3dm.com/3d-model/atm-57251.html
it said Low Poly but i think its High Quality -
Windows 10 (x64) 10.0 Java: 1.8.0_91 amd64 0.7.3_30 -H:2048 -D:1024 (Steam)
Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz, 0Y2MRG, 4078 MB (951 MB Heap)
AMD Radeon HD 5670 20151104000000.000000-000 15.201.1151.1008
______________________________________________________________________
Problematic frame: C [atio6axx.dll+0x3f5ad0]Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [atio6axx.dll+0x3f5ad0]Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 3574 org.lwjgl.opengl.GL12.nglDrawRangeElementsBO(IIIIIJJ)V (0 bytes)
J 7038 C2 com.jme3.renderer.opengl.GLRenderer.drawTriangleList(Lcom/jme3/scene/VertexBuffer;Lcom/jme3/scene/Mesh;I)V (492 bytes)
J 6969 C2 com.jme3.renderer.opengl.GLRenderer.renderMeshDefault(Lcom/jme3/scene/Mesh;II[Lcom/jme3/scene/VertexBuffer;)V (242 bytes)
J 7557 C2 com.jme3.material.Material.render(Lcom/jme3/scene/Geometry;Lcom/jme3/light/LightList;Lcom/jme3/renderer/RenderManager;)V (371 bytes)
J 7040 C2 com.jme3.renderer.RenderManager.renderGeometry(Lcom/jme3/scene/Geometry;)V (250 bytes)
J 7183 C2 com.jme3.renderer.queue.RenderQueue.renderGeometryList(Lcom/jme3/renderer/queue/GeometryList;Lcom/jme3/renderer/RenderManager;Lcom/jme3/renderer/Camera;Z)V (77 bytes)
J 5195 C2 com.jme3.renderer.RenderManager.renderViewPortQueues(Lcom/jme3/renderer/ViewPort;Z)V (258 bytes)
J 7381 C1 ah.h.postQueue(Lcom/jme3/renderer/queue/RenderQueue;)V (147 bytes)
J 5251 C2 com.jme3.post.FilterPostProcessor.postQueue(Lcom/jme3/renderer/queue/RenderQueue;)V (50 bytes)
J 7198 C1 com.jme3.renderer.RenderManager.renderViewPort(Lcom/jme3/renderer/ViewPort;F)V (465 bytes)
J 5364 C2 com.jme3.renderer.RenderManager.render(FZ)V (229 bytes)
J 7385 C1 commons.JIWApplication.update()V (251 bytes)
J 6161 C1 com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop()V (141 bytes)
J 5501 C1 com.jme3.system.lwjgl.LwjglDisplay.runLoop()V (108 bytes)
j com.jme3.system.lwjgl.LwjglAbstractDisplay.run()V+136
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stubI was Trying to Import a 3D Model and i got "OUDATED VIDEO DRIVER"
i went to ATI and it said my driver is Current