IRC logs for #opendune on OFTC at 2009-11-20
⏴ go to previous day
00:00:23 <Xaroth> well i think the scripts will be somewhat easier to do with strings out of the way
00:00:35 <TrueBrain> yeah ... strings will be a bitch to figure out
00:00:42 <glx> strings may be challenging too
00:00:44 <TrueBrain> I just know where they are fetched ...
00:00:51 <TrueBrain> so now I will need to figure out where they are loaded ...
00:01:49 <glx> oh good luck with strings, there are 3 formats IIRC
00:02:02 <TrueBrain> I know parts are in ini-files
00:02:04 <TrueBrain> parts are in .eng files
00:02:08 <glx> or at least 2, clear or compressed
00:02:33 <TrueBrain> well, I only want to name strings, so that it isn't string 81, but STR_BLABLA
00:03:12 <TrueBrain> 38CA is a csip32, which most likely is a pointer to the unpaked language
00:04:56 <TrueBrain> at the beginning is an offset table with where strings are
00:05:04 <Xaroth> redoing the affects/refers thing as well
00:07:34 <TrueBrain> loaded at 7f7c:0000 ... that is most likely the farest memory address I have seen so far :p
00:10:51 <Xaroth> affects/refers to will 'disappear' if there's nothing to affect/refer to
00:12:55 <TrueBrain> glx: dune.eng is just a plain format file
00:13:04 <TrueBrain> so my investigation into strings was very short-lived
00:16:47 <Xaroth> time for me to go sleep i think
00:17:19 <TrueBrain> k ... I will have to write a very simple application which can read both dune.eng as intro.eng
00:17:33 <TrueBrain> and convert that into a simple list we can understand, so we can make a OpenTTD like STR list :p
00:17:35 <glx> some things look very complicated in asm but are very easy in C :)
00:17:48 <TrueBrain> lovely, aint it? I really really love that :)
00:18:04 <TrueBrain> okay .... 1 BIG issue .... intro.eng and dune.eng are both loaded via the same routines
00:18:14 <TrueBrain> when the first is loaded, strings are returned from the first ...
00:18:32 <TrueBrain> so GetString(1) can return 2 possible strings :'(
00:18:51 <TrueBrain> so the best I can do is give that list with possibilities ..
00:20:27 <glx> oh it uses index relative to file
00:23:34 <TrueBrain> well, it depends on which file is opened atm
00:23:57 <TrueBrain> which for the intro is intro.eng, and for the rest of the game (as far as I can see) is dune.eng
00:24:01 <TrueBrain> a few other .eng files are in fact images
00:24:05 <TrueBrain> and some other weird format :p
00:24:21 <glx> weird format uses the weird string ;)
00:26:37 <DorpsGek> SVN: truebrain (r532) -Add: named one more function
00:35:43 <TrueBrain> and NOW you find that out? :p
00:35:49 <TrueBrain> 1 not used, so not that bad ;)
00:41:04 <TrueBrain> I changed \n to \s btw
00:42:27 <glx> 16 / 0x10) Old save game file is incompatable with latest version. <-- someone already saw that ;)
00:43:29 <TrueBrain> did you know they used \r for newline?
00:44:39 <glx> other strings (in global) uses \r\n or \n
00:44:58 <glx> so they just keep being inconsistent
00:45:21 <DorpsGek> SVN: truebrain (r533) -Add: document which strings a GetString is refering to
00:45:32 <TrueBrain> that is true .. they are consistently inconsistant ;)
00:45:51 <TrueBrain> from now on, at a GetString, please lookup the ID in the table and add it as comment :)
00:46:06 <TrueBrain> a | is a newline :p
00:47:11 <TrueBrain> good night; and good luck glx with house loop :) Make sure to show me your progress by the end of the day, I am curious what it does :)
09:51:46 <TrueBrain> there .... now I have to enable a website first .. pompiedom
09:51:49 <TrueBrain> last minute changes ..
09:53:45 <TrueBrain> they even invented a new product on the day before the launch
10:14:15 <TrueBrain> and they have complaints like: "this is said in the email, but is wrong"
10:14:20 <TrueBrain> THERE IS NOTHING REMOTELY LIKE THAT IN THE EMAIL
10:17:00 <Xaroth> why does that thing keep doing that >:(
10:17:43 <Xaroth> SmatZ: what kind of mail was that
10:18:00 <SmatZ> TrueBrain: thank you for fixing bug 0000012 :)
10:18:06 <SmatZ> Xaroth: notice about bug
10:18:14 <SmatZ> [OpenDUNE 0000012]: crash when loading Dune2 1.00 savegame
10:19:57 <SmatZ> future feature: add support for dune 1.00 savegames :)
10:23:16 <SmatZ> if (emu_ax <= 0xFFFF) goto l__1B19;
10:23:25 <SmatZ> how comes something like this is generated?
10:23:33 <TrueBrain> because it is in the code
10:23:56 <Xaroth> SmatZ: when did you receive that mail?
10:24:30 <SmatZ> Xaroth: 2009-11-19 15:49 UTC
10:24:57 <SmatZ> sorry if that is fixed already :(
10:25:26 <Xaroth> can you pastebin that mail log?
10:25:38 <SmatZ> TrueBrain: interesting, the compiler which generated that was of high quality :)
10:25:55 <TrueBrain> SmatZ: euuhh .... yes .. sure .. lets go with that :p
10:28:45 <Xaroth> string_get_bug_view_url_with_fqdn
10:28:52 <Xaroth> bloody hell their naming scheme sucks
10:31:17 <Xaroth> string_get_bug_view_url_with_fqdn shows bugs.opendune.org again
10:31:27 <Xaroth> which is i think what i fixed last night
10:33:15 <Xaroth> SmatZ: can you lemme know if the next one shows the same error?
10:33:54 <SmatZ> Xaroth: I will let you know if it will be broken :)
10:35:20 <SmatZ> strange thing is that while playing intro / playing game, I still hear sounds/music in head
10:35:26 <SmatZ> though speakers are silent
10:38:17 <TrueBrain> most likely the AM frequency of your local broadcast station you pick up
10:51:31 <Xaroth> sometimes I am sad, sad that I don't have a gun or taser or some sort at my workstation to kill one of my colleagues.
10:51:52 <TrueBrain> doing time is not everything either
11:04:32 <TrueBrain> I got the report: "Browser support. On some browsers the website doesn't look good"
11:04:46 <TrueBrain> WHOHO! I LOVE SUCK REPORTS! I know exactly what browser, and what part doesn't look good! IMMEDIATLY! WHOHO!
11:05:26 <TrueBrain> without any additional details .. like I have a magic ball ... worst part, I have tested the website with Firefox 3.5, Safari, and IE 5.5, 6.0, 7.0 and 8.0
11:05:33 <TrueBrain> which covers 98% of the browser market :p
11:05:59 <TrueBrain> and the 2% I don't care about :)
11:06:17 <TrueBrain> I guess I can install it ..
11:06:21 <TrueBrain> glx: how did GameLoop_House go?
11:09:43 <TrueBrain> Opera 10, minor image misplacement
11:09:54 <TrueBrain> well .. annoying amount even
11:11:54 <boekabart> TrueBrain: You assume chrome renders the same as Safari? If not, you missed another 3.5 % :P
11:12:07 <TrueBrain> and I will not install Chrome :p
11:12:13 <TrueBrain> did Chrome take such big portion of the market?
11:12:19 <TrueBrain> hmm .. I should update my browser stats :p
11:15:44 <glx> oh I needed max() macro, where should I place it ?
11:15:59 <glx> types.h is not really the best place I think
11:18:37 <TrueBrain> fucking retarded Opera ... works completely the oposite of other browsers
11:18:58 <glx> hmm ok, for now it's on top of house.c ;)
11:20:52 <TrueBrain> please call Unit *u and Structure *s ;)
11:20:56 <glx> now I need to find what is in emu_get_memory16(emu_ss, emu_bp, -0x18)
11:21:45 <glx> 0x1C was already used to store an unit and a structure :)
11:22:39 <TrueBrain> (instead of Unit *unit and Structure *structure btw)
11:26:28 <glx> ,...,...,...,...,...u->linkedStructureID = u2->linkedStructureID;
11:26:29 <glx> ,...,...,...,...,...u2->linkedStructureID = u->index;
11:26:29 <glx> ,...,...,...,...,...u2->flags |= 0x100;
11:26:46 <TrueBrain> I called new stuff 'nu'
11:34:38 <TrueBrain> okay, finally got all browsers to do it equally wrong
11:34:41 <TrueBrain> that is something, right?
11:46:07 <glx> hmm when emu_Structure_Find uses g_global->structureFindStruct, I can use my own "find" or I need to use the global one ?
12:27:58 <Xaroth> ooo fed2k working again
12:34:48 <TrueBrain> I love MrFlibble :)
12:39:16 <Xaroth> bugs. has actually gone down in visits :o
12:39:33 <Xaroth> but it'll probably go up at some point
12:39:49 <Xaroth> frontpage, forum and bugs all 300+ visitors
12:40:01 <Xaroth> svn 100+, wiki i've only recently added to the list
12:41:47 <Xaroth> dune2k has been responsible for >100 referrals to main site
12:46:10 <Xaroth> MrFlibble has been busy
12:46:14 <Xaroth> more and more referrers
12:47:02 <Xaroth> heh, wiki got 1 referral outside our own domains
12:47:12 <Xaroth> from somebody's browser :o
12:55:33 <planetmaker> what is MrFlibble?
13:00:33 <Xaroth> resident forum member of the dune2k forums
13:09:22 <TrueBrain> lol, I just got told CSS is handled the same in all browsers! WHOHO! That is completely new to me
13:09:26 <TrueBrain> I love it when customers tells us how to do our job
13:12:22 <TrueBrain> + if (g_global->variable_38C0 <= g_global->variable_76B0 || g_global->variable_608A <= g_global->variable_76B0) { <- I wonder what timer 38C0 is ..
13:13:09 <TrueBrain> + emu_push(--g_global->variable_38FE + 41); <- glx: would you mind writing this in 2 statements? This is a bit nasty ;)
13:14:00 <TrueBrain> + if (g_global->variable_97E7[emu_ax] != 0 && g_global->variable_97E7[emu_ax] < 10) {
13:14:02 <TrueBrain> + if (g_global->variable_97E7[emu_ax] != 0xFFFF) {
13:14:03 <TrueBrain> how would that ever happen?
13:14:04 <glx> 38C0 is set in f__B511_0091_001D_9C25()
13:14:25 <TrueBrain> either you are missing an (int16), or something is WEIRD :p
13:15:01 <TrueBrain> + if (!loc08) { <- not? are you sure? As then it runs a lot :s
13:17:08 <TrueBrain> + tile32 tile = {0xFFFFFFFF}; <- not valid on all compilers .. please put the init on a new line ;) (I know, stupid ..)
13:17:36 <TrueBrain> + if (h->creditsStorage < h->credits) {
13:17:38 <TrueBrain> + h->credits = h->creditsStorage;
13:17:41 <TrueBrain> you sure? Shouldn't that be the other way around?
13:18:27 <TrueBrain> notice that for human companies credits are not cut-off immediatly :)
13:18:48 <Xaroth> you been playing too much ttd, tb :P
13:19:17 <TrueBrain> if (g_global->playerCreditsNoSilo == 0 && g_global->campaignID > 1 && h->credits != 0) {
13:19:18 <TrueBrain> + if (h->credits * 256 / max(h->creditsStorage, g_global->playerCreditsNoSilo) > 200) {
13:19:33 <TrueBrain> if NoSilo is zero .. the max is always the first value ...
13:19:44 <TrueBrain> this btw can also give a nice division by zero ..
13:20:37 <glx> maybe I had valuetopercent wrong
13:22:05 <glx> a and b in normal param order?
13:22:16 <TrueBrain> if ((emu_ax | emu_dx) != 0) h->variable_02--; <- haha :) Please make that: if (emu_ax == 0 && emu_dx == 0) ;) :)
13:22:25 <TrueBrain> or no .. hmm .. can't remember :p
13:22:30 <TrueBrain> I always just see it ... :$
13:23:06 <TrueBrain> but nice job glx :)
13:23:28 <TrueBrain> there are some style problems, like I like to put a csip push pair on the same line, so emu_push(emu_dx); emu_push(emu_ax);
13:23:32 <TrueBrain> just to make clear it is a pointer
13:23:35 <glx> -,...emu_push(h->credis);
13:23:36 <glx> -,...emu_push(emu_cs); emu_push(0x0555); emu_cs = 0x34C1; overlay(0x34C1, 0); emu_Math_ValueToPercent();
13:24:19 <TrueBrain> btw, I think you got the != and == in those functions inverted
13:24:42 <TrueBrain> it just looks weird :(
13:24:55 <TrueBrain> either way, it warns about capicity needed when hitting 200/256% of capicity
13:25:03 <TrueBrain> so .. amount of credits / storage
13:25:06 <TrueBrain> so yes, your code is correct :p
13:31:01 <TrueBrain> I really don't get that piece of code (looking at asm too :p)
13:31:17 <TrueBrain> if the h->storage < noSilo, then it uses h->storage, else noSilo ..
13:31:29 <TrueBrain> oh, but on the other side, h->storage can never exceed noSilo
13:32:26 <TrueBrain> and then indeed the 'not enough silo' is only given when the h->storage exceeds noSilo
13:32:35 <TrueBrain> but then the 'max()' makes no sense at all :p
13:32:54 <TrueBrain> sometimes I really think they were retards
13:33:47 <glx> anyway max is not needed as noSilo is always 0 there :)
13:33:54 <TrueBrain> so you never get the 'credits are low' warning after your silos exceed the noSilo?
13:33:59 <TrueBrain> glx: that was my point, yes
13:34:59 <glx> but you get "Insufficient spice storage available. Spice is lost."
13:35:19 <TrueBrain> which you never get if you don't build any silos ;)
13:35:37 <TrueBrain> spice is lost is upperbound, credits are low is lower bound
13:36:49 <TrueBrain> one thing I absolutely don't get, is how it can use 'houseCurrent' before it is going to loop over the houses ..
13:37:07 <Xaroth> new 2.0 features on an 1.6 phone, har har
13:37:17 <glx> good question, but it indeed does
13:37:46 <TrueBrain> that does explain why you can exceed your silo credits for a long time, before it all of a sudden gets cut off
13:39:27 <TrueBrain> some things are really magic
13:39:32 <TrueBrain> like structureIndex ...
13:39:49 <glx> btw it doesn't even check for currentHouse validity
13:40:11 <TrueBrain> oh, lol, 'structureIndex' is btw always a palace
13:40:38 <TrueBrain> hmm .. no, not _always_
13:40:41 <TrueBrain> it is just WEIRD :p
13:41:25 <TrueBrain> owh, cool, reinforcements links to eachother :)
13:41:28 <TrueBrain> that is nice to know :)
13:41:48 <glx> btw they like redundant code
13:41:59 <TrueBrain> it is so fucking annoying to rewrite the first time
13:42:06 <TrueBrain> after that you want to update tons of things ...
13:42:10 <TrueBrain> but 1 suggestion: commit first ;)
13:42:20 <TrueBrain> so many things can be done so much easier
13:42:44 <TrueBrain> oh, 'nu' is the carry-all :)
13:43:03 <TrueBrain> that '0' is type, glx, meaning UNIT_CARRYALL ;)
13:43:23 <TrueBrain> don't forget to replace 0XFFFF with UNIT_INDEX_INVALID where that is meant ;)
13:43:36 <TrueBrain> sorry, I think I am annoying now ;) I will shut up ;)
13:44:15 <TrueBrain> I got to go anyway ;) Ghehe :)
13:44:19 <TrueBrain> back tomorrow :) Enjoy glx :)
13:44:24 <TrueBrain> when youg et the hang of this, it is pretty fun :)
14:37:41 <DorpsGek> SVN: glx (r534) -Add: started C-ification of GameLoop_House()
14:38:21 <glx> played quickly, it seems to still work :)
15:17:07 <glx> though I had a hang in CY menu, but that's not related
15:35:44 <Xaroth> that sounds to me like it's possible to get opendune to run on it :)
15:35:51 <Xaroth> only requires a keyboard tho -_-
21:26:12 <DorpsGek> SVN: glx (r535) -Add: named some functions
21:26:43 <DorpsGek> SVN: glx (r536) -Add: figured out a few variables
21:34:34 <DorpsGek> SVN: glx (r537) -Fix (r535): obiwan in emu_Tools_Var79E4_Update() description
21:39:55 * glx likes how mentat follow mouse with his eyes
continue to next day ⏵