Go Back   ZeldaPower Forums > ZeldaPower > Creativity Corner

Reply
 
Thread Tools Display Modes
Old Jul. 5, 2015, 03:06 AM   #1
Pirate
Banned
Hero
 
Join Date: Aug. 20, 2007
Location: up to date
Posts: 3,530
Send a message via Skype™ to Pirate
Default Pirate software



So now I'm making stuff not only for [name a Linux OS], but also Windows it turns out.
Not for Mac OSX though, despite OSX and all Linux OSes being based on the same UNIX kernel architecture. I just don't have OSX, so I can't test it.
Shouldn't be too much trouble for you Mac (though especially Linux) users to compile my stuff, so I'll be including my project's source code with each release.

Gonna use this thread for posting the programs I make, not all of them of cours. Most of what I write is purely functional, boring stuff. That is, unless you're a huge nerd.

Suggestions for improvements and bug reports are very welcome.

Here's the first release and a short manual.

SLIDERMAN v1.2
(Download link)
########
- What's new in version 1.2?
- Unlockable content (treasure.mp3) to motivate you lazy shits. It's an .mp3, though it has been rendered unplayable until you've won the game once.
- Source code makes use of new libraries and extensions, and is consecutively untidy as fuck.
########
- .ZIP Archive contents:
- Windows executable (slider_puzzle.exe)
- Binaries required on Windows (smpeg2.dll, SDL2.dll, SDL2_mixer.dll)
- Unlockable content (treasure.mp3)
- Source code directory (src):
- Compiler instructions for OSX/Linux (Makefile)
- Source code (slider_puzzle.c, "some hex shit.h")
########
- Playing the game:
- Basic controls:
- Exit the game by either pressing the Escape key on your keyboard or close the window as normal.
- Slide game tiles around using arrow keys on your keyboard.
- How to play:
Sort the game tiles, either from bright to dark or reversely.
Once this is done, you'll be greeted by a pretty cool-looking screen, with the now unlocked ''treasure.mp3" playing in the background.

Let's assume we're sorting from bright to dark;
Each tile in a horizontal line must be brighter than all tiles in below lines. Each horizontal line is sorted left to right such that the leftmost tile is the brightest, and so on.

Example by image, where 1 is the brightest, 2 is the next brightest, 3 is brighter than 4, and 8 is the darkest tile.
Remember that reverse sorting is also possible.

Last edited by Pirate; Jul. 5, 2015 at 05:35 AM. Reason: updated the manual
Pirate is offline   Reply With Quote
Old Jul. 23, 2015, 05:56 PM   #2
ifm2181
The Official Opposition
Triforce of Courage
 
ifm2181's Avatar
 
Join Date: Aug. 10, 2001
Location: Butts
Posts: 61,358
Default Re: Pirate software

OI POIRATE
I will pay you 700 quatloos to make a program that simply takes an image and slices it up appropriately into an icosahedral projection and lets you save that image

I just want to make d20 maps you guys srsly
__________________
Praise Odin, Kek and Donald Trump okay
ifm2181 is offline   Reply With Quote
Old Jul. 27, 2015, 07:02 PM   #3
Pirate
Banned
Hero
 
Join Date: Aug. 20, 2007
Location: up to date
Posts: 3,530
Send a message via Skype™ to Pirate
Default Re: Pirate software

You mean like a program that lets you make wrapping paper for your dice?

I'll get started on that once I'm done with my current code thingie.
Pirate is offline   Reply With Quote
Old Jul. 27, 2015, 08:04 PM   #4
ifm2181
The Official Opposition
Triforce of Courage
 
ifm2181's Avatar
 
Join Date: Aug. 10, 2001
Location: Butts
Posts: 61,358
Default Re: Pirate software

well, I meant more so you can print out a large one and cut it out to make your own pseudo-globes
__________________
Praise Odin, Kek and Donald Trump okay
ifm2181 is offline   Reply With Quote
Old Jul. 28, 2015, 02:08 PM   #5
Pirate
Banned
Hero
 
Join Date: Aug. 20, 2007
Location: up to date
Posts: 3,530
Send a message via Skype™ to Pirate
Default Re: Pirate software

Something like this, right?



You want folding guides with that?
Pirate is offline   Reply With Quote
Old Jul. 28, 2015, 03:23 PM   #6
ifm2181
The Official Opposition
Triforce of Courage
 
ifm2181's Avatar
 
Join Date: Aug. 10, 2001
Location: Butts
Posts: 61,358
Default Re: Pirate software

each triangle needs to be rotated properly or else the bits won't line up properly

like this


if you cut this out and fold each triangle, the edges should all match up to create a sort of weird globe

why am I not using what made this you ask? cause what made this icosahedral projection doesn't allow you to use your own things, it only makes random landmasses, and if I were able to locate the raw code, raw code is worthless to me cause I'm not a programmer
__________________
Praise Odin, Kek and Donald Trump okay
ifm2181 is offline   Reply With Quote
Old Jul. 28, 2015, 04:46 PM   #7
Pirate
Banned
Hero
 
Join Date: Aug. 20, 2007
Location: up to date
Posts: 3,530
Send a message via Skype™ to Pirate
Default Re: Pirate software

Sure thang mang.
I can't do image stretching business though. That's linear algebra magic I haven't mastered yet.

Here's how I'm planning to make the interface work out:
User puts down the first triangle, defining it's rotation and size; there are four possible rotations, this way the edge thing will work out.
User lays out the remaining triangles, triangles are forced to remain adjacent to some existing triangle.
Edges of existing triangles are highlighted as negatives of original pixels.
Triangles are wrangled using keyboard and/or mouse.
User can undo triangles like brush strokes in MS Paint.
The user can finally move/rotate the original image and add optional folding guides before saving the image.


Sound good? I don't think there's a way of getting good results by letting the machine do it automatically. P:


You are now
Code:
one
in queue.
Please stand by, there'll have a service representative with you shortly.
*music*
Pirate is offline   Reply With Quote
Old Jul. 28, 2015, 04:48 PM   #8
Pirate
Banned
Hero
 
Join Date: Aug. 20, 2007
Location: up to date
Posts: 3,530
Send a message via Skype™ to Pirate
Default Re: Pirate software

imgFucker v1.0
Download link
########
- Summary:
A program that lets you play around with the color values of a given image file. It makes for a good trip sitter when you're on acid because it's automatic.
The image file will not be modified.
Using smaller images increases performance. :C
########
- .ZIP Archive contents:
- Script to start the program ("start script.bat")
- Example images (alt_image.png, image.jpg)
- Font used by the program (cour.tff)
- Windows executable (imgFucker.exe)
- Binaries required on Windows (libfretype-6.dll, libjpeg-9.dll, libpng16-16.dll, libtiff.dll, libwebp.dll, SDL2.dll, SDL2_image.dll, SDL2_tff.dll, zlib1.dll)
- Source code directory (src):
- Compiler instructions for OSX/Linux (Makefile)
- Source code (imgFucker.c, UI_slider.c, UI_slider.h, UI_toggle.c, UI_toggle.h)
########
- Specifying an image:
The program is intended to be started using a script (see archive contents) so that the user can specify an image file of their choosing.
The user can change which image the want to play with by editing the script. The script contains instructions for how to do so, which are not at all hard to follow.

The script can be bypassed using a shortcut to the executable, such that the image file path is passed as an argument to the executable.

If no arguments are passed to the executable - e.g. not running via the provided script - the program will default to using "image.jpg" as it's image file. I.e. make sure "image.jpg" exists within the directory before double-clicking "imgFucker.exe" or whatever.
- Using the program
In the bottom-right corner is a colored rectangle to give some sort of oversight. The user interface lies above it.
There are two toggle buttons and a slider for each color property (of which there are three):
- Increment slider. Defines the speed of change in color property.
- Start / Stop button. Allows applying the color property unto the image. Button text indicates the opposite of the current state.
- Wrap / Bounce button. Changes the mode in which the color property is applied to the image. Button text indicates current state.

EDIT for screenshot:

Last edited by Pirate; Jul. 28, 2015 at 05:17 PM.
Pirate is offline   Reply With Quote
Old Jul. 28, 2015, 06:59 PM   #9
ifm2181
The Official Opposition
Triforce of Courage
 
ifm2181's Avatar
 
Join Date: Aug. 10, 2001
Location: Butts
Posts: 61,358
Default Re: Pirate software

Quote:
Originally Posted by Pirate View Post
Sure thang mang.
I can't do image stretching business though. That's linear algebra magic I haven't mastered yet.

Here's how I'm planning to make the interface work out:
User puts down the first triangle, defining it's rotation and size; there are four possible rotations, this way the edge thing will work out.
User lays out the remaining triangles, triangles are forced to remain adjacent to some existing triangle.
Edges of existing triangles are highlighted as negatives of original pixels.
Triangles are wrangled using keyboard and/or mouse.
User can undo triangles like brush strokes in MS Paint.
The user can finally move/rotate the original image and add optional folding guides before saving the image.


Sound good? I don't think there's a way of getting good results by letting the machine do it automatically. P:


You are now
Code:
one
in queue.
Please stand by, there'll have a service representative with you shortly.
*music*
that sounds cool, let's try this
I will be your official beta tester


also that imgfucker totally tricked me into thinking you had already compiled it somehow
__________________
Praise Odin, Kek and Donald Trump okay
ifm2181 is offline   Reply With Quote
Old Jan. 28, 2016, 07:11 AM   #10
Pirate
Banned
Hero
 
Join Date: Aug. 20, 2007
Location: up to date
Posts: 3,530
Send a message via Skype™ to Pirate
Default Re: Pirate software

An actual website you can try out

http://quizzer.club/

you can do quizzes and publish quizzes yourself

sadly, it's still sort of in development mode; also not in english

Last edited by Pirate; Mar. 23, 2016 at 06:19 PM.
Pirate is offline   Reply With Quote
Old Dec. 24, 2017, 07:25 AM   #11
Pirate
Banned
Hero
 
Join Date: Aug. 20, 2007
Location: up to date
Posts: 3,530
Send a message via Skype™ to Pirate
Default Re: Pirate software

download link

So far so good -
Got one mysterious memory leak somewhere, plus I want to put on some features like e.g. moving the shape around while adding triangles, so it's not 100% done yet.
My repository server's down due to renovations at uni, so atm I don't have a swanky web page where you can download the most recent version.
To be updated


Starting via window manager:
Executing will run the program using a default image file.
Drag and drop an image onto the executable file, on Windows you can also use the 'start.bat' file to browse for an image file.


Rotating and resizing is done using the mouse-wheel, right-click changes between rotating and resizing. You can only resize/rotate your first triangle.
When saving an image, an image will pop up in the "output" folder, with a unique filename based on the image content.



-


Compiling on Linux:
Makefile and source code are provided. Build dependencies are SDL2, SDL2_image, and SDL2_ttf.

Supported extensions for input files:
- .bmp, .dib
- .gif
- .jpg, .jpeg, .jpe, .jif, .jfif, .jfi
- .iff, .lbm
- .pcx
- .png
- .pbm, .pgm, .ppm, .pnm
- .tga, .icb, .vda, .vst
- .tif, .tif
- .webp
- .xcf
- .xpm
- .xv
Pirate is offline   Reply With Quote
Old Dec. 24, 2017, 11:37 AM   #12
Niroht
h̬̓̉ͧ̔́̚ẻ͊ͪ͊ͯ͌ͥ͡ ̛̜̎̓ͦ͊̈
Triforce of Wisdom
 
Niroht's Avatar
 
Join Date: Aug. 3, 2004
Location: Yes
Posts: 36,204
Send a message via Yahoo to Niroht
Default Re: Pirate software

You should use GitHub for repo
__________________
t̀h̴̢̧̧͠ę̷́͜ ̛̀͘s̴̀̕͢o̡ņ̵̨͢͡g̶̢̢͡͝ ҉͘ţ̡͏h̴͡
I̮̯̮͈ͮ̀ͥ̐ṭ̜̮̹͕͛ͪ ̧̹̥̫̙͉͂ͯi͓̤̫̤͕̪s̨̽̉ͦ
Niroht is offline   Reply With Quote
Old Dec. 24, 2017, 02:55 PM   #13
Pirate
Banned
Hero
 
Join Date: Aug. 20, 2007
Location: up to date
Posts: 3,530
Send a message via Skype™ to Pirate
Default Re: Pirate software

Yea, why not

I use GoGit, written in golang. Exactly the same as GitHub, but the webpage looks a little different and it's on my remote machine.
When I signed up for Git years ago, I didnt like the restriction on number of public repos for free accounts, so after a while I just set up my own. No idea if that restriction's still there.
Though one thing I really like that GitHub has vs. what I've got running is this:

unf -



I'm kinda inclined towards writing some kind of browser game in RoR next
Ideas are most welcome, idgaf if text-based or animated
Pirate is offline   Reply With Quote
Old Dec. 25, 2017, 05:05 AM   #14
Niroht
h̬̓̉ͧ̔́̚ẻ͊ͪ͊ͯ͌ͥ͡ ̛̜̎̓ͦ͊̈
Triforce of Wisdom
 
Niroht's Avatar
 
Join Date: Aug. 3, 2004
Location: Yes
Posts: 36,204
Send a message via Yahoo to Niroht
Default Re: Pirate software

If you're just looking for a coding challenge, www.adventofcode.com is a good one.

Also Git and GitHub are two different things - maybe the limit you saw was on Git proper?

Also my GitHub: https://github.com/Niroht
__________________
t̀h̴̢̧̧͠ę̷́͜ ̛̀͘s̴̀̕͢o̡ņ̵̨͢͡g̶̢̢͡͝ ҉͘ţ̡͏h̴͡
I̮̯̮͈ͮ̀ͥ̐ṭ̜̮̹͕͛ͪ ̧̹̥̫̙͉͂ͯi͓̤̫̤͕̪s̨̽̉ͦ
Niroht is offline   Reply With Quote
Old Dec. 27, 2017, 10:13 AM   #15
Pirate
Banned
Hero
 
Join Date: Aug. 20, 2007
Location: up to date
Posts: 3,530
Send a message via Skype™ to Pirate
Default Re: Pirate software

That's kind of a relief, lately I've been mistaking you for being this guy: https://github.com/niroth


Pretty sure it was on GitHub, otherwise setting up the service on my own machine wouldnt've changed much, as both use Git..
I remember there being a max of three or five repos.
Kinda hard to tell now though - doesn't seem like the limit's there anymore


That calendar is pretty cool, but I guess I'll rather jump on it come next advent.
Pirate is offline   Reply With Quote
Old Dec. 27, 2017, 10:52 PM   #16
Niroht
h̬̓̉ͧ̔́̚ẻ͊ͪ͊ͯ͌ͥ͡ ̛̜̎̓ͦ͊̈
Triforce of Wisdom
 
Niroht's Avatar
 
Join Date: Aug. 3, 2004
Location: Yes
Posts: 36,204
Send a message via Yahoo to Niroht
Default Re: Pirate software

/me looms at the guy's repo.




....eww, php
__________________
t̀h̴̢̧̧͠ę̷́͜ ̛̀͘s̴̀̕͢o̡ņ̵̨͢͡g̶̢̢͡͝ ҉͘ţ̡͏h̴͡
I̮̯̮͈ͮ̀ͥ̐ṭ̜̮̹͕͛ͪ ̧̹̥̫̙͉͂ͯi͓̤̫̤͕̪s̨̽̉ͦ
Niroht is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:08 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 1999 - 2015 ZeldaPower.com