Powered by Invision Power Board

 
  Pages: (3) [1] 2 3  ( Go to first unread post ) Reply to this topicStart new topicStart Poll

> programming RAGE topic
United States
Xgoff
Posted: May 19 2009, 07:50 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


post what annoys you while you're programming, be it algorithms, bugs, crap you have to do all the time, crap you always forget how to do, etc.

right now i'm raging over coding an animation frame stepping script that has the capability to animate slower than 1 animation frame per game loop and able to skip frames if the speed is high enough

it also has to be fps-independent so a speed of x at y fps is still x at z fps

oh and it's integer-based only

fun ****

EDIT: i'm not even kidding why am i being confused so much over this:
CODE
object.animate = function (input_obj) -- display next frame (CHECK) yeah this needs a LOT of testing and editing
local anim = input_obj.animation
if not(anim.sequence[anim.current].paused) and anim.sequence[anim.current].speed > 0 then
 if (anim.framestep % fps_base) == 0 then -- argh this is harder than it looks on paper what the ****
  anim.sequence[anim.current].currentframe = anim.sequence[anim.current].currentframe + 1
  mmf.Object.SetAnimationFrame(input_obj, anim.sequence[anim.current].currentframe)
 end
 anim.framestep = anim.framestep + anim.sequence[anim.current].speed
end
end


This post has been edited by Xgoff on May 19 2009, 09:15 PM


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
United States
cappy
Posted: May 19 2009, 07:54 PM
Quote Post


remember, cappy loves you.
[*]

Group Icon
Group: Members
Posts: 959
Member No.: 3489
Joined: 27-March 07

Status: (0d) [--]


Have all these great ideas but don't know how to program worth ****!

It's always the positioning and the x,y coordinates that tick me off, every stinking time!


--------------------
QUOTE (Mr. Aforcer @ Sep 21 2009, 09:51 PM)
Bootylicious even.
PMEmail PosterMSN
Top
United States
Sploder
Posted: May 19 2009, 10:13 PM
Quote Post


Standard Member
[*][*][*][*]

Group Icon
Group: Members
Posts: 781
Member No.: 2317
Joined: 12-July 06

Status: (0d) [--]


@Xgoff, what language is that?
PMEmail Poster
Top
United States
Retriever II
Posted: May 19 2009, 10:19 PM
Quote Post


Catalyst
[H][*][*][*][*]
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 18290
Member No.: 52
Joined: 13-October 03

Status: (0d) [--]


It's lua


--------------------

PMEmail PosterUsers WebsiteICQAOLMSN
Top
United States
Sploder
Posted: May 19 2009, 10:30 PM
Quote Post


Standard Member
[*][*][*][*]

Group Icon
Group: Members
Posts: 781
Member No.: 2317
Joined: 12-July 06

Status: (0d) [--]


@Xgoff, maybe you should put in an extra set of parentheses around the first if condition. Also, you have one too many ends in there.

EDIT: oh wait, this isn't a help topic! Sorry...

This post has been edited by Sploder on May 19 2009, 10:33 PM
PMEmail Poster
Top
United States
Xgoff
Posted: May 19 2009, 10:40 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


QUOTE (Sploder @ May 19 2009, 09:30 PM)
@Xgoff, maybe you should put in an extra set of parentheses around the first if condition.

there's nothing wrong with the code apart from the fact that the math behind it is wrong

in fact the math behind it is what i'm trying to figure out

QUOTE
Also, you have one too many ends in there.

no i don't; it'd be clearer if my [script] tags worked in misc discussion but for some reason they don't

This post has been edited by Xgoff on May 19 2009, 10:41 PM


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
Denmark
Mecha the Slag
Posted: May 20 2009, 07:34 AM
Quote Post


http://mechaware.net
[*][*][*][*][*]
[*][*][*]

Group Icon
Group: Members
Posts: 11816
Member No.: 728
Joined: 15-December 04

Status: (0d) [--]


sizing by pixels in MMF2.

**** can that be a *****, ESPECIALLY with an animation containing frames with different widths and heights


--------------------




MechaWare GamesMechaSourceMechaWare for CellphonesMechaWare on Steam

PMUsers WebsiteMSN
Top
United States
M. C. Productions
Posted: May 24 2009, 08:14 PM
Quote Post


Mario series' gals = #1!
[*]

Group Icon
Group: Members
Posts: 700
Member No.: 3100
Joined: 22-December 06

Status: (0d) [--]


Does this also include Event Editor procedures in Clickteam products as well? Just making sure.

Because in one of my games under production -- the biggest aggravation I had when doing the game's main engine was the process when my character gets "injured" and I'm trying to get it to "flash" afterwards for a few seconds (but that's resolved now).

Then there was the part in which I had to put in extra coding in the Events list when my character's health hit zero.
PMUsers Website
Top
United States
Xgoff
Posted: May 24 2009, 08:16 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


QUOTE (M. C. Productions @ May 24 2009, 07:14 PM)
Does this also include Event Editor procedures in Clickteam products as well? Just making sure.

it's still programming so yes


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
United States
RetroXYZ
Posted: May 24 2009, 08:51 PM
Quote Post


Standard Member
[*][*]

Group Icon
Group: Members
Posts: 2714
Member No.: 4325
Joined: 27-August 07

Status: (0d) [--]


When you spend weeks wondering why something doesn't work and then you realize you forgot a semicolon
PMEmail PosterMSN
Top
United States
Xgoff
Posted: May 24 2009, 08:53 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


QUOTE (RetroXYZ @ May 24 2009, 07:51 PM)
When you spend weeks wondering why something doesn't work and then you realize you forgot a semicolon

uh... were you not getting an error message from that or something


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
United States
RetroXYZ
Posted: May 24 2009, 09:11 PM
Quote Post


Standard Member
[*][*]

Group Icon
Group: Members
Posts: 2714
Member No.: 4325
Joined: 27-August 07

Status: (0d) [--]


QUOTE (Xgoff @ May 24 2009, 09:53 PM)
uh... were you not getting an error message from that or something

Usually when you miss a semicolon it causes an error in lines to follow, causing you to look repeatedly over and over the wrong code and not notice what you did wrong.
PMEmail PosterMSN
Top
United States
Xgoff
Posted: May 26 2009, 10:01 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


hey engine let's be a massive ****** and not call events for object references that are evaluated as opposed to hardcoded

you know what let's just not be nice with events period

EDIT: okay the first one is because 'other' is being assigned to the null object for whatever reason RARGH

EDIT 2: oh dicks it spontaneously fixed itself... i love it when **** intermittently works

This post has been edited by Xgoff on May 26 2009, 10:23 PM


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
United States
OniLink10
Posted: May 26 2009, 10:58 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


argh I hate vtable. Why does it even exist? >:( It expands my EXE by about 30KB. >:( It more than tripled the EXE size. >:(


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
United States
Retriever II
Posted: May 26 2009, 11:09 PM
Quote Post


Catalyst
[H][*][*][*][*]
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 18290
Member No.: 52
Joined: 13-October 03

Status: (0d) [--]


vtable is what makes dynamic dispatch possible.


--------------------

PMEmail PosterUsers WebsiteICQAOLMSN
Top
United States
Project_MK
Posted: May 26 2009, 11:20 PM
Quote Post


Wayward Vagabond
[*][*][*][*]

Group Icon
Group: Members
Posts: 1763
Member No.: 3159
Joined: 7-January 07

Status: (0d) [--]


so I tried to make an engine for a game
everything was working smooth until I tried to animate
I added a simple code that set the sprite to the walking sprite when xspeed>0
and bam
now he can't jump, (which took me forever to find out how to do, not to mention I lost all memory on it, grah) walls are sticky and everything's all ****ed up
>[


--------------------

user posted image
Click banner for reference.
PMEmail PosterAOLYahooMSN
Top
United States
Xgoff
Posted: May 26 2009, 11:25 PM
Quote Post


<):|
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 52341
Member No.: 24
Joined: 13-October 03

Status: (0d) [--]


QUOTE (OniLink10 @ May 26 2009, 09:58 PM)
It expands my EXE by about 30KB. >:( It more than tripled the EXE size. >:(

that's horrible


--------------------

This post may contain original research or unverified claims.
Please disregard the above information and contact an administrator.

DISCLAIMER: by sending me (xgoff) a private message, you agree to the directives and their terms specified henceforth:
DIRECTIVE 1 (APPLE): i may or may not reply promptly or at all; and there are no guarantees to the usefulness of the reply. i may not acknowledge whether i have even received your private message
DIRECTIVE 2 (CHILE CON CARNE): as per my view, "private" applies only to the initial transaction, and the material of your message may or may not be made public at my discretion; as this will more than likely be a post in the CCC or IRC, you may not be able to view it
DIRECTIVE 3 (FEATHER DUSTER): you must address me (xgoff) as "Sir Master Xgofficus his Highest and Most Awesome the Third"; failure to comply with this term may invoke one or both of the above directives, and i will leave a burning bag of **** on your doorstep
DIRECTIVE 4 (BOOTSTRAP): if you have read this disclaimer, please private message me promptly, in compliance with the above terms, so i can ensure you are capable of following directions you idiot
this concludes the test of the emergency disclaimer system, your scheduled programming will now continue. satisfaction guaranteed, and 100% cash back available under certain circumstances; restrictions may or may not apply within your place of residence
NOTICE: these directives and their terms may change at any time, without notice; as a private message transaction to myself assumes an understanding and full compliance of the above, you should ensure you are fully aware of the above terms at any point before sending a private message; any message received is assumed to have been sent in compliance with the above

QUOTE
(5:25:58 PM) Mikau: xgoff
(5:26:00 PM) Mikau: guess what
(5:26:04 PM) Xgoff: chicken butt
(5:26:09 PM) Mikau: **** you
PMEmail PosterUsers WebsiteAOLMSN
Top
United States
OniLink10
Posted: May 26 2009, 11:37 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (Retriever II @ May 26 2009, 09:09 PM)
vtable is what makes dynamic dispatch possible.

Explain.


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
United States
OniLink10
Posted: May 26 2009, 11:38 PM
Quote Post


C++ Programmer, Unofficial Physicist, and Unofficial Chemist
[*][*]

Group Icon
Group: Members
Posts: 3920
Member No.: 4907
Joined: 19-February 08

Status: (0d) [--]


QUOTE (Xgoff @ May 26 2009, 09:25 PM)
that's horrible

The 30KB I don't mind(if it was already like, 20KB), it's that it TRIPLES MY EXECUTABLE SIZE that I care about.

This post has been edited by OniLink10 on May 26 2009, 11:39 PM


--------------------
QUOTE (Xgoff @ Sep 10 2009 @ 06:11 PM)
did you try hello's engine

make sure to not ****ing change anything before using it!
PMEmail PosterUsers WebsiteYahoo
Top
United States
Retriever II
Posted: May 26 2009, 11:44 PM
Quote Post


Catalyst
[H][*][*][*][*]
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 18290
Member No.: 52
Joined: 13-October 03

Status: (0d) [--]


You need a severe priority adjustment.


--------------------

PMEmail PosterUsers WebsiteICQAOLMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Pages: (3) [1] 2 3  Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.1061 ]   [ 15 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.49 ]