Mythruna
March 29, 2024, 04:38:32 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to the new forums. See "Announcements" for a note for new users.
 
   Home   Help Search Login Register  
Pages: 1 2 [3]
  Print  
Author Topic: Battle Mod v0.1  (Read 34914 times)
nh_99
Donators
Jr. Member
***
Posts: 71



View Profile
« Reply #30 on: May 20, 2013, 07:14:24 PM »

AWESOME MOD! Suggestion: How about making up your own AI, where the 'bot' will move forward until it touches something, then turn ETC. Maybe if there's a player nearby, it will face it and move towards it until it's like two feet in front, then randomly move forward, back, left, right and maybe jump, to dodge the player's attacks. :3
I do think that this could be possible but it would take an extremely long amount of time to get all of the AI programmed in.
Logged
Michael
Donators
Hero Member
***
Posts: 2166



View Profile
« Reply #31 on: May 20, 2013, 07:16:14 PM »

AWESOME MOD! Suggestion: How about making up your own AI, where the 'bot' will move forward until it touches something, then turn ETC. Maybe if there's a player nearby, it will face it and move towards it until it's like two feet in front, then randomly move forward, back, left, right and maybe jump, to dodge the player's attacks. :3
I do think that this could be possible but it would take an extremely long amount of time to get all of the AI programmed in.
But will Mythruna be able to support it via Groovy, or would you make a groovy-shell and program it in java?
Logged
pspeed
Administrator
Hero Member
*****
Posts: 5612



View Profile
« Reply #32 on: May 20, 2013, 08:34:49 PM »

It could be done either way but it's a lot of work no matter which route you choose.

The AI framework is my top priority after this next release.  Nearly all of my extra-curricular reading has been in preparation for it.
Logged
Michael
Donators
Hero Member
***
Posts: 2166



View Profile
« Reply #33 on: May 20, 2013, 08:41:18 PM »

It could be done either way but it's a lot of work no matter which route you choose.

The AI framework is my top priority after this next release.  Nearly all of my extra-curricular reading has been in preparation for it.
Cheesy! Paul I wish you the BEST OF LUCK!!
Logged
Michael
Donators
Hero Member
***
Posts: 2166



View Profile
« Reply #34 on: July 05, 2013, 01:25:47 PM »

So nh_99, I found you a nice error that you get on a server with the mod. Here are my steps on receiving the error:

1.) Installs (puts all the files in my /scripts folder)
2.) Starts console (all good, no errors)
3.) Joins (all good, no errors)
4.) Gets into game mode, opens inventory (all good, no errors)
5.) Puts the dummy in my hand (wait for it)
6.) Attempts to place (Stack trace below)

Code:
Todo:[ActionReference[1, BaseItem, Drop]]
java.lang.RuntimeException: Error serializing message
        at com.jme3.network.base.MessageProtocol.messageToBuffer(MessageProtocol
.java:82)
        at com.jme3.network.base.DefaultServer$Connection.send(DefaultServer.jav
a:499)
        at mythruna.server.HostedEntityData.sendData(HostedEntityData.java:201)
        at mythruna.server.HostedEntityData.sendChanges(HostedEntityData.java:39
2)
        at mythruna.server.StateSender.run(StateSender.java:106)
        at mythruna.sim.GameSimulation.run(GameSimulation.java:153)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)

        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: com.jme3.network.serializing.SerializerException: Error writing objec
t for field:private mythruna.msg.EntityDataMessage$ComponentData[] mythruna.msg.
EntityDataMessage.data
        at com.jme3.network.serializing.serializers.FieldSerializer.writeObject(
FieldSerializer.java:181)
        at com.jme3.network.serializing.Serializer.writeClassAndObject(Serialize
r.java:392)
        at com.jme3.network.base.MessageProtocol.messageToBuffer(MessageProtocol
.java:74)
        ... 13 more
Caused by: com.jme3.network.serializing.SerializerException: Error writing objec
t for field:private mythruna.es.EntityComponent[] mythruna.msg.EntityDataMessage
$ComponentData.components
        at com.jme3.network.serializing.serializers.FieldSerializer.writeObject(
FieldSerializer.java:181)
        at com.jme3.network.serializing.serializers.ArraySerializer.writeArray(A
rraySerializer.java:125)
        at com.jme3.network.serializing.serializers.ArraySerializer.writeObject(
ArraySerializer.java:110)
        at com.jme3.network.serializing.serializers.FieldSerializer.writeObject(
FieldSerializer.java:174)
        ... 15 more
Caused by: com.jme3.network.serializing.SerializerException: Error writing objec
t for field:private com.jme3.math.Vector3f mythruna.script.ContextActions.pos
        at com.jme3.network.serializing.serializers.FieldSerializer.writeObject(
FieldSerializer.java:181)
        at com.jme3.network.serializing.Serializer.writeClassAndObject(Serialize
r.java:392)
        at com.jme3.network.serializing.serializers.ArraySerializer.writeArray(A
rraySerializer.java:128)
        at com.jme3.network.serializing.serializers.ArraySerializer.writeObject(
ArraySerializer.java:110)
        at com.jme3.network.serializing.serializers.FieldSerializer.writeObject(
FieldSerializer.java:174)
        ... 18 more
Caused by: java.lang.NullPointerException
        at com.jme3.network.serializing.serializers.Vector3Serializer.writeObjec
t(Vector3Serializer.java:24)
        at com.jme3.network.serializing.serializers.FieldSerializer.writeObject(
FieldSerializer.java:174)
        ... 22 more
Logged
nh_99
Donators
Jr. Member
***
Posts: 71



View Profile
« Reply #35 on: July 10, 2013, 08:39:39 AM »

So nh_99, I found you a nice error that you get on a server with the mod. Here are my steps on receiving the error:

1.) Installs (puts all the files in my /scripts folder)
2.) Starts console (all good, no errors)
3.) Joins (all good, no errors)
4.) Gets into game mode, opens inventory (all good, no errors)
5.) Puts the dummy in my hand (wait for it)
6.) Attempts to place (Stack trace below)

Code:
Todo:[ActionReference[1, BaseItem, Drop]]
java.lang.RuntimeException: Error serializing message
        at com.jme3.network.base.MessageProtocol.messageToBuffer(MessageProtocol
.java:82)
        at com.jme3.network.base.DefaultServer$Connection.send(DefaultServer.jav
a:499)
        at mythruna.server.HostedEntityData.sendData(HostedEntityData.java:201)
        at mythruna.server.HostedEntityData.sendChanges(HostedEntityData.java:39
2)
        at mythruna.server.StateSender.run(StateSender.java:106)
        at mythruna.sim.GameSimulation.run(GameSimulation.java:153)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)

        at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
access$301(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: com.jme3.network.serializing.SerializerException: Error writing objec
t for field:private mythruna.msg.EntityDataMessage$ComponentData[] mythruna.msg.
EntityDataMessage.data
        at com.jme3.network.serializing.serializers.FieldSerializer.writeObject(
FieldSerializer.java:181)
        at com.jme3.network.serializing.Serializer.writeClassAndObject(Serialize
r.java:392)
        at com.jme3.network.base.MessageProtocol.messageToBuffer(MessageProtocol
.java:74)
        ... 13 more
Caused by: com.jme3.network.serializing.SerializerException: Error writing objec
t for field:private mythruna.es.EntityComponent[] mythruna.msg.EntityDataMessage
$ComponentData.components
        at com.jme3.network.serializing.serializers.FieldSerializer.writeObject(
FieldSerializer.java:181)
        at com.jme3.network.serializing.serializers.ArraySerializer.writeArray(A
rraySerializer.java:125)
        at com.jme3.network.serializing.serializers.ArraySerializer.writeObject(
ArraySerializer.java:110)
        at com.jme3.network.serializing.serializers.FieldSerializer.writeObject(
FieldSerializer.java:174)
        ... 15 more
Caused by: com.jme3.network.serializing.SerializerException: Error writing objec
t for field:private com.jme3.math.Vector3f mythruna.script.ContextActions.pos
        at com.jme3.network.serializing.serializers.FieldSerializer.writeObject(
FieldSerializer.java:181)
        at com.jme3.network.serializing.Serializer.writeClassAndObject(Serialize
r.java:392)
        at com.jme3.network.serializing.serializers.ArraySerializer.writeArray(A
rraySerializer.java:128)
        at com.jme3.network.serializing.serializers.ArraySerializer.writeObject(
ArraySerializer.java:110)
        at com.jme3.network.serializing.serializers.FieldSerializer.writeObject(
FieldSerializer.java:174)
        ... 18 more
Caused by: java.lang.NullPointerException
        at com.jme3.network.serializing.serializers.Vector3Serializer.writeObjec
t(Vector3Serializer.java:24)
        at com.jme3.network.serializing.serializers.FieldSerializer.writeObject(
FieldSerializer.java:174)
        ... 22 more

Hmmmm... I am not sure if this is mod side, or if this is an issue with the serialization in game mode. Paul?
Logged
pspeed
Administrator
Hero Member
*****
Posts: 5612



View Profile
« Reply #36 on: July 10, 2013, 08:49:41 AM »

Some component has a null Vector3f.  This is a known bug in JME but usually avoided by making sure not to have null positions.
Logged
Rayblon
Donators
Hero Member
***
Posts: 1861


Hmmm...


View Profile
« Reply #37 on: September 14, 2014, 08:31:02 PM »

Hmm... If you could create a tag or some reference value, couldn't you apply a pseudo health system to players and teleport them somewhere when they reach '0 health' in terms of the reference value? Just thinking we could have some sort of pvp so long as the mod takes into account some sort of hitbox... Just throwing some ideas out there...
Logged

Pages: 1 2 [3]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!