h3ckboy
|
 |
«
Reply #180 - Posted
2009-02-23 23:00:56 » |
|
will the sword count as a weapon slot. causee if so, who would use(besides the fact it would be SO AWESOME).
I am gladd to here taht a crashing computer cannot stop VE.
keep up the good work.
|
|
|
|
Corvinex
Senior Devvie    Projects: 1
Work Hard, Go Pro.
|
 |
«
Reply #181 - Posted
2009-02-23 23:25:08 » |
|
I was planning on the sword being counted as a slot, but i'll see if it can be under some other category. I was thinking melee weapons are more powerful then a single bullet, so having a gun and melee combo would be a good set up for when enemies get too close. Here is an early screen shot: Thanks.
|
|
|
|
h3ckboy
|
 |
«
Reply #182 - Posted
2009-02-24 06:48:09 » |
|
have oyu already got the collision worked out or jus thte graphics. cause a curved blade will make it a bit harder.
is VE made with a tile map. cause it would seen like it.
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Corvinex
Senior Devvie    Projects: 1
Work Hard, Go Pro.
|
 |
«
Reply #183 - Posted
2009-02-24 15:58:29 » |
|
Yeah I already started the sword collision, I just have to finish it up.
Yes VE is tile based, if you press "o" in game you will see debug mode.
|
|
|
|
h3ckboy
|
 |
«
Reply #184 - Posted
2009-02-24 17:31:18 » |
|
I cant run your game anymore. the applet freexs before game loades.
|
|
|
|
h3ckboy
|
 |
«
Reply #185 - Posted
2009-02-24 21:52:29 » |
|
was wrong. it works it jsut takes like 10+ minutes for it to start working. It does this every time it loadss a new screen.
|
|
|
|
Corvinex
Senior Devvie    Projects: 1
Work Hard, Go Pro.
|
 |
«
Reply #186 - Posted
2009-02-24 22:42:55 » |
|
Its my webhost... they seem to be getting worse. There is also a lot of down time. I might have to transfer everything to someone else.
When the game saves it calls up a file on the server, so if the server is lagging up, then the game will lag up.
|
|
|
|
h3ckboy
|
 |
«
Reply #187 - Posted
2009-02-25 06:56:34 » |
|
ahh. Ok. I am gunna go check if it is fast now.
btw teh debug mode is cool. Do you use it a lot?
|
|
|
|
h3ckboy
|
 |
«
Reply #188 - Posted
2009-02-25 06:57:56 » |
|
nope it is still taking a while.
|
|
|
|
Cero
|
 |
«
Reply #189 - Posted
2009-02-25 10:35:47 » |
|
honestly I think that most of the lags and stuff also comes from the fact that we play it inside an applet. I can understand that some people like applets, but in this case, this game needs kinda performance, so please give me a webstart or downloadable jar or just classes with batch file or something like that
|
|
|
|
Games published by our own members! Check 'em out!
|
|
h3ckboy
|
 |
«
Reply #190 - Posted
2009-02-25 11:06:04 » |
|
can applets webstart?
what you oculd do if that is possible is have there be an option. so if the server is slow, you can webstart. otherwise jsut save yourself the hassle and use applet.
just a thought.
i qwas reading your posts ont eh website, is visitng other ppls rooms still possible?
|
|
|
|
Corvinex
Senior Devvie    Projects: 1
Work Hard, Go Pro.
|
 |
«
Reply #191 - Posted
2009-02-26 06:49:55 » |
|
Later on we were planning on having a webstart version, but not any time soon. I don't believe that the any of the lag is due to it being in an applet, I'm sure one of these Java experts can vouch for that. It is mainly the Garbage Collection, and if it happens during a map transition then its the webhost slowing down.
Once I get a chance to look into Garbage Collection methods, I'll force garbage collection at the best times. Or I'll figure out what is the main cause of VE's garbage collection, then I can implement a fix.
Visiting user's rooms was on the list when rooms were planned to be editable. This has been put off until we get the multiplayer aspect going. You'll be able to visit people's rooms and meet up with friends in them, and start up multiplayer games.
|
|
|
|
h3ckboy
|
 |
«
Reply #192 - Posted
2009-02-26 07:16:33 » |
|
wait, but if the server glitches at me being alone. then with maby 10+ ppl. you would wait like 3 hours to get on.
|
|
|
|
h3ckboy
|
 |
«
Reply #193 - Posted
2009-02-26 07:43:11 » |
|
YES! I can get back on!!! the dark times are over....
|
|
|
|
CommanderKeith
|
 |
«
Reply #194 - Posted
2009-02-26 16:21:11 » |
|
Hi,
I just gave this game a try on my computer and it now works, whereas before it didn't. Does it still use LWJGL or did you switch back to java2D?
By the way, the physics are cool and so is the mouse-look and view scroll.
|
|
|
|
Corvinex
Senior Devvie    Projects: 1
Work Hard, Go Pro.
|
 |
«
Reply #195 - Posted
2009-02-26 16:48:32 » |
|
Thanks a lot. This game is all Java SDK, so it uses only Java 2D.
Thanks I worked hard on the physics engine, and the view scrolling has developed pretty well along the way too.
I finally get to program after class today, so much to do. My list gets longer and longer, but I love it.
|
|
|
|
h3ckboy
|
 |
«
Reply #196 - Posted
2009-02-26 16:51:56 » |
|
do you have a CS(computer science) class? cause if so, you probably are a better programmer than him. hehe.
you didnt use a library!
ooh wow, that is a LOT of code. How did you get the states done (theya re states right?). I know how to do it in slick, vague idea in LWJGL, but no idea in java2D.
|
|
|
|
Corvinex
Senior Devvie    Projects: 1
Work Hard, Go Pro.
|
 |
«
Reply #197 - Posted
2009-02-26 17:01:56 » |
|
I don't have a CS semester this semester. I was in a web development class last semester, and she asked the students to present any web game they make, to display at some open house. I presented VE to her and she was surprised, lol, she couldn't say much. I didn't even participate in the class. She asked me to make her a website in exchange for an "A" in the class, since I already knew everything anyways.
Yeah I made the whole game, last time a checked it was 15,000 lines of code.
I don't think there are states in Java 2D.
|
|
|
|
h3ckboy
|
 |
«
Reply #198 - Posted
2009-02-26 17:28:04 » |
|
15000!!!!!!
that is like 10 essays. that is a whole years worth of english class.
wait if there are no states how did you make the game. is there another way to do it.
|
|
|
|
martineriksen
|
 |
«
Reply #199 - Posted
2009-02-26 17:51:44 » |
|
Why do you think garbage collection causes slowdown? I made a similar game and found that GC took less than very few milliseconds. As you are using Java2D my guess is a solid amout of time goes by rendering. For performance optimization I recommend that you find out exactly what is taking the time before spending time on trails that aren't important. I suggest using HPROF to profile your application; it is really quite simple and gives a very clear idea about which lines of code is taking the most time. Here is something about HPROF: http://java.sun.com/developer/technicalArticles/Programming/HPROF.html
|
|
|
|
h3ckboy
|
 |
«
Reply #200 - Posted
2009-02-26 18:06:01 » |
|
I dont know what HPROF is. but you could in the debug mode, draw the amount of time it takes ot do things. jsut take the time at the beginning and the end. and print the difference.
this should tell you what is taking up all of the time.
|
|
|
|
|
martineriksen
|
 |
«
Reply #202 - Posted
2009-02-26 20:03:51 » |
|
--- "I dont know what HPROF is"
That is a very good reason to look into it :-)
|
|
|
|
h3ckboy
|
 |
«
Reply #203 - Posted
2009-02-26 20:12:57 » |
|
the wiki link doesnt exist.
so does HBROF jsut monitor CPU usage, and other CPU stats?
|
|
|
|
martineriksen
|
 |
«
Reply #204 - Posted
2009-02-26 21:03:16 » |
|
HPROF can be used for monitoring CPU usage and Memory usage. I have only used to for cpu usage. The basic idea is:
* You start your programme with the hprof command line option * While the programme is executing as normal hprof will check with regular intervals what your programme is doing at that specific point in time and note this down * When you terminate your programme hprof dumps a report of what your programme was doing when it checked. * hprof checks 1000s of times for a short programme execution
So the more frequently a line of code is executed or the more time is spent on that line and the more frequently will it appear in hprofs output. So the top expensive lines of code in hprofs report is what you will look at for optimization.
So it is not really cpu usage. It just reports what your programme does the most.
|
|
|
|
Corvinex
Senior Devvie    Projects: 1
Work Hard, Go Pro.
|
 |
«
Reply #205 - Posted
2009-02-27 07:54:48 » |
|
Thanks for the link I'll look into HPROF. I thought it would be caused by Garbage Collection because every once in a while the game freezes up and then unfreezes. It might be that my game's garbage collection takes longer, so i'll have to find out what's causing this.
|
|
|
|
h3ckboy
|
 |
«
Reply #206 - Posted
2009-02-27 08:16:22 » |
|
has lvl 8 come yet? it is taking quite a while. (sry tobe a bug)
|
|
|
|
h3ckboy
|
 |
«
Reply #207 - Posted
2009-02-27 11:40:14 » |
|
hey I have tohought of an awesome idae. a survival match thing.
so basicly youa re ina room iwht obstacles. and then guys come at you, and you see how many you can kill before you die.
|
|
|
|
Cero
|
 |
«
Reply #208 - Posted
2009-02-27 13:01:23 » |
|
the official statement is not to use System.gc() in latest java editions =o
|
|
|
|
h3ckboy
|
 |
«
Reply #209 - Posted
2009-02-27 13:54:23 » |
|
I am guessing you are talking about garbage collection.
|
|
|
|
|