Pages: 1 2 »
  Print  
Author Topic: k done  (Read 9510 times)
Offline (Male) Josh @ Dreamland
Posted on: July 21, 2012, 07:39:57 pm

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
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
Offline (Unknown gender) luiscubal
Reply #1 Posted on: July 21, 2012, 10:04:59 pm
Member
Joined: Jun 2009
Posts: 452

View Profile Email
Quote
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
Offline (Male) Josh @ Dreamland
Reply #2 Posted on: July 21, 2012, 10:15:44 pm

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
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
Offline (Male) cheeseboy
Reply #3 Posted on: July 22, 2012, 11:13:58 pm

Member
Location: The internet
Joined: Mar 2011
Posts: 105

View Profile
@josh
Since even your great generosity has bounds, and you have thus disallowed me from spamming shit messages on your IRC channel while still graciously allowing me to shitpost here, I suppose I will do so. Well it parses 99% of my game. Apparently you broke median (it only accepts 1 argument now?). Also almost none of my sprites animate anymore and sounds completly borked too. I hear speakers click on then nothing. Way to break everything (not that I didn't expect it).

@ismavatar
Definitions aren't geting reset. I have to delete them everytime I open a new instance of lgm. Also I'm onubuntu temporarily and I have to say having the console as a seperate popup is 9001x more annoying unity. Once it gets pushed to the back I have no idea when it errors then I have to deal with unity's shitty UI to find it. Shouldn't the console be intergrated into main window? or jump to foreground when theres an error? Also what happened to making errors red and warnings yellow in console?

@darkacez
You're 12.

@polygon
You're gayer than me.
« Last Edit: July 23, 2012, 11:22:59 am by IsmAvatar » Logged
Offline (Female) IsmAvatar
Reply #4 Posted on: July 23, 2012, 01:40:24 am

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 877

View Profile Email
Quote
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.

Quote
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
Offline (Male) cheeseboy
Reply #5 Posted on: July 23, 2012, 03:36:06 am

Member
Location: The internet
Joined: Mar 2011
Posts: 105

View Profile
@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
Offline (Male) Josh @ Dreamland
Reply #6 Posted on: July 23, 2012, 11:15:17 am

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
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
Offline (Male) cheeseboy
Reply #7 Posted on: July 23, 2012, 11:43:29 am

Member
Location: The internet
Joined: Mar 2011
Posts: 105

View Profile
Fixed and commited?
Code: [Select]
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
Offline (Male) Josh @ Dreamland
Reply #8 Posted on: July 23, 2012, 11:45:15 am

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
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
Offline (Male) cheeseboy
Reply #9 Posted on: July 23, 2012, 03:23:03 pm

Member
Location: The internet
Joined: Mar 2011
Posts: 105

View Profile
Whatever you just commited broke instance_nearest.
Code: [Select]
Line 4, position 41 (absolute 121): Too few arguments to function `instance_nearest': provided 3, required 4.also unban kthnx.
Logged
Offline (Male) Josh @ Dreamland
Reply #10 Posted on: July 23, 2012, 05:32:26 pm

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
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
Offline (Male) cheeseboy
Reply #11 Posted on: July 23, 2012, 07:00:42 pm

Member
Location: The internet
Joined: Mar 2011
Posts: 105

View Profile
Uhm most definetly broke it. Whole game ran after comenting out the median line before :P.

also unban kthnx.
Logged
Offline (Male) Josh @ Dreamland
Reply #12 Posted on: July 23, 2012, 07:03:09 pm

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
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
Offline (Male) cheeseboy
Reply #13 Posted on: July 23, 2012, 07:10:24 pm

Member
Location: The internet
Joined: Mar 2011
Posts: 105

View Profile
\o/ It compiles. Now If only lgm could load my my sprites...

(I think thats also your domain. Mr. APNG) :P

also unban kthnx.
Logged
Offline (Male) Josh @ Dreamland
Reply #14 Posted on: July 28, 2012, 01:34:58 am

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
I have JDI compiling and working (zero errors, zero warnings) on Windows with the following headers:

Code: (cpp) [Select]
#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
Pages: 1 2 »
  Print