[00:01] almost there. im experiencing fatal brain stupidity disease. [00:04] ok. so. first things first, figuring out where the crazy bug is coming from. [00:06] depending upon the type of bug, i will frequently start by running the `room` command to learn which game script is responsible for the current room (the room number is a script number), and for visual bugs like these, the `pl` (plane_list) and `pi` (plane_items) commands. [00:08] is this in the debugger? [00:08] yes [00:09] (also, check your PMs for a link) [00:09] it is a bunch of scripts that are room numbers [00:09] yes. [00:09] well, all room numbers are scripts, but not all scripts are rooms. [00:10] high-numbered scripts (in the 64000+ range) are usually the SCI system scripts which tend to be carried across all the different games, and the rest of the scripts are game-specific [00:13] ccawley2011 (56b5ee04@gateway/web/freenode/ip.86.181.238.4) left irc: Quit: Page closed [00:13] when you run `pl` you get the list of planes, where a plane is basically a container for holding screen items with a configurable background (which can be a specific colour, pic, transparent, or opaque) [00:14] the planes are drawn in priority order, higher priority over lower priority. any priority below 0 is invisible, which is done by being behind the kernel-generated opaque -scummvm- plane at priority 0 [00:15] so low priority gets drawn over higher [00:15] higher priority draws over lower priority [00:16] yes [00:16] yes. ok. [00:17] is a room an actual room or can it just be a different situation? [00:17] a room number is always a script number, a room script must always export a Room instance in export 0 [00:18] the Room instance is the actual Room object which has all the properties and methods for the room [00:19] the hexadecimal identifier at the start of every plane line is the ID of the plane object within the SCI VM. the SCI VM uses a segmented memory model, where each segment corresponds to objects coming from a specific script, with some additional special segments. segment 0 is always for plain numbers, so anything starting with 0 is not an object but a number. [00:20] there are other special segments for data structures like arrays, bitmaps, lists, etc. [00:20] (you dont need to know all of these things for this bug, just providing some background so you understand the next things i say :)) [00:20] Are there some games that don't allow the debugger to be opened with ctrl+D? [00:20] the SCI debugger opens with ctrl+shift+D because games used ctrl+D [00:21] yes [00:21] so now that we can see all the different planes where screen items are drawn, we can start looking into those planes to find the actual screen items responsible for drawing stuff by running `pi ` [00:22] this command (aka plane_items) will give a list of all the screen items [00:23] Phant2 is kind of sucky here because it tends to dynamically allocate a lot of its screen items instead of creating instantiations in the scripts themselves. script instantiations are nice because they actually get unique names. dynamic instantiations just end up with the name of whatever class they are. [00:25] so in this case i saw some things called WynTextView which looked relevant, so i then wanted to look at the state of their corresponding VM objects (for whatever reason, screen items on the script-side are called Views), which can be done by running `vo ` (aka view_object) [00:25] you can run `vo ` for the planes, too, and get object information for them, though thats less helpful in this case since the problem is just with a couple of screen items and not with the entire plane [00:26] for objects with unique names, you can also just use the name in this command instead of the ID. [00:28] so if you look at one of these WynTextView objects with `vo`, you will see a bunch of properties and methods. we can see from the -classScript- property that this objects class definition is in script 63019. [00:29] chadj (~chadj@cpe-72-131-101-95.wi.res.rr.com) left irc: Ping timeout: 240 seconds [00:29] chadj (~chadj@cpe-72-131-101-95.wi.res.rr.com) joined #scummvm. [00:29] we can also see that it has x, y properties, which are standard SCI View properties corresponding to the origin of the view within its parent plane. [00:30] (for clarity, the screen rect you see in the `pi` command is relative to the top-left corner of the screen, not to the top-left corner of the plane.) [00:31] are you still with me so far? any questions about any of this? [00:32] i know it is a lot of information. [00:33] I am up to 20:26:11 [00:33] ok [00:33] i will pause until you are ready to continue. [00:34] oh, that reminds me, its hugely helpful if you compile with `--enable-text-console`, so you can actually see the game screen while you are interacting with the debugger. [00:34] ill add that next time [00:34] with the text console enabled the debugger interface will be in your command console instead of an overlay of the game screen. [00:36] WynDocTextView is a plane item and plane line? [00:38] it is a screen item in the plane. [00:38] in the gamePlane plane* [00:39] with pi i see the x,y properties, but with vo i dont' [00:39] I mean, unfortunately, because of the way SCI works it is actually 3 different things [00:40] if the vo command is working correctly you should see x and y at (0009) and (000a) [00:41] bitmap and picture? [00:42] vo and pi seem to show different properties [00:42] that sounds like something other than a WynDocTextView. what was the vo command you ran? [00:43] 0017:00bb [00:43] it sounds like you are looking at some Plane instance, not a WynDocTextView instance. [00:44] is this object gamePlane? [00:44] the object name is right after the object ID on the output from `vo`. [00:44] alright I am back on track [00:44] i was vo'ing the plane [00:44] ok, cool. :) you can also run `help` to get a list of all the debugger commands (there are a lot of them, and it is hard to remember them all!). [00:46] alright what should I do with this 0017:00ac [00:46] so with regards to the different output from `pi` and `vo`, the command `pi` looks up the ScreenItem objects within the kernel (interpreter side) and displays information about that ScreenItem. the `vo` command looks up a VM object within the VM (game side) and displays information about that VM object. [00:47] so you can use `vo` for all game objects, not just the graphics things. [00:47] alright [00:48] the game scripts are responsible for updating the kernel by calling to kAddScreenItem, kUpdateScreenItem, or kDeleteScreenItem, and passing the VM object, which the kernel then reads and updates its own representation of the screen item. [00:48] so when there is some glitch with graphical stuff, now you can see what the kernel thinks and what the game thinks and see if there is a mismatch there. [00:49] where do i see what the kernel sees [00:50] pl/pi say what the kernel thinks the planes/screen items in the next frame are supposed to be, and vpl/vpi say what the kernel thinks the currently rendered frames planes/screen items are. [00:52] (the reason we dont usually look at vpl/vpi is because those only contain a subset of properties which the kernel uses to decide whether or not something has changed, so you will notice if you run those command instead that some properties look invalidbecause they are.) [00:53] vpi/pi command on the 0017:00bb plane item both look similar and valid [00:53] the generation of the output for these debugger commands is in GfxFrameout::printPlaneList and GfxFrameout::printPlaneItemList. [00:54] and, all the planes/screen items for the next frame are rendered to the output buffer (and then update the GfxFrameout::_visiblePlanes data) whenever a game script calls kFrameOut. [00:56] so getting back to this solving specific bug, because all of these screen items have the same useless default name in the VM, i used the screen rect from the pi list to find the correct object, just to verify that nothing looked weird with it already, and also so that later i could find the object again to look and see what its values were when the rendering was messed up. [00:58] another option would be to look at the `text` property of each of the views to find the corresponding text, but thats more tedious here because there are so many of these text objects. [00:59] you used pi on all the planes to see the different rect properties? [01:00] yeah. well, i used a little deduction to eliminate ones that obviously werent going to have this text item. like the planes with no screen items, they obviously wont have it, and the ones named botInterfacePlane and topInterfacePlane are the ones for the bottom and top of the interface (the black bars where the inventory and stuff are), which again dont apply here, and InvPlane is the inventory plane so it wont be there [01:01] the one named -scummvm- is the blackout plane for hiding negative planes so of course its not in that one, all the negative priority plane (named&hidePlane&) is invisible so its not that one [01:01] easy [01:02] the generic Plane at priority 2031 could have had it, but the height and y-coordinate of its one WynDocTextView are obviously not it [01:03] also, sorry, i have no idea what is going on with my plural verbs tonight [01:04] most of the time games either have only like 4 planes (blackout, inventory, control panel, game plane) or they are well-named [01:04] phant2 is kind of a hot mess :) [01:06] so once i found this object, i saw that none of the properties looked immediately wrong, so then i moved to look to see if it had any interesting-looking methods [01:07] the methods list shows methods defined in the class of the object with no prefix, and inherited superclass methods with the name of the superclass [01:08] so this also provides kind of a cheaty at-a-glance way to see what the class hierarchy for an object is [01:08] in the case of views/screen items, anything View or above is system scripts [01:08] so those are basically the same across all sci32 games (and actually probably a lot of sci16 games) [01:09] in this case there wasnt anything terribly interesting, so i decided to spend some time looking at the script disassembly instead [01:09] (at this point, i am looking for somewhere that i can hook a breakpoint to halt execution during the bad render to see why it is bad) [01:10] as i mentioned before games call kFrameOut to render stuff, but that method is called very frequently, so just breaking on it will never give you what you want [01:10] well, *mostly*. well use it later :) [01:11] so if you are looking at Script63019.txt right now you are probably like ¯\(°_o)/¯ [01:11] Dominus (~dominus@unaffiliated/dominus) left irc: Ping timeout: 260 seconds [01:11] http://wiki.scummvm.org/index.php/SCI/Specifications/SCI_virtual_machine/The_Sierra_PMachine documents all of the PMachine opcodes pretty well [01:12] Dominus (~dominus@unaffiliated/dominus) joined #scummvm. [01:13] one thing to note here is that SC was influenced a lot by lisp & smalltalk, so while we normally talk about reading/writing properties or calling methods, fairly frequently this gets expressed in code as sending messages using selectors instead [01:14] alright [01:15] and, because reasons, they expressed call arguments in different orders depending upon the type of call which can be confusing when you are trying to learn how to read the disassembly. [01:15] but thats not too important right now [01:15] Mia (~Mia@unaffiliated/mia) left irc: Ping timeout: 248 seconds [01:15] looking through Script63019.txt i noticed this `subclass randomVisions` pretty much right away [01:16] since this bug is related to the, uh, random visions, that seemed like a fruitful place to look :) [01:16] easy [01:16] and createVision looked most promising so i just searched randomvisions::createvision: to jump to its definition [01:18] the PMachine operates most of the time using a single 16-bit accumulator and a stack which is always 16-bytes per entry [01:19] er, sorry. 16-bits per entry. [01:20] (the ScummVM implementation works somewhat differently, but for the purposes of reading the disassembly, just remember the previous statement and youll be OK) [01:20] alright [01:21] and because of this design, objects and numbers were indistinguishable; an object reference would just be a 16-bit number which was an index into an object array [01:22] and similarly, selectors are just numbers, so the disassembler shows you some possible options in comments on the right if the game is sending using a selector, instead of using a direct property access. [01:23] so pushi $269 could either be pushing 0x269 to the stack as a number for something, or it could be the restoreVision selector. based on the context, we can see that its being used as a selector because that value is consumed by the `self` opcode a couple lines later. [01:25] so the thing that really takes the longest is just internalising the opcodes. there arent a ton of them and a lot of them are just space-savers (push0/push1/push2 in a single byte instead of having to use two bytes for push + 0/1/2) [01:25] in this case i mostly just scanned looking for interesting possible selector names in the comments [01:25] right at the end of this function is an interesting-looking call to `refresh` [01:26] wait what line is consuming that pushed value [01:26] `self $4` [01:26] alright [01:26] `self` means to send selectors to the current object [01:27] $4 is the number of bytes consumed from the stack [01:27] pushi $269 is the restoreVision selector, and push0 is the number of arguments sent to the selector (0) [01:28] (the reason for all of this is that you can send multiple selectors in one send/self/super operation) [01:28] GitHub165 (~GitHub165@192.30.252.34) joined #scummvm. [01:28] [scummvm] dreammaster pushed 1 new commit to master: https://git.io/v511W [01:28] scummvm/master fc0396f Paul Gilbert: TITANIC: Fix freeze panning away from Parrot cage [01:28] GitHub165 (GitHub165@192.30.252.34) left #scummvm. [01:28] (so if you are doing something like setting x and y and width and height, you can just do that all with one send call instead of having to have a send call after each property) [01:29] whats a selector? [01:30] you can think of a selector as being a number that corresponds to either a method *or* a property [01:31] and they are always 2 bytes? [01:32] yes. again for space-saving reasons, it is possible to express a selector in the PMachine bytecode using a single byte if the value is small enough to be represented in a single byte, but when it is pushed onto the stack it is sign extended to 2 bytes. [01:32] got it [01:33] on that wiki page, thats why you will see W/B and 3 bytes or 2 bytes: because the representation in bytecode can be smaller. [01:33] but on the stack its 2 bytes always. [01:33] and in the disassembly there is no need for such differentiation. [01:34] so this refresh call. opcodes `pushi $24d; push0; lag global[$2]; send $4;` are selector 'refresh', zero arguments, load global 2 to the accumulator, and then send to the object in the accumulator. [01:34] we can look up what global 2 is in the debugger by running `vv g 2` [01:35] (aka `vm_vars global 2`) [01:35] (or `vm_vars global 0x2` if you dont feel like converting to decimal in your head) [01:36] alright [01:36] global vars below 100 are usually system globals which dont change across different games, you can see a partial list in enum GlobalVar in sci/engine/vm.h [01:37] in this case we can see that global var 2 points to some curtisCubicleRoomCH1SR5 object (maybe a little different depending on which computer/chapter youre looking at the possessed computer in) [01:37] i see that [01:37] so we can run `vo curtisCubicleRoomCH1SR5` again to inspect that object (or use the ID if you dont feel like typing so much :)) [01:38] could we find this screen item in a plane item? [01:39] this object is a Room, not a View, so it has no directly corresponding screen item or plane [01:39] this object is also a static (aka script) instance, so we see at the bottom of the output that it is in script 4051 [01:39] unlike the earlier objects which were dynamically created instances [01:41] one of the possibly unexpected features of SCI is that script instances can actually redeclare methods, as this one does [01:42] so at this point we have a pretty good idea about a couple of places to add some breakpoints, so lets actually start doing that so we can capture the game at a moment where the screen is busted [01:43] why did room give 63019 before? [01:44] room was 4051 before, but WynDocTextView is defined in 63019, so that is where we got 63019 [01:45] lets break it [01:45] we started at the screen item list, looking for the affected screen item. once we found that we looked up that screen items VM object and learned it was defined in script 63019. in script 63019 we saw this randomVisions code, which called to global 2, which was an object defined in script 4051. [01:46] so now we are back in 4051. [01:46] which is the room we are in in the game. [01:46] (usually things are not quite so circuitous.) [01:47] so there are a few different ways we can break in the debugger, but what well do here is actually break back on this call to createVision [01:47] we could break on refresh, but at this point there are some conditions and jumps in createVision so we might not get there [01:47] so we will run bpx (aka bp_method), `bpx randomVisions::createVision` [01:48] that will create a default breakpoint. we could also append `log` or `bt` at the end of the command if we just wanted to log it or generate a backtrace without actually breaking. [01:48] but by default&it breaks. [01:48] so now we have this breakpoint, just type in `go` to return to the game and wait until the method is called [01:49] this will take however long the RNG decides, probably just a couple of seconds [01:49] not tripping [01:49] once the breakpoint hits, we are back in the debugger [01:49] what does `bplist` show? [01:50] #0: Execute randomVisions::createVision [01:50] and your game is at the point where the computer is showing the random visions and glitching? [01:50] yes [01:52] hmm. it *should* be triggering. [01:52] Lightkey (~Darklock@p200300764C71F82022CF30FFFE083718.dip0.t-ipconnect.de) left irc: Ping timeout: 246 seconds [01:53] try running `bpdel 0` to remove the breakpoint and then add it in again, taking care to make sure the case is correct and that you dont hit any non-printable characters (i dont know if this is just a global input issue or just a text console input issue or just an xcode issue but sometimes i manage to get non-printable characters into the console and it gets confused) [01:54] (this happens for me when i hit page up/page down) [01:55] my room is 4674 [01:55] oh, different room. [01:56] well, lets just try running `room 4051` to force-switch rooms and see if anything explodes [01:57] otherwise, heres save game at room 4051: https://www.dropbox.com/s/z1wiyxed8ysl4gk/phantasmagoria2-cd-win.024?dl=0 [01:59] ill be back in a moment, but just so you have something to keep going, once you get into the debugger you can run `bt` to learn the backtrace, and then after that breakpoint triggers well use `snk FrameOut` (aka step_callk) to continue execution until kFrameOut is reached, and then `s` (aka step) to allow kFrameOut to run, at which point we should be paused right after the glitched out render happens [01:59] The bug I was talking about is in the top left corner [02:00] kgbme (uid235478@gateway/web/irccloud.com/x-bwvkalquzycbmzux) left irc: Quit: Connection closed for inactivity [02:01] I see it [02:05] Lightkey (~Darklock@p200300764C71F85822CF30FFFE083718.dip0.t-ipconnect.de) joined #scummvm. [02:09] yes [02:09] thats the one! [02:10] dafioram: so were you able to get into the debugger with the bug triggered? [02:10] yes [02:10] awesome. [02:11] so the bad news is that all that stuff i had you do earlier to find the object id isnt going to work because the game is different, but the good news is it wouldnt have worked anyway because this stupid game recreates objects all the time. surprise! but you can just apply the same process again now to find the glitched out text field [02:11] which will have a screen rect starting at 0,0 [02:11] let me know when you find it and `vo` its VM object [02:13] there [02:14] ok cool [02:14] so what i noticed when viewing this object was that x and y looked OK, but left and top were zero [02:15] i ran `snk FrameOut` again until the glitch fixed itself and then `vo` the object again and saw that left and top were now the same as x and y [02:16] something important to note here is that in phantasmagoria 2, for whatever reason, they decided that these selectors would be called left/top/right/bottom. in *every other game* these selectors are actually nsLeft/nsTop/nsRight/nsBottom. [02:16] NS stands for NextST no wait sorry, wrong programming language [02:17] NS stands for now seen which is basically the draw rectangle for a screen item [02:18] dreammaster (~dreammast@c-73-149-116-247.hsd1.ma.comcast.net) left irc: [02:20] so I see MATRICIDE, is that what you were looking for? [02:21] I don't see it in that same high prority plane item [02:21] looking for the file title [02:22] though i *think* what is happening in this case is that the file title gets reset to 0,0 and then the game tries to take its position for the random text and you just happened to get lucky and have the random text draw where the file or note titles are [02:22] file & note titles get reset* [02:23] the file and note titles get reset even if they arent the target of the random vision text so just keep looking until you find one of those [02:24] its unfortunate that you managed to get this random roll which confuses things somewhat :) [02:25] were very close to the end though. [02:26] So there is some text that is a particular phrase and it occasionally is correct on the folder and sometimes it appears to the top left? [02:26] oh, oh. sorry. i forgot to mention (reproducibility, argh! :)) to open the veniman_sagawa file [02:27] but, good, this gives me an option to tell you how to change breakpoint actions [02:27] to temporarily disable the breakpoints without having to recreate them later, `bpact * ignore` [02:28] (or replace * with a number from bplist if you want to only disable one of them) [02:28] then when you want to turn them back on, `bpact * break` [02:29] so disable the breakpoints, open the veniman file, re-enable the breakpoints, wait for createVision, snk FrameOut to the bad point, you should see the file name and note shift to the top-left corner [02:29] then find one of those screen items and look at it [02:35] most of the rest of this process is just the usual process of troubleshooting and deduction to isolate the defect code [02:35] so I keep seeing the text in the top let and occasionally I see some other folder names but never just the folder renamed with no top left text [02:36] MATRICIDE is the folder name I see sometimes [02:37] https://zetafleet.com/i/59b7489817b2e.png you currently have this output? [02:38] I don't have that folder, but I get top left text like that [02:38] are you using the save game i linked above? [02:38] sorry file I see veniman [02:39] ok [02:39] cool [02:39] er, i guess the screen rect is at 0,70 because of the top bar. i keep forgetting that. sorry if that caused confusion. [02:41] you should find some object at that coordinate which looks like this https://zetafleet.com/i/59b7497dd43fa.png [02:42] so x = 70 and y = 10 (remember these are plane-relative coordinates, and the plane is at 0, 70) [02:45] and if we do `snk FrameOut` (to continue until kFrameOut) and then `s` (to step one instruction, executing kFrameOut), checking again, things are mostly the same but the NS rect is correctly updated https://zetafleet.com/i/59b74a3e9a8cf.png [02:46] I don't see that screen object [02:46] since these are dynamically generated, the IDs are not deterministic [02:48] is the last plane item? [02:48] they are in gamePlane [02:48] https://zetafleet.com/i/59b74b0f47058.png [02:50] how do u know those are the same text objects [02:51] they are the only screen items at 0, 70. but also to verify, you can look and see the text they reference [02:51] for the sake of expedience, you can run `vo text data` [02:52] or&you probably can do that. i might not have pushed that yet. [02:52] the long way is, `vo `, look at the text property, `vo `, look at the data property `vr `. note that last one is `vr`, for view reference, since that is a reference to either a string array or a raw string in a script, not an object. [02:53] I looked at the high priority plane screen item which was the document and it gave me that text [02:54] yeah, thats right. that high priority plane is the viewport for the scrolling document text [02:54] the glitchy text is the file and note lines above that, which isnt in the scrolling viewport [02:55] gameplane? [02:55] yes [02:55] the file and note lines are in gamePlane. [02:58] there is no rendering tree in SCI, just a list of planes, so when they want to render things like viewports new planes appear and the list can get confusing because theres no logical grouping of related elements. [02:58] let me know if that makes sense or you have questions. this is a lot of information to take in at once. [02:59] does the screen id stay the same for my game? [03:00] the gamePlane ID should be consistent but the viewport plane is dynamically created so it will probably be different all the time [03:01] static instances will always have the same offset (the number to the right of the colon) for a given script and if you load scripts in the same order every time the segment (the number to the left of the colon) will also always be the same [03:01] its only these dynamic objects which lose determinism [03:02] i didnt want to overload you more talking about clones (dynamic objects) [03:02] so I can see the screen item with top and left with zero [03:02] but then how do I follow it? [03:03] the ID will stay the same until the game deletes and recreates it, which wont happen until after it gets repositioned, thankfully [03:03] so you can hold onto that ID, run `snk FrameOut; s` and then check it again using the same ID [03:04] but i think the game is programmed so that once the vision goes away it recreates all the text objects :\ [03:04] my top is 30 and urs was 10, but the lefts are both 70 [03:04] ok, you are just looking at the note and i was looking at the file [03:05] they both screw up in the same way so thats fine [03:05] I think its the authoer [03:05] author [03:06] yes. when i say file and note i am referring to the labels to the left of the text areas, because the VM objects dont have usable names :) [03:07] okay so the game is just showing the file name and author in note field both at top left corner [03:07] yes [03:08] i got this [03:08] and, as i think you discovered accidentally, also one of the visions if it is replacing one of those fields :) [03:09] the code as written in this game makes like no sense, so prepare to experience some amount of confusion on a regular basis. the other games are way less crazy. [03:09] this is definitely the hardest one ive worked on. [03:10] alright lets patch this sucker [03:11] ok. so, blah blah blah, eventually i discovered in the bowels of this machine looking at the curtisblahblahCH1SR5 object, that this object has a titleText property which is where this WynTextView gets assigned, so i searched for titleText in the disassembly to find where it was being messed with [03:14] i am re-experiencing the confusion i had the first time figuring out where the hell this object was getting updated [03:14] i guess i should just look at my patch :) [03:15] so what i ended up doing when i was confused the first time was i used `bpw curtisblahblah::titleText` to find the place where that property was being set with the new WynTextView [03:16] the first couple times it was being set to null, eventually it was set to an object and i used `bt` to figure out where [03:16] (the answer is WynNetDoco::open) [03:16] in 63019? [03:16] yeah [03:18] the reason why i could not find it is because they dynamically construct the WynTextView object, so its ID is in the accumulator, then they store it to a temp variable (their word for a function-local variable), then they push the temp variable to the stack and load a parameter which is the curtisblahblah object to the accumulator and then send it [03:18] lots of stupid worthless indirection [03:18] you can see this at the top of WynNetDoco::open [03:19] yes [03:19] selector sends go in order from top to bottom, so first setSize is called, then init is called, then posn is called [03:20] this seemed weird so i looked at setSize [03:21] trying to find stuff in the separate script files is sometimes boring, so we can ask the debugger to disassemble a method for us [03:21] okay [03:21] so i just ran `disasm WynTextView setSize` [03:22] waht did u get? [03:22] and then it complained there was more than one object by that name, so i just picked the first id it listed (it doesnt matter which one you use) and reran `disasm setSize` [03:22] and got the disassembly [03:23] and saw that the code was setting left and top from the x and y properties [03:23] but x and y properties are not set until posn is called [03:23] rookie mistake [03:23] so you just swtiched the order? [03:23] yes [03:24] this setSize function is bad news no matter what since the NS rect is really only supposed to be set by the kernel [03:24] (i.e. the game scripts are not supposed to be messing with left/top/right/bottom itself) [03:25] so the final step was just getting the bytecode and writing the script patch into script_patches.cpp [03:25] getting the bytecode is easy, you just run `disasm setSize bc` (note the `bc` on the end) [03:25] paste that into a new script patch [03:26] i c [03:26] SIG_MAGICDWORD is a marker that the script patcher users when deciding whether or not a patch might apply [03:27] basically it sees if the next 4 bytes after the marker exist or not, in order to decide whether to run the full comparison of the entire patch [03:27] so you just pick some 4 bytes that seem unique-ish and put the marker before them [03:27] I will have to see what this disasm give me [03:28] the SIG_SELECTOR and PATCH_SELECTOR are used because sometimes sierra liked to recompile games and rewrite the selector vocabulary, so if that ever happens the patch will still apply because the selector values will be looked up from the vocab file instead of using literal values [03:28] SIG_ADDTOOFFSET means i dont care what these next N bytes are [03:30] for 16-bit values, SIG_UINT16 and PATCH_UINT16 are used to make sure the correct endianness is used since game scripts were compiled to host machine endianness [03:30] this is the first time i ever used PATCH_GETORIGINAL*, which just reads the bytes from the pre-patched script starting N bytes from the start of the signature [03:31] the signature must be at least as long as the patch but may be longer than the patch, in which case anything after PATCH_END is left as-is [03:32] in this case, the reason why I used PATCH_GETORIGINAL* and SIG_ADDTOOFFSET was because the bytecode for the two text fields initialisation was identical except for the selectors used for the X and Y values, so i made it apply to both by reading the selector data out of the original script [03:33] in the patch table, the unlabelled mystery number after the patch description is how many times to apply the patch to the script [03:33] most of the time its a one-off patch so you apply it 1 time, but sometimes&you apply it more than one times. [03:34] twice [03:34] it depends on how copy-paste happy the game script devs were [03:34] and those are pretty much the essentials of what you need to know in order to fix game scripts. [03:35] i may have some questions [03:35] SCI3 is different from everything else because it has a memory overlay system for scripts to allow larger-than-16-bit offsets without actually changing anything about the bytecode, and because selectors and property offsets were the same [03:36] in previous versions, property offsets were actually indexes (so you unfortunately lose the lovely named property names in the disassembler) [03:36] and there was no memory overlay so all offsets were never bigger than 16-bits [03:37] also, SCI Companion can actually *decompile* SCI2.1-and-earlier scripts, so the file i sent you has decompiled scripts for all the games prior to SCI3. [03:38] as you may expect, that is often quite a bit easier to read than disassembly, though it is lisp-based, (so (you (will (have (to (deal (with (that)))))))) [03:39] phant1 is sci2.1? [03:39] yes [03:39] phant2, lsl7, lighthouse, rama are the only SCI3 games [03:39] well, and shivers 2, but that one is C++ SCI3. [03:40] where is sci companion? [03:40] the decompiled/disassembled scripts are not always 100% correct because the tools used to generate those files dont fully understand SCI32, but that is mostly only a problem for GK2 (because it gained the new RESSCI.PAT patch file type and put scripts in there) and SCI3. [03:41] http://scicompanion.com/download/ [03:42] i had to finagle it somewhat to generate decompiled scripts for SCI32. [03:42] officially it only supports SCI16. [03:43] the SCI3 scripts came from some version of SCI Viewer which occasionally got confused about where the selector vocab went [03:45] (but which actually had a primitive command-line interface to let me dump all the scripts instead of having to click through one by one in the UI or do something crazy like use some macro recorder) [03:45] so thats how you got the files in sci3/? [03:45] yes [03:46] some of the obviously broken ones i manually re-exported from the newer GUI-only SV as needed [03:46] the debugger can also disassemble an arbitrary memory address if you ever run across a localproc you want to look at, since those cannot be named [03:47] (`disasm_addr`) [03:47] `segment_table` is also useful for finding the segments for given scripts, and `segment_info ` will list all the things inside of a segment [03:48] alright I think I need to digest this all [03:48] yep. its a lot. [03:49] i am around for questions, pithy remarks, sarcastic remarks, etc. [03:49] top tips? [03:49] yes. [03:49] excellent [03:50] my newsletter is also available to SGT passengers [03:51] I don't read below 2nd class [03:52] good choice. [03:52] why don't you push ur phant2 fix? [03:53] i dont know. obsessive batching of fixes locally. [03:53] or, well, on my working branch. [03:54] i try to do this to avoid committing obviously broken stuff to master. [03:55] there are still some glitches with the visions stuff so im still working on those and i am not sure if it will uncover a deeper underlying issue that can fix all of them at once [03:55] since, i dont know if you could tell from the screenshot, but the open folder icon became closed and the active document icon became inactive also [03:56] so maybe it turns out that those calls ordering was broken, but also their super calls are in the wrong order too& [03:57] just graphics [03:57] im sure this is fine. lets go write some more easter eggs. [03:58] i also noticed that phant2 is causing abnormally high cpu usage while it is sitting doing nothing so i spent part of my day reviewing every single call to kGetTime [03:59] want me to run phant2 on the raspberry pi? [03:59] i havent removed all of the spin loops yet [03:59] so i dont think further testing is needed yet [03:59] there are a lot of them. [04:00] alright [04:02] though i dont see anything with kGetTime triggering breakpoints [04:03] and yet sitting here staring at the veniman document 90% CPU [04:03] unfortunately as far as i am aware the SCI VM does not have anything for profiling stupid games that spin loop in other stupid ways, like just using cycle counters [04:04] CPU throttling relies on calls to kFrameOut or kGetEvent and if the game is spinning in some way other than by kGetTime Im not sure how to find it right now [04:05] especially in phant2 which has layers of different sub-game-loops [04:06] i was thinking about implementing a call counter or something to try to track it down. [04:09] https://zetafleet.com/i/59b75e1ab422b.png CPU usage on an optimised build when in the computer interface doing nothing. this should be like 10% CPU at most. [04:10] instead its 4060%. [04:10] single cpu computer? [04:11] uh, yeah. using *nix CPU time calculation (100% = 1 CPU), not Windows. [04:15] alrigh i'll sci ya later [04:16] good night! [04:16] dafioram (~dafioram@pool-71-121-237-223.bltmmd.fios.verizon.net) left irc: Quit: Leaving [04:27] Nick change: Stormkeeper -> Storm-AFK [05:18] abrcdbr_ (~abrcdbr@109.87.232.207) joined #scummvm. [05:19] abrcdbr (~abrcdbr@159.224.109.206) left irc: Ping timeout: 240 seconds [05:20] abrcdbr_ (~abrcdbr@109.87.232.207) left irc: Remote host closed the connection [05:45] GitHub102 (~GitHub102@192.30.252.40) joined #scummvm. [05:45] [scummvm] csnover pushed 4 new commits to master: https://git.io/v51dD [05:45] scummvm/master eb284c4 Colin Snover: SCI32: Replace spin loop with kWait in Phant2 alien password screen [05:45] scummvm/master f9c4314 Colin Snover: SCI32: Fix janky document scrolling in Phant2 computer interface [05:45] scummvm/master a7ede0c Colin Snover: SCI32: Fix bad positioning of text in Phant2 computer on first render... [05:45] GitHub102 (GitHub102@192.30.252.40) left #scummvm. [05:48] so many script bugs& [05:49] the computer interface was super janky before. i am glad that i was able to patch most of the crappiness away. [05:56] _sev (~sev@a238130.upc-a.chello.nl) joined #scummvm. [05:56] _sev (~sev@a238130.upc-a.chello.nl) left irc: Changing host [05:56] _sev (~sev@scummvm/undead/sev) joined #scummvm. [05:56] #scummvm: mode change '+o _sev' by ChanServ!ChanServ@services. [05:59] waltervn (~waltervn@541B2DBA.cm-5-4a.dynamic.ziggo.nl) joined #scummvm. [05:59] #scummvm: mode change '+o waltervn' by ChanServ!ChanServ@services. [05:59] morning [06:13] Morning [06:13] Lots of sci work tonight I see :-) [06:21] waltervn (~waltervn@541B2DBA.cm-5-4a.dynamic.ziggo.nl) left irc: Ping timeout: 248 seconds [06:40] m_kiewitz (~m_kiewitz@scummvm/undead/m-kiewitz) joined #scummvm. [06:40] #scummvm: mode change '+o m_kiewitz' by ChanServ!ChanServ@services. [06:43] waltervn (~waltervn@541B2DBA.cm-5-4a.dynamic.ziggo.nl) joined #scummvm. [06:43] #scummvm: mode change '+o waltervn' by ChanServ!ChanServ@services. [07:30] HTTP_____GK1wmSU (~DEEP-BOOK@103.27.125.238) joined #scummvm. [07:31] HTTP_____GK1wmSU (DEEP-BOOK@103.27.125.238) left #scummvm. [07:49] _sev|work (~sev@scummvm/undead/sev) joined #scummvm. [07:49] #scummvm: mode change '+o _sev|work' by ChanServ!ChanServ@services. [07:53] _sev|work (~sev@scummvm/undead/sev) left irc: Client Quit [07:54] TMM (~hp@fsf/member/pdpc.professional.tmm) left irc: Quit: Ex-Chat [08:15] Mia (~Mia@78.162.30.77) joined #scummvm. [08:15] Mia (~Mia@78.162.30.77) left irc: Changing host [08:15] Mia (~Mia@unaffiliated/mia) joined #scummvm. [08:50] _sev|work (~sev@scummvm/undead/sev) joined #scummvm. [08:50] #scummvm: mode change '+o _sev|work' by ChanServ!ChanServ@services. [08:55] Nick change: antlarr2 -> antlarr [09:05] _sev|work (~sev@scummvm/undead/sev) left irc: Quit: This computer has gone to sleep [09:08] LittleToonCat (~littlecat@47.54.148.237) left irc: Remote host closed the connection [09:11] _sev|work (~sev@scummvm/undead/sev) joined #scummvm. [09:11] #scummvm: mode change '+o _sev|work' by ChanServ!ChanServ@services. [09:15] _sev|work (~sev@scummvm/undead/sev) left irc: Client Quit [09:15] TMM (~hp@fsf/member/pdpc.professional.tmm) joined #scummvm. [09:15] #scummvm: mode change '+o TMM' by ChanServ!ChanServ@services. [09:29] _sev|work (~sev@scummvm/undead/sev) joined #scummvm. [09:29] #scummvm: mode change '+o _sev|work' by ChanServ!ChanServ@services. [09:29] GitHub63 (~GitHub63@192.30.252.42) joined #scummvm. [09:29] [scummvm] yinsimei pushed 1 new commit to master: https://git.io/v5Mqo [09:29] scummvm/master e1c33a6 Simei Yin: SLUDGE: Use Mod/Xm/S3m decoder in Sludge [09:29] GitHub63 (GitHub63@192.30.252.42) left #scummvm. [09:30] _sev|work (~sev@scummvm/undead/sev) left irc: Client Quit [09:41] _sev|work (~sev@scummvm/undead/sev) joined #scummvm. [09:41] #scummvm: mode change '+o _sev|work' by ChanServ!ChanServ@services. [09:44] _sev|work (~sev@scummvm/undead/sev) left irc: Client Quit [09:59] _sev|work (~sev@5.57.21.50) joined #scummvm. [09:59] _sev|work (~sev@5.57.21.50) left irc: Changing host [09:59] _sev|work (~sev@scummvm/undead/sev) joined #scummvm. [09:59] #scummvm: mode change '+o _sev|work' by ChanServ!ChanServ@services. [11:12] Strangerke_ (~Strangerk@cable-85.28.84.13.coditel.net) joined #scummvm. [11:14] Strangerke (~Strangerk@cable-85.28.84.13.coditel.net) left irc: Ping timeout: 252 seconds [11:14] Nick change: Strangerke_ -> Strangerke [11:42] jamm (~jam@240d:1a:1b4:8600:4cc:5b04:ccaa:1fbd) joined #scummvm. [11:42] jamm (~jam@240d:1a:1b4:8600:4cc:5b04:ccaa:1fbd) left irc: Changing host [11:42] jamm (~jam@unaffiliated/jamm) joined #scummvm. [11:49] _sev|work (~sev@scummvm/undead/sev) left irc: Ping timeout: 240 seconds [11:58] _sev|work (~sev@scummvm/undead/sev) joined #scummvm. [11:58] #scummvm: mode change '+o _sev|work' by ChanServ!ChanServ@services. [12:02] _sev|work (~sev@scummvm/undead/sev) left irc: Client Quit [12:11] _sev|work (~sev@scummvm/undead/sev) joined #scummvm. [12:11] #scummvm: mode change '+o _sev|work' by ChanServ!ChanServ@services. [12:14] _sev|work (~sev@scummvm/undead/sev) left irc: Client Quit [12:19] _sev|work (~sev@scummvm/undead/sev) joined #scummvm. [12:19] #scummvm: mode change '+o _sev|work' by ChanServ!ChanServ@services. [12:20] _sev|work (~sev@scummvm/undead/sev) left irc: Client Quit [12:23] _sev|work (~sev@scummvm/undead/sev) joined #scummvm. [12:23] #scummvm: mode change '+o _sev|work' by ChanServ!ChanServ@services. [12:30] criezy|Work (a5e150ea@gateway/web/freenode/ip.165.225.80.234) joined #scummvm. [12:30] #scummvm: mode change '+o criezy|Work' by ChanServ!ChanServ@services. [12:53] _sev|work (~sev@scummvm/undead/sev) left irc: Quit: This computer has gone to sleep [13:02] _sev|work (~sev@scummvm/undead/sev) joined #scummvm. [13:02] #scummvm: mode change '+o _sev|work' by ChanServ!ChanServ@services. [13:23] _sev|work (~sev@scummvm/undead/sev) left irc: Quit: This computer has gone to sleep [13:46] ccawley2011 (56bea1e4@gateway/web/freenode/ip.86.190.161.228) joined #scummvm. [14:19] abrcdbr (~abrcdbr@109.87.232.207) joined #scummvm. [14:21] ccawley2011 (56bea1e4@gateway/web/freenode/ip.86.190.161.228) left irc: Ping timeout: 260 seconds [14:21] ccawley2011 (6d93ee5a@gateway/web/freenode/ip.109.147.238.90) joined #scummvm. [14:23] _sev|work (~sev@5.57.21.50) joined #scummvm. [14:23] _sev|work (~sev@5.57.21.50) left irc: Changing host [14:23] _sev|work (~sev@scummvm/undead/sev) joined #scummvm. [14:23] #scummvm: mode change '+o _sev|work' by ChanServ!ChanServ@services. [14:26] _sev|work (~sev@scummvm/undead/sev) left irc: Client Quit [14:34] _sev|work (~sev@scummvm/undead/sev) joined #scummvm. [14:34] #scummvm: mode change '+o _sev|work' by ChanServ!ChanServ@services. [14:39] waltervn_ (~waltervn@541B2DBA.cm-5-4a.dynamic.ziggo.nl) joined #scummvm. [14:39] #scummvm: mode change '+o waltervn_' by ChanServ!ChanServ@services. [14:42] waltervn (~waltervn@541B2DBA.cm-5-4a.dynamic.ziggo.nl) left irc: Ping timeout: 248 seconds [14:45] waltervn_ (~waltervn@541B2DBA.cm-5-4a.dynamic.ziggo.nl) left irc: Ping timeout: 260 seconds [14:49] vv222 (~vv221@dotslashplay.it) left irc: Ping timeout: 252 seconds [14:49] waltervn_ (~waltervn@541B2DBA.cm-5-4a.dynamic.ziggo.nl) joined #scummvm. [14:49] #scummvm: mode change '+o waltervn_' by ChanServ!ChanServ@services. [14:56] vv222 (~vv221@dotslashplay.it) joined #scummvm. [15:02] vv222 (~vv221@dotslashplay.it) left irc: Ping timeout: 255 seconds [15:03] Henke37 (~Henrik@81-227-16-59-no133.bredband.skanova.com) joined #scummvm. [15:07] _sev|work (~sev@scummvm/undead/sev) left irc: Quit: This computer has gone to sleep [15:18] DrMcCoy (~drmccoy@xoreos/drmccoy) left irc: Remote host closed the connection [15:23] mankeli (mankeli@memorex.lerppu.net) joined #scummvm. [15:30] jamm (~jam@unaffiliated/jamm) left irc: Ping timeout: 255 seconds [15:30] _sev|work (~sev@5.57.21.50) joined #scummvm. [15:30] _sev|work (~sev@5.57.21.50) left irc: Changing host [15:30] _sev|work (~sev@scummvm/undead/sev) joined #scummvm. [15:30] #scummvm: mode change '+o _sev|work' by ChanServ!ChanServ@services. [15:40] https://kotaku.com/nintendo-bringing-back-the-nes-classic-in-2018-1803771394 [15:41] I'm starting to agree with reggie - don't overpay for the snes classic mini (this assumes ninty isn't just bullshitting in that announcement) [15:41] Nick change: Storm-AFK -> Stormkeeper [15:44] mal: is the sailfish os port ready yet? [15:53] _sev|work (~sev@scummvm/undead/sev) left irc: Quit: This computer has gone to sleep [15:55] TMM (~hp@fsf/member/pdpc.professional.tmm) left irc: Quit: Ex-Chat [16:04] GitHub129 (~GitHub129@192.30.252.42) joined #scummvm. [16:04] [scummvm] csnover pushed 2 new commits to master: https://git.io/v5Mjh [16:04] scummvm/master 2228ae2 Colin Snover: SDL: List supported 32bpp pixel formats when using SDL2... [16:04] scummvm/master 533bb5b Colin Snover: SCI32: Improve chance of rendering non-8bpp AVIs... [16:04] GitHub129 (GitHub129@192.30.252.42) left #scummvm. [16:05] GitHub95 (~GitHub95@192.30.252.45) joined #scummvm. [16:05] [scummvm] criezy pushed 1 new commit to master: https://git.io/v5Dee [16:05] scummvm/master fac7797 Thierry Crozat: I18N: Update translations templates [16:05] GitHub95 (GitHub95@192.30.252.45) left #scummvm. [16:05] GitHub188 (~GitHub188@192.30.252.41) joined #scummvm. [16:05] [scummvm] csnover closed pull request #1008: SDL: List supported 32bpp pixel formats when using SDL2 (master...add-32bpp-formats) https://git.io/v5EZO [16:05] GitHub188 (GitHub188@192.30.252.41) left #scummvm. [16:18] Port build status changed with 533bb5b2: Failure: master-psp2 [16:21] ny00123 (~ny00123@141.226.173.170) joined #scummvm. [16:21] & [16:24] oh, usually it's amigaos giving that one [16:27] GitHub82 (~GitHub82@192.30.252.40) joined #scummvm. [16:27] [scummvm] csnover pushed 1 new commit to master: https://git.io/v5DJ8 [16:27] scummvm/master c2a4784 Colin Snover: SDL: Fix compilation on PSP2 [16:27] GitHub82 (GitHub82@192.30.252.40) left #scummvm. [16:34] ajax16384 (~User@109.60.130.33) joined #scummvm. [16:34] #scummvm: mode change '+o ajax16384' by ChanServ!ChanServ@services. [16:34] Port build status changed with c2a47847: Success: master-psp2 [16:36] GitHub11 (~GitHub11@192.30.252.45) joined #scummvm. [16:36] [scummvm] csnover pushed 4 new commits to master: https://git.io/v5DUP [16:36] scummvm/master eb4e9fe Colin Snover: GUI: Remove mostly-broken audio output sample rate control... [16:36] scummvm/master 4a75fba Colin Snover: SDL: Reduce audio playback latency... [16:36] scummvm/master fa52df0 Colin Snover: SDL: Fix DoubleBufferSDLMixerManager doubling audio latency... [16:36] GitHub11 (GitHub11@192.30.252.45) left #scummvm. [16:36] GitHub127 (~GitHub127@192.30.252.34) joined #scummvm. [16:36] [scummvm] criezy pushed 1 new commit to master: https://git.io/v5DU1 [16:36] scummvm/master 6a38fdf Thierry Crozat: I18N: Update translations templates [16:36] GitHub127 (GitHub127@192.30.252.34) left #scummvm. [16:46] mankeli: no, because I started doing it with Qt instead of SDL, it takes a while to write a whole new backend [16:49] mal: after you said that, i looked and its unclear to me why sdl cannot be used, as it appears to be an officially supported abstraction layer for sailfish os. what was the problem? [16:54] snover: for example dynamic orientation doesn't seem to be possible, sailfish occasionally complains the app is not responding, manually rotating the scummvm UI to get landscape orientation seems to be a bit hacky, also it depends on the device what is the framebuffer orientation so some detection would be needed [16:54] and so on [16:55] Nick change: Stormkeeper -> Storm-AFK [16:56] what engine were you testing where it gave a non-responsive warning? many engines have situations where they dont call to poll the event queue frequently enough and this causes non-responsive warning in all OS (because the app is legitimately acting non-responsively) [16:56] snover: even the main UI [16:57] logix: We’re happy to confirm that we’ll continue to ship stock of #SNESmini to Europe in 2018. [16:57] We’ll also bring the Nintendo Classic Mini: NES back to Europe next summer. [16:57] so possibly 10 NES Mini :p [16:58] DrMcCoy (~drmccoy@xoreos/drmccoy) joined #scummvm. [16:58] #scummvm: mode change '+o DrMcCoy' by ChanServ!ChanServ@services. [17:00] mal: what do you mean by dynamic orientation? [17:01] abrcdbr_ (~abrcdbr@159.224.109.206) joined #scummvm. [17:01] snover: that scummvm would show as landscape or portrait depending on how the user is holding the device [17:03] is there some problem with the SDL_WINDOWEVENT_SIZE_CHANGED event on those devices? [17:03] abrcdbr (~abrcdbr@109.87.232.207) left irc: Ping timeout: 248 seconds [17:05] and/or the SDL_HINT_ORIENTATIONS hint? [17:05] snover: I couldn't see any of those [17:05] abrcdbr_ (~abrcdbr@159.224.109.206) left irc: Quit: Textual IRC Client: www.textualapp.com [17:05] not sure about that hint, I think that is only for macos? [17:07] the documentation says iOS but some other people suggest it also works for android so i dont know if those people are wrong or the documentation is wrong or both :) [17:07] to be clear, when you are looking for SDL_WINDOWEVENT_SIZE_CHANGED you are looking first for an event with type SDL_WINDOWEVENT and then checking the events window.event property for SDL_WINDOWEVENT_SIZE_CHANGED and you never see those? [17:12] snover: I do get two SIZE_CHANGED events and some WINDOWEVENTs at start but nothing when I rotate the phone [17:13] snover: I think it might be that the wayland backend of SDL is not very good [17:14] interesting. certainly the quality of SDL on the major platforms and their development process does not fill me with a lot of confidence that it is not broken elsewhere :) [17:15] LittleToonCat (~littlecat@47.54.148.237) joined #scummvm. [17:15] snover: Is DoubleBufferSDLMixerManager still used somewhere after your changes? Otherwise what was the reason to keep it? [17:16] criezy|Work: yeah, it is used on some of the other ports [17:16] I can attest the wayland mode in SDL is "not very good" even on a desktop computer [17:16] Ah OK. Then the GitHub "Search in this repository" is not working very well :P [17:17] TMM (~hp@fsf/member/pdpc.professional.tmm) joined #scummvm. [17:17] #scummvm: mode change '+o TMM' by ChanServ!ChanServ@services. [17:17] well, now i cant find them when i search either& [17:17] im sure i saw it on some other ports [17:18] oh, maybe i assumed because of this #if defined(MACOSX) || defined(GP2X) || defined(CAANOO) || defined(GP2XWIZ) line [17:19] and it is not actually used, and you are totally correct about that [17:20] Also I see you added those advanced config options to the wiki, but maybe they should also be mentioned in the README? [17:20] And the screenshotpath that is mentioned in the README should probably be added to that wiki page :P [17:20] I think there are a few other options than cannot be set from the GUI. I will try to remember what they are. [17:20] Maybe something related to teh taskbar code, such as the path where to look for the game icons. [17:21] i wonder if it is worth just reviewing README, moving everything relevant from there into wiki pages, and then replacing README with a stub pointing to the wiki? [17:22] manually trying to keep information in sync between the two is probably always going to end up where one place or the other is out of sync somewhere [17:22] Maybe. There is a lot dupplicated, which is not very good, especially as we are not very good at keeping the wiki and README synchronized :P [17:23] Rather than a stub I would mabe reduce it to what is currently the QuickStart though (the first section of the README I think). [17:23] that seems also reasonable [17:24] heroux (~heroux@gateway/shell/insomnia247/x-xjiddtbiajkkkbdv) joined #scummvm. [17:27] snover: isn't the android port of scummvm also always landscape? I think I tried it before [17:27] i gotta run, i guess i will eliminate doublebuffer entirely if someone doesnt get to it before me, when i get back [17:27] let me know any other thoughts and i will take care of them [17:39] criezy|Work (a5e150ea@gateway/web/freenode/ip.165.225.80.234) left irc: Quit: Page closed [17:44] rootfather (~rootfathe@unaffiliated/rootfather) joined #scummvm. [17:44] #scummvm: mode change '+o rootfather' by ChanServ!ChanServ@services. [18:05] Farmboy0 (~quassel@p5DD10E04.dip0.t-ipconnect.de) joined #scummvm. [18:05] Farmboy0 (~quassel@p5DD10E04.dip0.t-ipconnect.de) left irc: Changing host [18:05] Farmboy0 (~quassel@xoreos/farmboy0) joined #scummvm. [18:28] GitHub130 (~GitHub130@192.30.252.40) joined #scummvm. [18:28] [scummvm] bgK pushed 6 new commits to master: https://git.io/v5DnM [18:28] scummvm/master 6506b95 Bastien Bouclet: PEGASUS: Call OSystem::updateScreen on each frame... [18:28] scummvm/master 64967c6 Bastien Bouclet: PEGASUS: Reset the Pegasus biochip when toggling the shared screen space... [18:28] scummvm/master 7310284 Bastien Bouclet: PEGASUS: Ignore events occuring while the GUI is visible... [18:28] GitHub130 (GitHub130@192.30.252.40) left #scummvm. [18:28] GitHub87 (~GitHub87@192.30.252.42) joined #scummvm. [18:28] [scummvm] criezy pushed 1 new commit to master: https://git.io/v5Dn9 [18:28] scummvm/master 738e562 Thierry Crozat: I18N: Update translations templates [18:28] GitHub87 (GitHub87@192.30.252.42) left #scummvm. [18:51] vv222 (~vv221@dotslashplay.it) joined #scummvm. [18:58] ajax16384 (~User@109.60.130.33) left irc: Quit: Leaving [19:02] ajax16384 (~User@109.60.130.33) joined #scummvm. [19:02] #scummvm: mode change '+o ajax16384' by ChanServ!ChanServ@services. [19:21] vv222 (~vv221@dotslashplay.it) left irc: Quit: WeeChat 1.9 [19:21] vv222 (~vv221@dotslashplay.it) joined #scummvm. [19:29] criezy (~criezy@host86-141-213-152.range86-141.btcentralplus.com) joined #scummvm. [19:29] #scummvm: mode change '+o criezy' by ChanServ!ChanServ@services. [19:45] snover: how can I tell if I have a not-big-enough audio buffer? Will I see buffer-underruns or something in the console output? [20:06] PSA: Humdle Bundle this week with Tex Murphy (Tesla Effect) [20:12] #scummvm: mode change '+o Strangerke' by ChanServ!ChanServ@services. [20:12] DrMcCoy (~drmccoy@xoreos/drmccoy) left irc: Quit: reboot [20:25] ajax16384 (~User@109.60.130.33) left irc: Read error: Connection reset by peer [20:27] DrMcCoy (~drmccoy@xoreos/drmccoy) joined #scummvm. [20:27] #scummvm: mode change '+o DrMcCoy' by ChanServ!ChanServ@services. [20:30] DrMcCoy (~drmccoy@xoreos/drmccoy) left irc: Remote host closed the connection [20:38] DrMcCoy (~drmccoy@xoreos/drmccoy) joined #scummvm. [20:38] #scummvm: mode change '+o DrMcCoy' by ChanServ!ChanServ@services. [20:47] GitHub167 (~GitHub167@192.30.252.40) joined #scummvm. [20:47] [scummvm] criezy pushed 4 new commits to master: https://git.io/v5Dr5 [20:47] scummvm/master 3607b79 Thierry Crozat: MACOSX: Remove mixer init from derived class for macosx backend... [20:47] scummvm/master 629ea05 Thierry Crozat: GPH: Remove unused include... [20:47] scummvm/master f7436a9 Thierry Crozat: OPENPANDORA: Remove unused include... [20:47] GitHub167 (GitHub167@192.30.252.40) left #scummvm. [20:58] Farmboy0 (~quassel@xoreos/farmboy0) left irc: Read error: Connection reset by peer [21:11] Dubberino (~Dubbins@gateway/vpn/privateinternetaccess/dubbins) joined #scummvm. [21:14] Dubbins (~Dubbins@gateway/vpn/privateinternetaccess/dubbins) left irc: Ping timeout: 248 seconds [21:21] rootfather (~rootfathe@unaffiliated/rootfather) left irc: [21:26] Henke37 (~Henrik@81-227-16-59-no133.bredband.skanova.com) left irc: Quit: ERR_SHUTDOWN [21:28] abrcdbr (~abrcdbr@159.224.109.206) joined #scummvm. [21:30] GitHub190 (~GitHub190@192.30.252.42) joined #scummvm. [21:30] [scummvm] criezy pushed 1 new commit to master: https://git.io/v5DXz [21:30] scummvm/master e489e1c Thierry Crozat: README: Add some more config parameters [21:30] GitHub190 (GitHub190@192.30.252.42) left #scummvm. [21:37] ny00123 (~ny00123@141.226.173.170) left irc: Quit: Leaving [21:41] waltervn_ (~waltervn@541B2DBA.cm-5-4a.dynamic.ziggo.nl) left irc: Quit: Leaving [21:43] tsoliman: youll just notice by way of experiencing audio drop-outs. im unaware of any way to get such information out of SDL and SDL is responsible for the calls to fill the buffer. [21:43] Nick change: Storm-AFK -> Stormkeeper [21:46] does anyone see a reason why director and sludge do a whole SearchMan dance in fallbackDetect() instead of just opening the file directly using its FSNode *file? [21:48] or maybe I should just remove it and ask if anyone can test the result [21:48] director, no, i dont [21:49] sludge& oh, its doing the same thing. so also no. [21:50] all i could think of would be related to the default addition of the cwd but IIRC the added directory would have a higher priority and its looking for a filename that is already known to be in the added directory [21:51] and as you mentioned before, you don't really want to look in the cwd for detection [21:51] (especially in these cases) [21:58] Is it me of is the JOY_ANALOG defined not handled properly. [21:58] Apparently it is not set by configure but is set in the code itself in backends/events/sdl/sdl-events.cpp (when not on symbian) and in backends/events/psp2sdl/psp2sdl-events.cpp. [21:58] And if thats the case I dont see how it can be defined when tested in backends/platform/sdl/sdl.cpp. [21:58] Also in sdl-events.cpp it is actually checked (for the math.h include) before being set :/ [21:58] Hopefully that means this math.h include is not needed. [21:59] m_kiewitz (~m_kiewitz@scummvm/undead/m-kiewitz) left irc: Quit: technology isn't intrinsically good or evil. It's how it's used. Like the Death Ray. [21:59] that does seem highly suspicious [22:01] mal: i remember that sdl port for harmattan was also rather bad (ie. didn't gave those rotation events etc) [22:03] it might be also that the display memory layout is always the same, and sdl accesses it so low level that you would have to implement the rotation yourself [22:03] criezy: all those JOY_* defines are rather suspicious in fact [22:03] seems like a case of the gph and psp2sdl backends copy-pasting code without quite realizing its impact [22:09] abrcdbr (~abrcdbr@159.224.109.206) left irc: Remote host closed the connection [22:09] I think its too late for me to understand how that joystick code is supposed to work. I cant quite wrap up my head around it. :( [22:13] demonimin (~demonimin@unaffiliated/demonimin) left irc: Ping timeout: 248 seconds [22:22] wjp: did the briefly discussed plan to move things from readme to wiki to deduplicate information sound reasonable to you? [22:24] im going to work on criezy and bgKs feedback to my SDL PRs first so theres some time to think about it [22:24] demonimin (~demonimin@5.51.222.165) joined #scummvm. [22:24] demonimin (~demonimin@5.51.222.165) left irc: Changing host [22:24] demonimin (~demonimin@unaffiliated/demonimin) joined #scummvm. [22:24] which plan was that? [22:25] basically just to review and move any information from README to the wiki that isnt already in the wiki, and then remove everything but the quick-start information the README and replace it with a link to the wiki, so were not trying to keep information in sync in multiple places [22:26] hm, that's a rather big change [22:26] I guess nowadays webpages are more likely to be read than a README, but still [22:28] its such a large file at this point i doubt even people that think of reading it end up reading it [22:29] the TL;DR effect is pretty powerful these days. [22:32] maybe there is some better other option. in any case its not something i am going to look at for at least a week, so theres not much urgency about it. [22:32] there's this eternal Manual help request on the wiki front page too [22:34] heh. yeah. trying to improve the new user experience with things like that is something on my backlog list. [22:35] since that GSoC applicant didnt get very far, that was the end of my thinking about it for a while now. [22:36] I wonder if a not-too-ambitious approach to this would be doable quickly [22:36] polish up the user manual, move the README contents in there [22:38] it seems to have more information in it than the big warning boxes imply [22:38] however, it's way past my bedtime [22:38] so good night [22:38] good night :) [22:44] snover: I'm not sure if this is a better option, but an alternative would be to generate both README and wiki from the same source (in markdown or something) [22:45] it might be tricky do have that handle formatting in a way that looks at least half-way decent, I don't know... [22:45] s/do/to/ [22:46] logix: yeah, i had some thought about that too, but im not sure what would be the long-term positive of something like that [22:46] also, even if it doesn't count for much, I'll just add that I like having relevant info in README [22:46] what information is relevant though? [22:46] dreammaster (~dreammast@c-73-149-116-247.hsd1.vt.comcast.net) joined #scummvm. [22:46] #scummvm: mode change '+o dreammaster' by ChanServ!ChanServ@services. [22:48] this is not the best example, but something like the various mouse modes in the mobile versions (ios/android/ds/...) comes to mind - although I suppose that when I think of looking at README, I'm picturing me on my laptop without internet access somewhere [22:49] I assume I'd google all questions I have regarding mobile versions [22:49] i can appreciate wanting access to documentation without internet access [22:50] that actually happened with something related to mouse modes - I had a short "d'oh" moment when I realized that my google search came up with essentially an online version of README :) [22:52] I looked at wiki extensions in the past that could be used to generate pdf, but none was practical. Things have probably progressed thougth, [22:52] I should probably take a look at https://www.mediawiki.org/wiki/Extension:Collection for example. [22:53] my mind was being broken by not immediately finding a standard way to export mediawiki to static html [22:55] it seems really weird to me that this would not be a built-in part, given how wikipedia is frequently talked about as being critically important to learning in developing countries [22:58] i guess the solution is just use wget [23:01] Or use something like https://github.com/openzim/mwoffliner [23:03] that projects issues list does not fill me with confidence [23:05] from issue #2: This would avoid the requirement to have the remote wiki to have visual editor installed. [23:05] what doesn't fill me with confidence is that a wget clone that only works on wikis (yes, yes, I'm exaggerating and simplifying at the same time...) requires node.js [23:05] that too. [23:06] GitHub4 (~GitHub4@192.30.252.42) joined #scummvm. [23:06] [scummvm] dreammaster closed pull request #1013: IMAGE: Support rendering Indeo videos at 15bpp (master...15bit-indeo) https://git.io/v52le [23:06] GitHub4 (GitHub4@192.30.252.42) left #scummvm. [23:06] GitHub177 (~GitHub177@192.30.252.41) joined #scummvm. [23:06] [scummvm] dreammaster pushed 2 new commits to master: https://git.io/v5DQQ [23:06] scummvm/master 7846d09 Cameron Cawley: IMAGE: Support rendering Indeo videos at 15bpp [23:06] scummvm/master 2b745ac Paul Gilbert: Merge pull request #1013 from ccawley2011/15bit-indeo... [23:06] GitHub177 (GitHub177@192.30.252.41) left #scummvm. [23:07] i mean, oh well. there are options. [23:07] This one then: https://www.mediawiki.org/wiki/Extension:DumpHTML [23:07] DumpHTML required a lot of work and is permanently broken since August 2008 < I am sure this is boosting your confidence level :P [23:07] yeah, that was the page that broke my mind [23:07] DJWillis (~djwillis@cpc123746-trow7-2-0-cust5.18-1.cable.virginm.net) left irc: Read error: Connection reset by peer [23:09] ideally there is enough information and feedback in the main UI that most users dont actually need documentation but were a ways away from that. [23:38] Mia (~Mia@unaffiliated/mia) left irc: Ping timeout: 248 seconds [23:47] rrebello_ (~Rodrigo@96.126.111.239) joined #scummvm. [23:48] dos1 (~dos1@neo900/coreteam/dos) left irc: Ping timeout: 240 seconds [23:48] rrebello (~Rodrigo@96.126.111.239) left irc: Ping timeout: 240 seconds [23:48] enthusi (pi@pc8-155.physik.uni-potsdam.de) left irc: Ping timeout: 240 seconds [23:48] enthusi (pi@pc8-155.physik.uni-potsdam.de) joined #scummvm. [23:48] dos1 (~dos1@dosowisko.net) joined #scummvm. [23:49] dos1 (~dos1@dosowisko.net) left irc: Changing host [23:49] dos1 (~dos1@neo900/coreteam/dos) joined #scummvm. [23:51] Mia (~Mia@78.162.30.77) joined #scummvm. [23:51] Mia (~Mia@78.162.30.77) left irc: Changing host [23:51] Mia (~Mia@unaffiliated/mia) joined #scummvm. [23:55] criezy (~criezy@host86-141-213-152.range86-141.btcentralplus.com) left irc: Quit: criezy [00:00] --- Wed Sep 13 2017