Josh @ Dreamland
|
 |
Posted on: July 21, 2012, 07:39:57 pm |
|
|
Prince of all Goldfish
 Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
After some grueling moments of agony, I have the new system working—as far as I can tell—on Linux. TGMG is testing it for Mac, and then I guess I'll make it work on Windows and merge it in to the main branch.
I'm more concerned about Mac because, number one, its headers are older and very different, and number two, TGMG has a massive testing platform running on it which we can use for automated regression testing.
In other news, I fixed depth, too.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
luiscubal
|
 |
Reply #1 Posted on: July 21, 2012, 10:04:59 pm |
|
|
 Joined: Jun 2009
Posts: 452
|
TGMG has a massive testing platform running on it Can't(in fact, shouldn't) you port it to other platforms too? I mean, wouldn't this testing platform also help finding platform-specific bugs that would otherwise not be found (since an OS X-only testing suite can't find Windows/Linux bugs)
|
|
|
Logged
|
|
|
|
Josh @ Dreamland
|
 |
Reply #2 Posted on: July 21, 2012, 10:15:44 pm |
|
|
Prince of all Goldfish
 Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
You make a great point, but let me offer this as a rebuttal: I'm lazy. I have higher priorities.
(Note from Ism: ftfy)
|
|
« Last Edit: July 22, 2012, 10:24:42 am by IsmAvatar »
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
IsmAvatar
|
 |
Reply #4 Posted on: July 23, 2012, 01:40:24 am |
|
|
LateralGM Developer
 Location: Pennsylvania/USA Joined: Apr 2008
Posts: 877
|
Shouldn't the console be intergrated into main window? Already planned. I think RetroX was working on it, but I haven't seen him for a while. He did some of the core work, and I think I can probably plug it in myself now, but I was wondering if he was also going to plug it in himself and save me the trouble. Guess not, so I'll go ahead and do that when I get a chance. Also what happened to making errors red and warnings yellow in console? Not sure. I'll look into it. I vaguely thought I already had it implemented. Maybe it broke. At any rate, I'll poke at that too when I get a chance, and hopefully get that working.
|
|
|
Logged
|
|
|
|
cheeseboy
|
 |
Reply #5 Posted on: July 23, 2012, 03:36:06 am |
|
|
 Location: The internet Joined: Mar 2011
Posts: 105
|
@ismavatar It appears the sprite issue is egm related. Any egm I open only shows the first image under subimages. I'm not sure if there there and not loading or getting deleted upon save. If i open gm8 or similar then save as egm and reeopen I can no loger see them though. Also josh edit has this odd behavior when being dragged It's pretty harmless but made a video so you could see http://ubuntuone.com/4ruUhJemKrGvWfhZcQGq8Y .
|
|
|
Logged
|
|
|
|
Josh @ Dreamland
|
 |
Reply #6 Posted on: July 23, 2012, 11:15:17 am |
|
|
Prince of all Goldfish
 Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Bear in mind, cheeseboy, I can very easily apply all the IP bans from the IRC here.
I have not touched sounds. If they don't work anymore, it has nothing to do with the parser. The parser only determines whether or not the sounds are functions. The other problems you are describing sound like an issue identifying locals, which was already fixed.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
cheeseboy
|
 |
Reply #7 Posted on: July 23, 2012, 11:43:29 am |
|
|
 Location: The internet Joined: Mar 2011
Posts: 105
|
Fixed and commited?
greg@greg-laptop:~/enigma-dev$ git status # On branch enigma-jdi # Untracked files: # (use "git add <file>..." to include in what will be committed) # # fail.log # update.sh nothing added to commit but untracked files present (use "git add" to track)
draw_sprite_part(sprite_index, -1, 0, 0, median(0, obj_house.x + wall - bbox_left, sprite_width), sprite_height, x, y);
Line 1, position 82: Too many arguments to function `median': provided 3, allowed 1.
|
|
|
Logged
|
|
|
|
Josh @ Dreamland
|
 |
Reply #8 Posted on: July 23, 2012, 11:45:15 am |
|
|
Prince of all Goldfish
 Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
That, I am looking into now. Median is the only function correctly identified to take variadic parameters. Due to issues in resolving ::, min, max, and choose are not read correctly. The bug in resolving median as variadic is ENIGMA's fault; I'll look into it after the other three read properly.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
Josh @ Dreamland
|
 |
Reply #10 Posted on: July 23, 2012, 05:32:26 pm |
|
|
Prince of all Goldfish
 Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
What I committed didn't break anything. It fixed your problem, revealing the next error it encountered while trying to parse your code.
I will commit the fix to the instance_nearest problem after I finish writing these diagnostic toString methods.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
cheeseboy
|
 |
Reply #11 Posted on: July 23, 2012, 07:00:42 pm |
|
|
 Location: The internet Joined: Mar 2011
Posts: 105
|
Uhm most definetly broke it. Whole game ran after comenting out the median line before  . also unban kthnx.
|
|
|
Logged
|
|
|
|
Josh @ Dreamland
|
 |
Reply #12 Posted on: July 23, 2012, 07:03:09 pm |
|
|
Prince of all Goldfish
 Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
If it broke, it was because the parser was not checking errors correctly at all, because the `variadic' field given to each parameter in memory was not initialized. While it's possible for what seemed like a regression to surface, it's a sharp statistical improbability.
Either way, I've pushed the version that initializes those fields, and sets them correctly.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
cheeseboy
|
 |
Reply #13 Posted on: July 23, 2012, 07:10:24 pm |
|
|
 Location: The internet Joined: Mar 2011
Posts: 105
|
\o/ It compiles. Now If only lgm could load my my sprites... (I think thats also your domain. Mr. APNG)  also unban kthnx.
|
|
|
Logged
|
|
|
|
Josh @ Dreamland
|
 |
Reply #14 Posted on: July 28, 2012, 01:34:58 am |
|
|
Prince of all Goldfish
 Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
I have JDI compiling and working (zero errors, zero warnings) on Windows with the following headers:
#include <GL/gl.h> #include <GL/glu.h>
#include <stdio.h> //printf, NULL #include <stdlib.h> //malloc #include <time.h> //clock
#include <stdio.h> #include <stdlib.h>
#include <errno.h> #include <float.h> #include <iso646.h> #include <math.h> #include <locale.h> #include <stdarg.h> #include <wchar.h> #include <stdint.h> #include <string.h> #include <stdbool.h> #include <stddef.h> #include <malloc.h>
#include <stdint.h> #include <time.h>
#include <fcntl.h> #include <sys/types.h> #include <signal.h> #include <setjmp.h> #include <inttypes.h>
// Once affected by lack of '?' operator token #include <ctype.h> #include <wctype.h> #include <limits.h> #include <assert.h>
#include <windows.h>
// Once affected by lack of support for public/private/protected, and by lack of support for constructors. #include <pthread.h>
#include <sys/stat.h> #include <sys/time.h>
#include <fenv.h> #include <tgmath.h> #include <complex.h>
I'll probably commit what I have shortly, assuming nothing segfaults and dies in ENIGMA (Which I'm already sure that it will).
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|