#exult@irc.freenode.net logs for 20 Apr 2001 (GMT)

Archive Today Yesterday Tomorrow
Exult homepage

[00:00:00] <tRIPtRONIX> oh well i g2g now seeya all.............evildude233@hotmail.com
[00:00:07] <-- tRIPtRONIX has left #exult
[00:05:38] <-- DraX has left IRC (bye? ..(sph))
[00:41:33] --> Kirben has joined #exult
[00:53:38] <-- Ari-BalZen-Ailum has left IRC (Ping timeout for Ari-BalZen-Ailum[modem-45.percula-clown.dialup.pol.co.uk])
[00:54:18] <-- Kirben has left IRC (Read error to Kirben[co3007967-a.brasd1.vic.optushome.com.au]: Connection reset by peer)
[00:55:50] --> Arizail has joined #exult
[01:16:55] <-- Arizail has left IRC (Goodbye)
[01:26:34] --> DraX has joined #exult
[01:30:23] <-- DraX has left IRC (bye? ..(sph))
[05:11:38] <-- chimera|wookin has left IRC (zelazny.openprojects.net herbert.openprojects.net)
[05:22:18] --> tRIPtRON has joined #exult
[05:22:23] <-- tRIPtRON has left #exult
[05:26:20] --> chimera|wookin has joined #exult
[05:51:01] <-- chimera|wookin has left IRC (tolkien.openprojects.net zelazny.openprojects.net)
[05:51:47] --> chimera|wookin has joined #exult
[07:53:32] --> matt0 has joined #exult
[08:11:15] --> wjp has joined #exult
[08:14:06] <matt0> wjp!
[08:17:46] <wjp> hi Matt
[09:40:08] --> Fingolfin has joined #exult
[09:40:20] <wjp> hi
[10:05:25] <Fingolfin> hiya
[10:05:41] * Fingolfin was distracted just when he joined IRC
[10:05:42] <Fingolfin> ;)
[10:10:29] <wjp> :-)
[10:12:41] <matt0> hey max!
[10:12:50] <Fingolfin> mattttttttt
[10:16:20] <matt0> can I ask you guys a question about programming style?
[10:16:34] <wjp> sure
[10:17:00] <matt0> usually in all my .cpp programs, I have #include's for every header file I need. These header files almost always _only_ contain function definitions, and nothing else ... my question is ..
[10:17:24] <matt0> would there be anything wrong with me just making a universal header file called "all.h" and having all.h including all the function headers? or is this bad some how for performance/file size?
[10:18:01] <matt0> and I'm not talking about standard headers, I am talking about the headers I make myself ..
[10:18:55] <wjp> well, other than that it will probably slow down compiling slightly, it won't harm performance. But...
[10:20:45] <wjp> ...it's not really modular.
[10:20:56] <wjp> (ok, that was quite a long pause for these 5 words :-) )
[10:21:00] <matt0> hehehe
[10:21:13] <matt0> I guess that's a good point about modularability (is that a word? hehe)
[10:21:54] <wjp> for instance, Exult really benifits from using separate header files, since it allows (for example) expack to use a part of exult
[10:22:16] <matt0> yes, I agree that modular coding is important
[10:22:23] <wjp> s/benifits/benefits/ ?
[10:22:27] <matt0> benefits
[10:24:34] <matt0> right now I am working on getting the spathi to bounce off the planet correctly
[10:24:42] <matt0> it turned out to be a rather difficult problem to solve!
[10:24:54] <matt0> I've had friends working it out for the past few days and we only solved it tonight =]
[10:25:06] <wjp> hmm, mirror speed against normal
[10:25:27] <matt0> yes, that's what we did
[10:25:36] <matt0> but coming up with the equations was the tricky part
[10:25:44] <matt0> if you are bored, feel free to take a crack at it =]
[10:26:06] <wjp> you don't have the eqns yet?
[10:26:10] <matt0> yeah I do
[10:26:22] <matt0> I finally figured them out tonight
[10:26:39] <matt0> in fact, why don't I post them here =]
[10:26:44] <matt0> that might be better than you starting from scratch hehe
[10:27:35] <matt0> p = planet's surface normal at point of contact
[10:27:35] <matt0> t = direction of spathi's velocity vector (in degrees, 0 degrees pointing directly to the right)
[10:27:41] <matt0> t1 = (t - p);
[10:28:09] <matt0> normalize(t1); // make it between 0 and 360
[10:28:10] <matt0> if (t1 is between 180 and 90)
[10:28:10] <matt0> {
[10:28:18] <matt0> t2 = t1 - 2*(t1-90);
[10:28:20] <matt0> }
[10:28:26] <matt0> else if (t1 is between 180 and 270)
[10:28:26] <matt0> {
[10:28:36] <matt0> t2 = t1 + 2*(270 - t1);
[10:28:36] <matt0> }
[10:28:47] <matt0> / else it should not have hit the planet in the first place, so do nothing
[10:28:55] <matt0> tfinal = t2 + p;
[10:28:58] <matt0> / DONE
[10:29:03] <matt0> err // DONE
[10:29:06] <matt0> there you have it =]
[10:29:39] <matt0> (I also need to take into account if t1 IS 180 but that's trivial)
[10:29:55] <wjp> aren't these two equations for t2 the same mod 360?
[10:30:18] <matt0> could be... could be!
[10:30:30] <matt0> that would be nice if they are, then I can make my solution smaller
[10:30:42] <wjp> t2 = t1 - 2*t1 + 180
[10:30:54] <wjp> t2 = t1 - 2*t1 + 540
[10:31:04] <wjp> -> t2 = normalize(180 - t1)
[10:31:32] <wjp> but I'm not really feeling awake, so you might want to double check :-)
[10:31:40] --- wjp is now known as wjp|lunch
[10:31:42] <wjp|lunch> bbl
[10:32:48] <matt0> hehehe
[10:32:48] <Fingolfin> have a nice meal
[10:35:07] <-- wjp|lunch has left IRC ([x]chat)
[10:35:54] <matt0> good heavens!
[10:36:03] <matt0> I wonder why I couldn't see those reductions!
[10:36:24] <matt0> probably because I've been staring at this problem too long hehe
[10:37:32] <Fingolfin> <g>
[10:37:53] <matt0> he's right! it does reduce down to t2 = normalize(180 - t1) !
[10:37:56] * matt0 slaps forehead
[10:38:13] <matt0> which further reduces down to:
[10:38:37] <matt0> tfinal = normalize(180 - (t - p)) - p
[10:38:39] <matt0> I believe
[10:39:14] <matt0> or maybe that's a + p on the end
[10:39:41] <Fingolfin> +p if your original code was right I think
[10:39:53] <matt0> my original code should be right.. just a bit long =]
[10:51:42] --- Fingolfin is now known as Fingolfin|away
[10:51:43] <Fingolfin|away> bbl
[10:57:26] <matt0> Performance question. Which is faster? a) double*2.0 OR b) double+double
[10:57:46] <matt0> I guess I could crank out a small program and loop it many times to get my answer =]
[11:06:37] --> Kirben has joined #exult
[11:10:15] <-- matt0 has left IRC (Ping timeout for matt0[1667079149-yippy.dsl.xmission.com])
[11:11:02] --> matt0 has joined #exult
[11:20:11] <-- Fingolfin|away has left IRC (42)
[11:23:01] <matt0> kirben!
[11:37:08] <Kirben> Hi
[12:10:05] --> Colourless has joined #Exult
[12:10:13] <matt0> hey Colourless
[12:10:15] <Colourless> hi
[12:15:41] <Kirben> Hi Colourless
[13:12:08] <-- Kirben has left IRC (System Meltdown)
[14:47:50] <-- matt0 has left IRC (Read error to matt0[1667079149-yippy.dsl.xmission.com]: EOF from client)
[14:47:55] --> matt0 has joined #exult
[15:18:41] --- ChanServ has changed the topic to: Exult, the open source Ultima 7 and U7 part 2 engine
[15:52:17] --> Nadir has joined #exult
[15:59:45] <Colourless> uh i
[15:59:48] <Colourless> hi
[16:01:07] <Nadir> hi
[16:02:45] <Colourless> i'm thinking I could have the new savegame system mostly finished tonight
[16:03:28] <Nadir> excellent
[16:03:53] <Nadir> I don't really have much time to work on Exult at the moment...
[16:04:14] --> wjp has joined #exult
[16:04:18] <wjp> hi
[16:04:41] <Colourless> hi
[16:05:04] <Nadir> hi
[16:05:35] --> tst_ has joined #exult
[16:08:06] <-- Nadir has left IRC (Ping timeout for Nadir[natmi130.etnoteam.it])
[16:08:27] --> Cless has joined #Exult
[16:09:05] <-- tst_ has left IRC (I feel like dumping a core)
[16:09:15] --> Nadir has joined #exult
[16:09:22] <-- Colourless has left IRC (Ping timeout for Colourless[])
[16:09:22] <Nadir> woa
[16:09:24] --- Cless is now known as Colourless
[16:28:43] <Nadir> bye
[16:28:45] <-- Nadir has left IRC (I feel like dumping a core)
[16:48:15] <Colourless> Hey you! Should I include a 'quicksave' option for saving and reloading from gamedat? I was thinking it might be useful since Ctrl-S performs a quicksave the moment
[17:06:44] <wjp> hmm... you mean in the savegump itself? something like BG?
[17:06:59] <Colourless> yeah.
[17:07:20] <wjp> sounds like a good idea
[17:07:47] <wjp> bbl; dinner
[17:07:50] --- wjp is now known as wjp|dinner
[17:07:53] <Colourless> ok
[17:23:37] --> Fingolfin has joined #exult
[17:23:41] <Colourless> hi
[17:24:11] <Fingolfin> hi
[17:29:33] --- wjp|dinner is now known as wjp
[17:29:34] <wjp> hey
[17:29:47] <Fingolfin> lo
[17:30:01] * Fingolfin left when wjp took lunch, and comes back when wjp takes dinner. interesting ;)
[17:30:14] <wjp> so I like eating :-)
[17:32:30] --> mahowe has joined #exult
[17:33:08] <-- mahowe has left #exult
[17:33:51] <wjp> not interested after all I guess :-)
[17:34:20] <Fingolfin> tsts
[17:36:19] <wjp> Fingolfin: oh, btw, did you notice Nadir modified configure.in ;-)
[17:43:44] <Fingolfin> not yet ;)
[17:58:31] <Fingolfin> bbl
[17:58:33] <-- Fingolfin has left IRC (42)
[18:29:31] --> ariannerpg has joined #exult
[18:35:49] <-- ariannerpg has left IRC (Read error to ariannerpg[nycch01.rr.com]: EOF from client)
[18:46:37] <Colourless> this is odd. For some reason qsort is mangling my save games... it's something i'm doing, I know that much, but hell if I actually know what
[18:54:53] --> TonyHoyt has joined #Exult
[18:54:59] <TonyHoyt> Hello people. What's new?
[18:55:14] <Colourless> :) not much
[18:55:32] <TonyHoyt> Enjoying the weekend?
[18:56:43] <Colourless> no, not really. My code isn't working
[18:56:53] <TonyHoyt> What is the code for.
[18:57:05] <Colourless> sorting the save games
[18:58:17] <TonyHoyt> Ahhh. Okay.
[19:04:26] <Colourless> opps. The problem was really stupid :)
[19:04:41] <TonyHoyt> What happened?
[19:05:00] <Colourless> I had (SaveInfo*) instead of (SaveInfo)
[19:05:34] <TonyHoyt> Ahh, declared/typecasted a pointer when you shouldn't have?
[19:05:45] <Colourless> no, sizeof
[19:06:15] <TonyHoyt> Oh, that's nasty. How long it take to find that one?
[19:06:38] <Colourless> just over half an hour
[19:07:22] <TonyHoyt> Well that's not bad. At least it wasn't days or weeks.
[19:08:22] <Colourless> yeah, wasn't bad. I had only just wrote the code an i decided to make sure it worked before moving onto the next stage.
[19:10:00] <TonyHoyt> Before Commiting it?
[19:10:21] <Colourless> yeah. Still quite some time before I can do that
[19:12:00] <TonyHoyt> What other changes did you have in mind?
[19:12:10] <TonyHoyt> now this all related to the new save screen you developed?
[19:12:53] <Colourless> huh? I don't quite get what you are asking? You want to know what else i'm doing?
[19:13:30] <TonyHoyt> I though you where working on a new save screen for Exult. Or perhaps I'm mistaken. The one with the arrow buttons, screen shot of the game and part list. I could be mistaken.
[19:13:42] <Colourless> yeah, that's what i'm doing
[19:14:11] <TonyHoyt> Okay okay. Cool. *Smile* Finishing that up now then?
[19:14:28] <Colourless> Heh. Still lots more work to do :)
[19:15:01] <TonyHoyt> Oh well. It's something usefull at least. And it looked good to. Very much like it was part of the original game. Only it's a lot better.
[19:40:26] <Colourless> damn, I'm hungery
[19:40:27] <Colourless> brb
[19:45:49] <Colourless> b
[19:46:13] <TonyHoyt> wb
[19:47:11] --> ariannerpg has joined #exult
[19:47:20] <Colourless> thanks
[19:47:39] <TonyHoyt> Hi Ariannerpg.
[19:47:53] <ariannerpg> Hi
[19:48:19] <Colourless> hi
[19:48:19] <TonyHoyt> I've been looking at a revival attempt on a dead online game called Dark Zion recently. I wonder if there's any real life in the project.
[19:49:02] <TonyHoyt> You hold any interesting in online gameing, Colour? or you more single player devote.
[19:50:31] <Colourless> it a thing of if I had the time i'd play onlne
[19:51:09] <TonyHoyt> What about table top games? Getting together with friends and just playing say, once a week for 3-5 hours at a streach.
[19:52:06] <Colourless> can't say it's ever been my thing, not that any of my friends do it
[19:52:15] <Colourless> if they did, i might
[19:52:30] <-- ariannerpg has left IRC (Ping timeout for ariannerpg[nycch01.rr.com])
[19:54:26] --> ariannerpg has joined #exult
[19:55:18] <TonyHoyt> wb Arian
[19:55:31] <TonyHoyt> So your a single player kind of guy.
[19:56:03] <ariannerpg> what?
[19:56:30] <Colourless> kind of. I go to lans with friends and obviously play multiplayer there
[19:57:11] <TonyHoyt> So games like quake or starcraft but other then that, not much else?
[19:57:23] <ariannerpg> I am in a LAN with 50 computers, but these bastards ( can I say it? :-) ) prefer to work/study to play!
[19:57:25] <Colourless> yeah
[19:57:47] <TonyHoyt> Arian: School? University or High?
[19:58:02] <TonyHoyt> Colour: That's cool.
[19:58:47] --> miguelangl has joined #exult
[19:58:57] <miguelangl> Sorry!
[19:59:06] <miguelangl> This proxy is killing me!
[19:59:28] <TonyHoyt> welcome back
[19:59:34] <miguelangl> :-), I am there!
[19:59:50] <TonyHoyt> Ming/Arian: At school? High or Collage?
[19:59:53] --- miguelangl is now known as ariannerpg_
[20:00:24] <-- ariannerpg has left IRC (Ping timeout for ariannerpg[nycch01.rr.com])
[20:00:38] --- ariannerpg_ is now known as ariannerpg
[20:00:51] <ariannerpg> University
[20:00:59] <ariannerpg> Last year of 5
[20:01:08] <Colourless> what you doing
[20:01:43] <TonyHoyt> Five year program? Involved in Teaching or some advanced Engineering?
[20:01:44] <ariannerpg> Computer Science
[20:01:55] <TonyHoyt> What field of CS?
[20:01:57] <ariannerpg> Engineering
[20:04:03] <TonyHoyt> Programmer, network, hardware?
[20:04:34] <ariannerpg> All. AI, Algoritmics, ...
[20:05:47] <TonyHoyt> Ahhh, sweet, sweet. What's your dream though? Tell me it's games. *Chuckles*
[20:10:17] <-- Colourless has left IRC (Ping timeout for Colourless[ppp1942.adelaide.on.net.au])
[20:10:31] <TonyHoyt> Oh well.
[20:10:54] <-- ariannerpg has left IRC (Ping timeout for ariannerpg[nycch01.rr.com])
[20:10:56] <TonyHoyt> So your into AI as a concentration or just part of your requirements for graduation?
[20:12:40] <-- TonyHoyt has left #Exult
[20:12:55] <-- chimera|wookin has left IRC (So many rubes in this world who need to be dealt with ... and I don't have time to do the dealing. http://www.rubecity.com)
[20:12:57] --> chimera|wookin has joined #exult
[20:40:08] --> Arizail has joined #exult
[20:55:26] <-- Arizail has left IRC (Ping timeout for Arizail[modem-81.hippo-tang.dialup.pol.co.uk])
[21:25:58] --> Fingolfin has joined #exult
[22:09:51] <wjp> wb
[22:21:41] <Fingolfin> thx
[23:12:57] <Fingolfin> ok, time to go to bed
[23:13:01] <Fingolfin> sleep well, wjp ;)
[23:13:04] <-- Fingolfin has left IRC (42)
[23:27:56] <-- wjp has left IRC ([x]chat)
[23:53:04] <-- chimera|wookin has left IRC (Read error to chimera|wookin[holladay.cb-travel.com]: EOF from client)