#exult@irc.freenode.net logs for 25 Jan 2008 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage

[00:04:28] <pupnik> http://www.youtube.com/watch?v=UUwUDoC3vc4 [ GemRB: Baldur's Gate 2 on on Nokia N810 ]
[01:52:06] --> Baastuul has joined #exult
[01:55:33] --> redskull has joined #exult
[02:01:42] <-- redskull has left IRC ()
[02:35:02] <-- Colourless has left IRC (Read error: 113 (No route to host))
[03:49:46] --> Colourless has joined #Exult
[03:49:46] --- ChanServ gives channel operator status to Colourless
[04:32:50] <-- Baastuul has left IRC ()
[06:10:09] --> pupnik_ has joined #exult
[06:20:17] <-- pupnik has left IRC (Read error: 110 (Connection timed out))
[11:01:58] <-- Colourless has left IRC (Read error: 104 (Connection reset by peer))
[11:06:52] --> Colourless has joined #Exult
[11:06:52] --- ChanServ gives channel operator status to Colourless
[13:23:56] <-- Kirben has left IRC (Read error: 110 (Connection timed out))
[13:33:23] <-- Colourless has left IRC ("casts improved invisibility")
[14:07:42] --> Baastuul has joined #exult
[15:27:57] --> Kazin has joined #exult
[15:55:10] --> _LD__ has joined #exult
[15:55:53] --- _LD__ is now known as _LD_2
[15:55:56] <_LD_2> yo
[15:56:02] <_LD_2> any1 can tell me something?
[15:56:17] <_LD_2> in Exult, all npcs of the world are allways active? or just when the character enter in screen?
[16:49:58] <Cahaan> nice metaphysic question
[16:56:09] <pupnik_> no, no
[17:01:39] <_LD_2> heh... its because i am working in a 2d mmorpg and having problem with lots of npc walking over the world
[17:01:58] <_LD_2> IA eating cpu cycles...
[17:02:50] <pupnik_> yes
[17:03:06] <pupnik_> look at what the acting troupe does
[17:03:39] <pupnik_> it's idle until you approach, then a script is triggered
[17:04:49] <pupnik_> then there are also incidential animatinos, walking back and forth, that you trigger when player gets near, and let run for a number of seconds after going offscreen
[17:04:56] <pupnik_> or something like that, i don't know the details
[17:05:02] <_LD_2> will need to do something different, because of guards that turn post on or off...
[17:05:13] <_LD_2> trying to do 2 types of npc, active and passive... passive are monsters and stuff in wilds
[17:05:19] <_LD_2> and active are the worker npcs, guards, etc
[17:05:39] <_LD_2> because the npc does what the npc does on u7... work on stuff, get water, etc
[17:07:54] <pupnik_> then i suggest a global schedule data structure that you run through. don't think of each npc as an 'active object'. think of the world as having a schedule, and step through the world schedule
[17:08:21] <pupnik_> that way scripts can place events X minutes into the future, then become 'dormant'
[17:09:20] <pupnik_> instead of for example every guard object looking at his watch every second and asking "is it time to go home yet?"
[17:10:25] <_LD_2> hmmm
[17:10:27] <Cahaan> yeah that's what I made for my own mmorpg
[17:10:30] <Cahaan> mmorpg*
[17:10:31] <_LD_2> very nice!
[17:10:38] <_LD_2> lol nice idea :P
[17:10:45] <_LD_2> whats your mmorpg cahaan?
[17:10:49] <Cahaan> global schedule
[17:10:56] <Cahaan> it's called darkhaven
[17:11:13] <Cahaan> 98% of the code is done
[17:11:18] <_LD_2> so i can create something in npc script like RegisterForGlobalSchedule( time, lua_action )
[17:12:29] <_LD_2> cahaan, how you did the timer/regeneration things? also this is eating cpu cycles...
[17:12:53] <_LD_2> because for each player, i need to check if is time to regenerate health, or if the item decay time is up
[17:13:12] <Cahaan> Main game loop handles it using event keys
[17:13:34] <Cahaan> I wrote my own script engine for the game
[17:13:39] <Cahaan> hesitated about using lua though :)
[17:13:48] <_LD_2> :P
[17:13:54] <_LD_2> lua is fast... have did tests...
[17:13:54] <Cahaan> here's a screen: http://darkhaven.free.fr/images/screenshots/shotorc.jpg
[17:14:02] <_LD_2> mine http://www.netherdeep.com.br
[17:14:03] <Cahaan> my language is not bad either :p
[17:14:12] <_LD_2> lol :P
[17:14:17] <Cahaan> thanks
[17:14:19] <Cahaan> looks nice
[17:14:24] <_LD_2> reminds me uw :)
[17:14:36] <_LD_2> http://www.netherdeep.com.br/armas_chkpoint3.jpg
[17:14:44] <_LD_2> http://www.netherdeep.com.br/prot_fauna_incompleta_jpeg.JPG
[17:15:11] <pupnik_> who is your artist
[17:15:16] <_LD_2> the problem is, my itens have dynamic vars...
[17:15:21] <_LD_2> ehuaea i did it in my spare time :P
[17:15:30] <_LD_2> but i am programmer, very bad artist :P
[17:16:22] <pupnik_> Cahaan: looks like it might run fine at 800x480?
[17:17:21] <Cahaan> that's right pupnik_
[17:17:49] <Cahaan> thanks _LD_2, I'm a big fan of UW...
[17:18:08] <Cahaan> I even choosed some parts of the UW gameplay
[17:18:14] <Cahaan> like right-click == examine anything
[17:18:19] <Cahaan> (even the roof)
[17:18:29] <Cahaan> I've added different levels of description
[17:18:32] <pupnik_> Cahaan: how much cpu speed to you need now?
[17:18:40] <Cahaan> depending on your wisdom ^^
[17:18:48] <pupnik_> hehe
[17:18:48] <Cahaan> and the complexity of the item
[17:19:11] <Cahaan> it runs fine on an old 300 mhz PC
[17:19:18] <Cahaan> without 3D card
[17:19:46] <Cahaan> should even run fine on older computers
[17:19:55] <Cahaan> didn't test it though
[17:20:31] <pupnik_> ok i can try compiling for nokia linux tablets if you want
[17:20:38] <pupnik_> 225-400mhz ARM
[17:23:24] <Cahaan> thank you :) however there's a big issue right now
[17:23:43] <Cahaan> it requires DirectDraw.... I plan to port it to SDL soon though :)
[17:24:09] <Cahaan> I picked the wrong technology at that time
[17:24:54] <_LD_2> need to go... nice work cahaan
[17:24:58] <_LD_2> will back later
[17:25:10] <-- _LD_2 has left IRC ()
[17:34:25] <pupnik_> ok if/when you do, i request you try to limit unnecessary screen redraws
[17:35:46] <Cahaan> lol
[17:35:47] <Cahaan> why?
[17:36:13] <Cahaan> can cause problems on mobile platforms?
[17:50:24] <pupnik_> on these yes
[17:50:38] <pupnik_> 800x480 @ 16bpp fullscreen updates are slow
[17:51:25] <pupnik_> maybe 18fps tops, if cpu is doing nothing but drawing
[18:21:24] --- pupnik_ is now known as pupnik
[21:29:05] --- Lord_Nightmare is now known as LordNAway
[22:32:04] --> Kirben has joined #exult
[22:32:04] --- ChanServ gives channel operator status to Kirben