Avali Nexus

Full Version: Avali Nexus Forum Thread: 4 Score and Several Threads Ago...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Okay, I officially give up.
I've been trying variants of this code trying to make it work for...
...
2 and a half hours, I think.

If anyone is familiar with Scheme, can you PLEASE tell me why this isn't working???
(note: I am scripting for GIMP)
Code:
;snipped
    (let loop ((i 1))
      (if (< i frames)
        (let* ((hue-change (* i hue-step))
            (new-frame (car (gimp-layer-copy first-frame 0))))
            (gimp-image-add-layer new-image new-frame 0)
            (if (> hue-change 180)
                (let* ((hue-offset (+ (- 0 360) hue-change))) (gimp-hue-saturation new-frame 0 hue-offset 0 0))
                (let* ((hue-offset hue-change)) (gimp-hue-saturation new-frame 0 hue-offset 0 0)))
            (loop (+ i 1)))))
;snipped
The problem is that gimp-hue-saturation can't accept values lower than -180 or higher than 180.
When I run the script, it works fine until the hue-offset reaches 210, at which point, due to the conditional, it should wrap around to -150 which is equivalent.
It does not. The execution keeps complaining that I'm feeding it 210, which is greater than 180!
For some reason my conditional seems to be ignored or something??

What should happen is the following:
hue-step is 30 as per my selected settings in the menu (unimportant to this)
hue-change is incremented by multiplication.
hue-offset is then made from hue-change and the hue is offset by that amount
OR if hue-offset is more than 180
hue-offset is added to -360 (it's done weird since I thought maybe the negative number was the problem for a while. It wasn't.) to get -150, -120, -90, etc.
then it does the same procedure as it would have above.

But it doesn't.
And this is pissing me off. I've spent too long trying to learn the basics of this unorthadox language just so I can edit this damn script segment to work the way I want it to, but apparently even that eludes me, probably because of some obscure rule or obvious syntax problem. ARGH!
Ohgod.

I actually had a nightmare about playing EVE online.

Something to do with my Hyperion getting cornered and shot full of holes, but managing to kill an enemy and escape to warp.



why bring two instead you can bring one!
umby drop
[Image: tumblr_o63mxdw7fT1sfgh9vo1_1280.jpg]
Okay this is actually amazing. So i'm flying with a battle fleet in EVE today, and a probably 100 person strong fleet of mostly destroyers and frigates just swarmed and destroyed a group of battleships.

I've lost two hulls already, fortunately haven't gotten podded yet.
(04-23-2016, 12:03 PM)Shaadaris Wrote: [ -> ]Okay, I officially give up.
I've been trying variants of this code trying to make it work for...
...
2 and a half hours, I think.

If anyone is familiar with Scheme, can you PLEASE tell me why this isn't working???
(note: I am scripting for GIMP)
Snip
The problem is that gimp-hue-saturation can't accept values lower than -180 or higher than 180.
When I run the script, it works fine until the hue-offset reaches 210, at which point, due to the conditional, it should wrap around to -150 which is equivalent.
It does not. The execution keeps complaining that I'm feeding it 210, which is greater than 180!
For some reason my conditional seems to be ignored or something??

What should happen is the following:
hue-step is 30 as per my selected settings in the menu (unimportant to this)
hue-change is incremented by multiplication.
hue-offset is then made from hue-change and the hue is offset by that amount
OR if hue-offset is more than 180
hue-offset is added to -360 (it's done weird since I thought maybe the negative number was the problem for a while. It wasn't.) to get -150, -120, -90, etc.
then it does the same procedure as it would have above.

But it doesn't.
And this is pissing me off. I've spent too long trying to learn the basics of this unorthadox language just so I can edit this damn script segment to work the way I want it to, but apparently even that eludes me, probably because of some obscure rule or obvious syntax problem. ARGH!

ASDFGHJKLZXCVBNM
So I was using if wrong.
Because apparently Scheme's if statements expressions are in fact COMPLETELY different than those of every other language I've ever seen.
So I switched to cond, which should be working. Even made the else clause something concrete in case that was tripping it up.
NOPE.
NOPEITY NOPP!
STILL SOMEHOW GETTING THE VALUE 210 PASSED TO gimp-hue-saturation!
WHY?
I DON'T KNOW FUCK YOU IS WHY.
GODDAMNIT I WANT TO PUNCH WHOEVER DEVELOPED THIS BACKWARDS LANGUAGE.
I HAVE GONE THROUGH SO MANY VAGUE RESOURCES AND NONE OF WHY THIS ISN'T WORKING MAKES SENSE.
This is crap. This is total crap.
I might have to finally give in and make a Stack Exchange account for this. Though if I do I expect either no help or a bunch of people throwing scheme technobabble at me like I'll understand it. Neither of which would be any use.
[/rage]
Our DM just asked me to cook up a sci-fi D&D homebrew, you know, with guns and shit, so I'm jumping right into the numbers of making guns work alongside swords and shit, and here's what I've come up with.

AC penetration: Depending on the class of gun each firearm has a "penetration value" and the AC of the target on any given attack is reduced by that value to a minimum value of 10, this reduction only applies for attacks made with a firearm.
Cover: Different environmental objects offer one of three types of cover, visual, light, or heavy, penalizing opponents with an effective +1, +2, and +4 AC respectively to ranged attacks against you, however melee attacks against you will penetrate approximately 2 AC due to a number of factors that prevent you from evading or softening the blow effectively. Note that if your AC is increased to 20 or more a base roll of 20 will STILL automatically hit.
Sights: Although penetration cannot reduce the enemy AC below 10, combining it with an advanced "smart" sight can, depending on the weapon and sight bonuses of up to +4 to hit are possible.
Size: Firearms come in large and small, with these two types receiving penalties to shots at short range and long range respectively, but with identical performance at medium ranges.

I may have to add some similar accuracy buffs for magic and/or melee because this is liable to become a brutally fast paced game.
*meanwhile is PvP armored warfare*
chali vs chali part 2
*tortoise ramming eachother*
[Image: tumblr_inline_o64m51Mhik1tcpx4l_1280.jpg]
Anyone seen or heard about a game called 'Stellaris'?
(04-24-2016, 09:26 AM)DaBayleySaur Wrote: [ -> ]Anyone seen or heard about a game called 'Stellaris'?

Vaguely recall hearing the name
not exactly umby but still I got to drop it here
[Image: tumblr_o653v8dRXU1su2vz4o1_1280.png]
[Image: 42827592A0AFE766EE43DF1BB1552CE180A2A20C]
(04-24-2016, 09:26 AM)DaBayleySaur Wrote: [ -> ]Anyone seen or heard about a game called 'Stellaris'?
Yup, looking forward to it.
New plane came in last night, they pulled it into the hangar today. The registration number? 666. Not ominous at all.
Okay so I went on Stack Exchange, to consider making an account to get help for my script problems, and I came across the Worldbuilding section...
There was an innocuous question - someone wanted a good in-universe reason for True Names to hold power over powerful Demons, without using the obvious "it magically forces them to obey"...

This answer is amazing and long and holy crap I might have to remember this for future plagarism reference
AAAAAAAAAAAAAAAARRRRRRRRRRRRRRGGGGGGGGGGGGGHHHHHHHHHHHHHHHH
I give up.
I give up.
I give up.

I've rewritten the offending section of code every single way I could think to.
I finally found a way that worked, by avoiding the issue altogether by doing it a different way...
Except now the equivalent isn't working either. And this time there is NO error message!
Aʟl øF Thɪs ғᴏᖇ α $IмPlΞ ᴘгOᙅεdUrƐ тʜaᴛ I cOUŁᴅ hλVe δσɴᴇ ᙏΔɴυALly ᴀŁReαDƳ iη †нIs TǀᴍƐ ΔʟвΣIt шιTн mUᙅн TIмε ᴡΛStεÐ.
(04-24-2016, 01:26 PM)SCN-3_NULL Wrote: [ -> ]not exactly umby but still I got to drop it here
[Image: tumblr_o653v8dRXU1su2vz4o1_1280.png]
YAAAHHHSSS
Work in progress thing for a friend

Figured you guys would like to see it cause Vali

(04-23-2016, 01:25 PM)SCN-3_NULL Wrote: [ -> ]


why bring two instead you can bring one!
[Image: COnqllKW8AA97Qy.jpg]

Yes



The stanl3y parable