Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

878408 Posts in 32920 Topics- by 24333 Members - Latest Member: blackarm

May 21, 2013, 08:39:48 PM
TIGSource ForumsDeveloperTechnical (Moderators: Glaiel-Gamer, ThemsAllTook)The grumpy old programmer room
Pages: 1 ... 100 101 [102] 103 104 ... 275
Print
Author Topic: The grumpy old programmer room  (Read 305967 times)
Evan Balster
Level 10
*****


dreaming close to metal


View Profile WWW Email
« Reply #1515 on: February 01, 2011, 12:57:05 PM »

That (and the crappiness of other free systems) is what makes me feel like making a free system.
Logged

Infinite Blank, SoundSelf, Cave Story+, Wreath
voice, accordion, mandolin, (oboe, soon)
Game audio programming consultant.
<plaid/audio>: opensource audio framework
mcc
Level 10
*****


glitch


View Profile WWW Email
« Reply #1516 on: February 01, 2011, 08:10:05 PM »

Cellulose I'd be very curious to see that. I wrote a sort of chain-audio system of this sort but it's very ad hoc and I question its performance...

Wrote a wonderful shader.  Works great on Linux, works great on Windows, does mysterious things on Mac.

Oh joy.
Out of curiosity, what kind of mysterious things?
Logged

My projects:<br />Games: Jumpman Retro-futuristic platforming iJumpman iPhone version Drumcircle PC+smartphone music toy<br />More: RUN HELLO
Average Software
Level 10
*****

Fleeing all W'rkncacnter


View Profile WWW Email
« Reply #1517 on: February 01, 2011, 08:43:47 PM »

Cellulose I'd be very curious to see that. I wrote a sort of chain-audio system of this sort but it's very ad hoc and I question its performance...

Wrote a wonderful shader.  Works great on Linux, works great on Windows, does mysterious things on Mac.

Oh joy.
Out of curiosity, what kind of mysterious things?

Odd effects occuring outside the primitive region.

Turned out I was passing the wrong value for a sampler ID.  I suspect this put OpenGL into some kind of "undefined" state which Linux and Windows just happened to interpret in my favor, while the Mac driver didn't.  Now that it's fixed, I'm glad it happened, I might not have caught that.
Logged

Franchise - The restaurant wars begin!

What would John Carmack do?
Evan Balster
Level 10
*****


dreaming close to metal


View Profile WWW Email
« Reply #1518 on: February 01, 2011, 09:07:59 PM »

I've had similar experience with OpenGL and undefined behavior.  It's a bitch when it works right most of the time.

(Had a bug on 32-bit systems that resulted from evaluating 2<<32 and storing it to a GLuint  Facepalm)
Logged

Infinite Blank, SoundSelf, Cave Story+, Wreath
voice, accordion, mandolin, (oboe, soon)
Game audio programming consultant.
<plaid/audio>: opensource audio framework
Glaiel-Gamer
Moderator
Level 10
******


Stoleurface!


View Profile WWW Email
« Reply #1519 on: February 01, 2011, 10:15:08 PM »

Cellulose I'd be very curious to see that. I wrote a sort of chain-audio system of this sort but it's very ad hoc and I question its performance...

Wrote a wonderful shader.  Works great on Linux, works great on Windows, does mysterious things on Mac.

Oh joy.
Out of curiosity, what kind of mysterious things?

Odd effects occuring outside the primitive region.

Turned out I was passing the wrong value for a sampler ID.  I suspect this put OpenGL into some kind of "undefined" state which Linux and Windows just happened to interpret in my favor, while the Mac driver didn't.  Now that it's fixed, I'm glad it happened, I might not have caught that.

is it a windows/mac thing or an nvidia/ati thing? Cause I have far more differences between ati and nvidia in regards to undefined behavior than with windows/mac
Logged

Player Ʒ
Level 10
*****


Arcade Enthusiast


View Profile WWW
« Reply #1520 on: February 02, 2011, 02:39:41 AM »

Code:
Mouse.hide();
cur.startDrag(true);

Why does this not work in Flash CS4?
I have a movie clip with the instance name of cur and everything!
Logged

> Empty
Average Software
Level 10
*****

Fleeing all W'rkncacnter


View Profile WWW Email
« Reply #1521 on: February 02, 2011, 05:44:32 AM »

Cellulose I'd be very curious to see that. I wrote a sort of chain-audio system of this sort but it's very ad hoc and I question its performance...

Wrote a wonderful shader.  Works great on Linux, works great on Windows, does mysterious things on Mac.

Oh joy.
Out of curiosity, what kind of mysterious things?

Odd effects occuring outside the primitive region.

Turned out I was passing the wrong value for a sampler ID.  I suspect this put OpenGL into some kind of "undefined" state which Linux and Windows just happened to interpret in my favor, while the Mac driver didn't.  Now that it's fixed, I'm glad it happened, I might not have caught that.

is it a windows/mac thing or an nvidia/ati thing? Cause I have far more differences between ati and nvidia in regards to undefined behavior than with windows/mac

All the cards involved are nVidia, and I have Windows/Mac on the same machine, so the hardware is identical for those two.  I suspect it must be an OS thing.
Logged

Franchise - The restaurant wars begin!

What would John Carmack do?
st33d
Guest
« Reply #1522 on: February 02, 2011, 07:03:45 AM »

Code:
Mouse.hide();
cur.startDrag(true);

Why does this not work in Flash CS4?
I have a movie clip with the instance name of cur and everything!

protip: trace(cur);

There's always the chance you're trying to manipulate an object that's not in the same scope as the code.
Logged
mcc
Level 10
*****


glitch


View Profile WWW Email
« Reply #1523 on: February 02, 2011, 10:35:10 PM »



All this time and I've still never got the hang of drawing rectangles.

EDIT: Problem fixed:

Quote
(c+(((d+(c/2)*2+(c+1)%2)/2)%2))%4

...I have really got to stop deriving formulas by trial and error.
« Last Edit: February 02, 2011, 11:02:42 PM by mcc » Logged

My projects:<br />Games: Jumpman Retro-futuristic platforming iJumpman iPhone version Drumcircle PC+smartphone music toy<br />More: RUN HELLO
Kekskiller
Guest
« Reply #1524 on: February 03, 2011, 04:08:14 AM »

EDIT: Problem fixed:

Quote
(c+(((d+(c/2)*2+(c+1)%2)/2)%2))%4

Wtf is this formula for? Geez
Logged
Player Ʒ
Level 10
*****


Arcade Enthusiast


View Profile WWW
« Reply #1525 on: February 03, 2011, 04:28:27 AM »

Code:
Mouse.hide();
cur.startDrag(true);

Why does this not work in Flash CS4?
I have a movie clip with the instance name of cur and everything!

protip: trace(cur);

There's always the chance you're trying to manipulate an object that's not in the same scope as the code.
Just had to add a trace at the end (with a message that it works) and BANG! it worked. AS3 just wants to mess with my head. Thank you very much. It works until it's saved as an *.FLA file. Any reason why?
« Last Edit: February 03, 2011, 05:12:44 AM by Player 3 » Logged

> Empty
st33d
Guest
« Reply #1526 on: February 03, 2011, 08:30:37 AM »

It's unlikely AS3.

It's more likely CS4. It randomly deletes things during the compile process. This didn't happen with the other Flash IDEs.
Logged
bateleur
Level 10
*****



View Profile
« Reply #1527 on: February 03, 2011, 08:52:59 AM »

It's more likely CS4. It randomly deletes things during the compile process. This didn't happen with the other Flash IDEs.

@Player 3> Clarification: It's not actually random. For example, I've done (at least) thousands of compile runs with CS4 and never had any corruption of any kind. Also, anecdotally, corruptions seem to happen more with very large or complex FLAs. Try your code in a small test FLA (a clean one, not a copy of your main project with stuff stripped out) and if it still doesn't work it's almost certainly nothing to do with CS4.

(Also, create a new thread for this if you want more detailed help.)
Logged

Glaiel-Gamer
Moderator
Level 10
******


Stoleurface!


View Profile WWW Email
« Reply #1528 on: February 03, 2011, 10:59:44 AM »

file->save and compact


in flash that command has saved me a headache a few times when its acting retarded
Logged

bengrue
Level 0
***


I code. A lot.


View Profile WWW Email
« Reply #1529 on: February 03, 2011, 12:35:26 PM »

All this time and I've still never got the hang of drawing rectangles.

You better check yourself before you Rect() yourself, mcc.
Logged

Current Project: Sully: A Very Serious RPG

Executive Producer of Dungeons of Dredmor

@bengrue on the twitternets
Pages: 1 ... 100 101 [102] 103 104 ... 275
Print
Jump to:  

Theme orange-lt created by panic