00:00:00 --- log: started forth/14.03.31 01:47:56 --- join: true-grue (~quassel@95-25-50-201.broadband.corbina.ru) joined #forth 01:51:12 --- quit: irsol (Read error: Operation timed out) 01:52:28 --- join: irsol (~irsol@unaffiliated/contempt) joined #forth 01:53:30 --- quit: mnemnion (Remote host closed the connection) 01:53:58 --- join: mnemnion (~mnemnion@c-98-210-219-91.hsd1.ca.comcast.net) joined #forth 01:58:04 --- quit: mnemnion (Ping timeout: 245 seconds) 02:25:15 --- join: protist (~protist@240.226.69.111.dynamic.snap.net.nz) joined #forth 03:00:32 --- quit: bbloom (Ping timeout: 265 seconds) 03:46:22 --- join: Zarutian (~zarutian@194-144-84-110.du.xdsl.is) joined #forth 03:54:30 --- join: mnemnion (~mnemnion@c-98-210-219-91.hsd1.ca.comcast.net) joined #forth 03:59:30 --- quit: mnemnion (Ping timeout: 265 seconds) 04:32:34 --- join: Mat3 (~Mat@91-64-127-6-dynip.superkabel.de) joined #forth 04:32:38 help 04:32:55 heya! what's up, Mat3 ? 04:33:08 hi tangentstorm 04:33:41 I'm working on the compiler stuff for Saiwa (beside bugfixing Nimrod) 04:34:25 what about your compiler project ? 04:36:41 i've mostly been working on the ui/application side of things. i have this big complicated app, and the compiler is for a language for extending the app. 04:38:25 so more a scripting language ? 04:39:53 maybe. not sure. it's a general purpose language (pascal dialect) that compiles to a forth-like virtual machine. 04:42:05 do you use Ngaro or writing on your own VM ? 04:43:17 right now i'm using ngaro but i'll probably use a custom vm. 04:43:29 when did the retroforth cgi go bad? 04:43:58 hrm.. looks like crc changed the site? 04:44:15 I think he work on some changes 04:44:33 or administrate his server 04:44:36 it redirects to http://www.forthworks.com/retro 04:45:25 not for me. maybe I need to enable some javascript 04:45:52 by the way, his now design looks quite nice ! 04:45:58 ^new 04:46:26 even allowing javascript, I get redirected to http://www.retroforth.com/cgi-sys/defaultwebpage.cgi 04:46:37 which looks like a default cpanel page 04:46:47 oh well 04:46:59 * dzho was just following a link from the saiwa page 04:49:31 no problem here 04:49:34 oh retroforth.com expired and somebody bought that domain. 04:49:39 haha 04:49:40 you want retroforth.org 04:49:51 but like i said it's redirecting. 04:50:25 tangentstorm: you might want to see to the link for retroforth at the bottom of http://www.13rhinos.de/saiwa.html then (I'm inferring that that's yours?). 04:50:27 Mat3: do you actually need help with something, or was that a typo when you first came in? :) 04:50:47 saiwa is Mat3 's project 04:50:58 Mat3: ^^^ 04:51:12 that is my old webside 04:51:43 i wrote a pascal port of retro and a little forthlike assembler thing called b4... all of which is crammed into an overgrown junk drawer of a git repo at https://github.com/sabren/b4 :) 04:51:44 well, let's get a URL into the #forth logs to jack up the new websites google juice :-) ? 04:51:59 heh 04:52:05 s/port of retro/port of ngaro/ 04:53:54 dzho: I am currently rewrite Saiwa in Nimrod (which will be used as IL language for native-code compilation) 04:55:19 * dzho shrugs 04:55:30 (quite similar to the Mozilla approach of using Forth as backend for there old Javascript JIT comilation) 04:55:46 --- join: nighty-_ (~nighty@lns-bzn-49f-62-147-170-46.adsl.proxad.net) joined #forth 04:57:36 ^compiler 04:58:03 --- join: asie (~textual@078088168214.elblag.vectranet.pl) joined #forth 05:03:41 ciao 05:03:53 --- quit: Mat3 (Quit: Verlassend) 05:51:44 --- quit: asie (Quit: I'll probably come back in either 20 minutes or 8 hours.) 06:05:31 --- join: asie (~textual@078088168214.elblag.vectranet.pl) joined #forth 06:34:03 --- join: pvt_petey (~pvt_petey@host-92-16-158-80.as13285.net) joined #forth 06:37:27 --- quit: pvt_petey (Max SendQ exceeded) 06:38:40 --- join: pvt_petey (~pvt_petey@host-92-16-158-80.as13285.net) joined #forth 06:49:11 --- quit: Zarutian (Quit: Zarutian) 07:38:27 --- join: Zarutian (~zarutian@194-144-84-110.du.xdsl.is) joined #forth 08:24:15 --- quit: pvt_petey (Ping timeout: 240 seconds) 08:27:37 --- join: pvt_petey (~pvt_petey@host-92-16-158-80.as13285.net) joined #forth 08:33:58 --- quit: protist (Ping timeout: 253 seconds) 08:39:45 --- join: protist (~protist@79.224.69.111.dynamic.snap.net.nz) joined #forth 08:40:29 --- quit: asie (Quit: I'll probably come back in either 20 minutes or 8 hours.) 08:51:06 --- quit: nop0x07bc (Ping timeout: 265 seconds) 09:03:56 --- join: bbloom (~bbloom@cpe-68-173-7-82.nyc.res.rr.com) joined #forth 09:05:33 --- quit: DGASAU (Ping timeout: 252 seconds) 09:13:37 --- quit: joneshf-laptop (Remote host closed the connection) 09:18:06 --- join: nop0x07bc (~pon1980@h107n8-aepv-d7.ias.bredband.telia.com) joined #forth 09:18:23 --- join: jonasbits (~Thunderbi@78-73-105-79-no162.tbcn.telia.com) joined #forth 09:36:25 --- quit: jonasbits (Quit: jonasbits) 09:38:31 --- join: pvt_pete_ (~pvt_petey@host-92-16-158-80.as13285.net) joined #forth 09:39:26 --- quit: pvt_petey (Ping timeout: 252 seconds) 09:40:40 --- join: pvt_petey (~pvt_petey@host-92-16-158-80.as13285.net) joined #forth 09:43:15 --- quit: pvt_pete_ (Ping timeout: 240 seconds) 09:44:43 --- join: I440r (~mark4@cpe-68-203-183-77.tx.res.rr.com) joined #forth 09:44:43 --- mode: ChanServ set +o I440r 09:58:18 --- join: pvt_pete_ (~pvt_petey@host-92-16-158-80.as13285.net) joined #forth 09:59:33 --- quit: pvt_petey (Ping timeout: 246 seconds) 10:26:22 --- join: DGASAU (~user@p50993595.dip0.t-ipconnect.de) joined #forth 10:28:50 --- quit: I440r (Remote host closed the connection) 10:32:46 --- join: mnemnion (~mnemnion@c-98-210-219-91.hsd1.ca.comcast.net) joined #forth 10:38:29 --- join: mnemnion_ (~mnemnion@c-98-210-219-91.hsd1.ca.comcast.net) joined #forth 10:40:11 --- quit: mnemnion (Ping timeout: 245 seconds) 11:09:41 --- quit: pvt_pete_ (Ping timeout: 255 seconds) 11:11:56 --- join: pvt_petey (~pvt_petey@host-92-16-158-80.as13285.net) joined #forth 11:28:52 --- join: ASau (~user@46.114.149.167) joined #forth 11:31:26 --- quit: pvt_petey (Ping timeout: 245 seconds) 11:35:12 --- join: Mat3 (~Mat@91-64-127-6-dynip.superkabel.de) joined #forth 11:35:38 --- join: pvt_petey (~pvt_petey@host-92-16-158-80.as13285.net) joined #forth 11:39:18 --- quit: pvt_petey (Max SendQ exceeded) 11:41:20 --- join: pvt_petey (~pvt_petey@host-92-16-158-80.as13285.net) joined #forth 11:42:24 --- join: asie (~textual@078088168214.elblag.vectranet.pl) joined #forth 11:50:59 --- quit: protist (Quit: Konversation terminated!) 12:39:31 ciao 12:39:36 --- quit: Mat3 (Quit: Verlassend) 12:44:00 --- join: joneshf-work (~joneshf@167.222-62-69.ftth.swbr.surewest.net) joined #forth 12:44:38 --- join: john_metcalf (~john_metc@31.185.135.87) joined #forth 12:45:19 --- quit: asie (Quit: I'll probably come back in either 20 minutes or 8 hours.) 12:47:38 --- join: asie (~textual@078088168214.elblag.vectranet.pl) joined #forth 12:49:24 --- quit: bjorkintosh (Ping timeout: 265 seconds) 12:57:01 --- quit: asie (Quit: I'll probably come back in either 20 minutes or 8 hours.) 13:28:01 --- join: true-grue_ (~quassel@128-68-26-203.broadband.corbina.ru) joined #forth 13:30:12 --- quit: true-grue (Ping timeout: 245 seconds) 13:51:35 --- join: bjorkintosh (~bjork@ip68-13-229-200.ok.ok.cox.net) joined #forth 13:55:56 --- quit: true-grue_ (Read error: Connection reset by peer) 14:47:01 --- quit: nighty-_ (Quit: Disappears in a puff of smoke) 15:38:13 --- quit: pvt_petey (Ping timeout: 252 seconds) 15:40:03 --- join: pvt_petey (~pvt_petey@host-92-16-158-80.as13285.net) joined #forth 16:12:31 --- join: I440r (~mark4@222.sub-70-196-9.myvzw.com) joined #forth 16:12:31 --- mode: ChanServ set +o I440r 16:14:07 any math geeks awake ? :) 16:27:02 l440r: well, I can discuss Secure Multi Party Computation. 16:27:13 if that is math-ish enough for you. 16:27:25 --- join: nisstyre (~yourstrul@oftn/member/Nisstyre) joined #forth 16:32:11 you can also have a look at http://dkeenan.com/Lambda/ 16:34:39 --- join: pvt_pete_ (~pvt_petey@host-92-16-158-80.as13285.net) joined #forth 16:35:34 lol no i just have a simple algegra proble, i THINK i have a solution but do not think its very optimal lol 16:35:42 difficult to explain tho 16:36:30 --- quit: pvt_petey (Ping timeout: 255 seconds) 16:39:34 rubberduck on me 16:42:01 say what lol 16:42:19 do u have a piece of graph paper? 16:42:31 any sheet marked with squares 16:42:48 yes. 16:43:13 a bit hard to stuff in through the 'Net though 16:43:13 ok draw an 8x6 rectangle and somewhere inside this rectangle draw a 3x3 box 16:43:24 im a splane my issue :) 16:43:34 ill splane what i just had u draw in a second 16:43:52 in the center of the center square of the 3x3 box put a DOT 16:43:57 3x3 box inside a 8x6 one 16:44:10 yes and in the center square of that 3x3 box put a dot 16:44:16 got that. 16:44:21 ok the rectangle is my map 16:44:32 each square in the map is 16 tiles by 16 tiles 16:44:40 the 3x3 block is a window on the map 16:44:45 the DOT is the players location 16:45:04 in the bottom left square of the 3x3 somewhere draw another dot 16:45:17 this dot is a monster/mob/non player thingie 16:45:26 okay, 16:45:44 what im trying to calculate is the location of the mob where the origin is the top left corneer of the 3x3 grid 16:46:05 given? 16:46:07 problem is, if the player is at the left edge of the map the left edge of the 3x3 is wrapped round to the other side of the map 16:46:46 the mobs coordinates and the players coordinates are world coordinates. i.e. there location in the MAP not their location in the 3x3 block (which i call the grid) 16:48:06 the upper left corner of the 3x3 grid is -24/-24 from the players location 16:48:30 but if x or y are less than 0 then the coordinates wrap 16:48:44 also if x > map width or y > map height they wrap also 16:49:01 i know the players world coordinate i know the mobs coordinate 16:49:15 i need to convert both of these to x/y positions within the grid 16:49:34 from 0/0 to 47/47 16:50:06 and you want to know what the mobs coordnates are inside the 3x3? Simply take the world coordnates of the upper left corner of the 3x3 box, subtract them from the mobs world coordnates modulo the width and or height of the map where appliable. 16:50:08 the player is always at 24/24 16:50:31 modulo? 16:50:55 the mob can be on the complete opposite side of the map to the player 16:51:33 aah, you do not know modulus? Surely you have used clock arithmetic ;-) 16:51:37 i.e. the player can be at 0/0 on the map and the mob can be at bottom left, or top right of the map 16:52:00 modulo meaning remainder after division like /mod ? 16:52:08 yeb 16:52:39 lets say your player is at (0;0) 16:52:54 erm mob grid x = ((mob world x) - (player world x) % map-width ??? 16:53:30 getting there. 16:53:44 that cant be right because the mob can be to either side of the player lol 16:53:51 in that equation your player is at the top left corner of the 3x3 grid 16:53:57 no 16:54:06 the player is in the CENTER of the 3x3 grid 16:54:09 always 16:54:23 the players GRID coordinates are always 24/24 16:54:27 what I meant is that you need to change that equation slightly 16:54:37 err 16:54:50 lol 16:55:31 you see it now? 16:55:35 no 16:56:22 if my player is at world coordinate 0,0 then the top left corner of the grid is at -1,-1 16:56:27 wrapped of course 16:56:51 mob grid x = ((mob world x) - ((player world x) - 24)) % map-width 16:57:33 let me soak that up 16:57:33 try that. 16:58:50 let me try plug in some numbers and try 17:03:52 --- quit: pvt_pete_ () 17:04:59 doent seem to work 17:05:07 ok wait 17:05:54 simplif this. forget the tile offset within one block. so the map width is no longer 256 (16 * 32) but simplu 32 17:05:56 hight is 16 17:06:11 if i know what BLOCK the mob is in within the grid i know his offset within it 17:06:13 ok soo... 17:06:35 mob x = 31. player x = 0 17:06:41 the -24 now becomes -1 17:06:47 and map width is 32 17:07:22 so. mob x = (32 - (0 - 1)) %32 ? 17:07:42 doesnt work lol 17:08:04 x coords go from 0 to 31 17:08:15 err 31 - 1 %32 17:08:23 whats the remainder after dividing 31 by 32 17:08:35 lol 17:08:40 thers nothing BUT remainder 17:11:26 really just knowing whic block of the grid the mob is in solves the problem. so mob x in the grid will always be 0 1 or 2 17:12:16 player is always in 1,1 but converting the world to grid (simple) does not translate into being able to convert the mobs world to grid 17:12:20 that part has me stumped 17:13:17 if player world x = 0 and mob world x = 31 then mobs grid x = 0 17:13:37 if players world x = 31 and mob world x = 0 then mob grid x = 2 17:14:00 i can solve it with bunches of IF/AND/BUT loops but thats not efficient 17:17:07 ur equasion isnt helping me lol 17:50:20 --- quit: Adeon (Ping timeout: 240 seconds) 18:32:36 yea those equasions arent working for all cases 18:47:03 --- quit: Zarutian (Quit: Zarutian) 19:50:02 --- quit: I440r (Ping timeout: 246 seconds) 20:07:50 --- join: mark4 (~mark4@222.sub-70-196-9.myvzw.com) joined #forth 21:27:32 ok i got the solution and it was way easier that that lol 21:31:08 --- join: asie (~textual@078088168214.elblag.vectranet.pl) joined #forth 21:57:21 --- quit: mark4 (Ping timeout: 240 seconds) 22:07:09 --- quit: nisstyre (Quit: WeeChat 0.4.3) 22:13:25 --- join: mark4 (~mark4@cpe-68-203-183-77.tx.res.rr.com) joined #forth 22:28:20 --- quit: asie (Quit: I'll probably come back in either 20 minutes or 8 hours.) 22:35:27 --- join: joneshf-laptop (~joneshf@086.112-30-64.ftth.swbr.surewest.net) joined #forth 23:54:56 --- quit: ASau (Remote host closed the connection) 23:56:44 --- join: ASau (~user@46.114.149.167) joined #forth 23:59:59 --- log: ended forth/14.03.31