fodev.net

Other => Offtopic => Topic started by: Ganado on May 22, 2014, 07:46:09 am

Title: Programming Thread!
Post by: Ganado on May 22, 2014, 07:46:09 am
Anyone want to share some of the stuff they're programming or making?

I made a mandelbrot. Looks pretty legit.
http://i1093.photobucket.com/albums/i434/GanadoFO/Mandelbrot1200x800_gradient_photoshop.png
Title: Re: Programming Thread!
Post by: JovankaB on May 31, 2014, 01:20:57 pm
Nice, I never managed to script any fractal ;D

And that's what I made recently when I had nothing better to do - Fallout pixel characters:

(https://i.cubeupload.com/dad0Jc.gif)
Title: Re: Programming Thread!
Post by: raynor009 on May 31, 2014, 06:27:40 pm
I started a little project for myself since I am trying to learn various web programming languages. I'm building a fallout text based browser game. Something similar to Battleknight if anyone here played it :D

(http://s12.postimg.org/60vlcdgh7/show.png)
Title: Re: Programming Thread!
Post by: hexer on May 31, 2014, 06:31:33 pm
Nice, I never managed to script any fractal ;D

And that's what I made recently when I had nothing better to do - Fallout pixel characters:

(https://i.cubeupload.com/dad0Jc.gif)

LOL is that Sulik on the right?
Title: Re: Programming Thread!
Post by: JovankaB on May 31, 2014, 08:31:08 pm
I started with Sulik as a reference but I didn't try very hard to accurately portray him (Sulik had less hair for example, not to mention a sledgehammer would fit him better).
Title: Re: Programming Thread!
Post by: hexer on May 31, 2014, 08:48:18 pm
He's great! Grampy Bone gave him away! ;)
Title: Re: Programming Thread!
Post by: JovankaB on May 31, 2014, 09:16:50 pm
I added Lynette with a pet floater on a leash (I know it doesn't make any sense, but she was easy to make. Later I might change her place with some robed Master's servant).

(https://i.cubeupload.com/fbXCdw.gif)


I started a little project for myself since I am trying to learn various web programming languages. I'm building a fallout text based browser game. Something similar to Battleknight if anyone here played it :D


I fixed the link to screenshot, because it didn't work. A browser game is more than a little project IMO. Good luck with it.
Title: Re: Programming Thread!
Post by: Wipe on June 01, 2014, 04:54:44 am
This is great ;D
Title: Re: Programming Thread!
Post by: Ganado on June 01, 2014, 06:11:07 am
I love the floater!
Title: Re: Programming Thread!
Post by: hexer on June 01, 2014, 10:35:16 am
Pixel art reminds me of Fillauth - a Fallout demake :D

http://www.oxeyegames.com/fillauth/

Title: Re: Programming Thread!
Post by: Ganado on July 07, 2014, 11:08:05 pm
Working on a simple .fomap viewer, I realize this is basically just reinventing the wheel, but it's just for practice. Gonna look into how to read .frm files or a script for converting it to .png. I'm sure people have already done things like that on NMA, so gonna search there.

(http://i1093.photobucket.com/albums/i434/GanadoFO/mapper.png)
Title: Re: Programming Thread!
Post by: JovankaB on July 08, 2014, 11:12:40 am
Here you can find articles about all Fallout 2 formats:

http://falloutmods.wikia.com/wiki/Category:Fallout_and_Fallout_2_file_formats

Some of them are difficult like the video or sound, but DAT2, PAL and FRM are
pretty straightforward if you are familiar with reading binary files.

What language do you use?
Title: Re: Programming Thread!
Post by: Ghosthack on July 08, 2014, 06:29:04 pm
I wrote some C# code for loading and drawing fomaps a few months ago. Originally the idea was to create an interactive map generator with sliders for different kinds of parameters, but I lost interest in it.

It also loads DAT files (via https://github.com/rotators/tools/tree/master/DATLib) for FRM resources and converts them to .NET bitmaps using some code that Wipe ported: https://github.com/rotators/FOCommon/blob/master/Graphic/FalloutFrm.cs

Source is available at https://github.com/rotators/fonline-mapgen however it's very alpha, so you need to setup paths directly in https://github.com/rotators/fonline-mapgen/blob/master/fonline-mapgen/UGLY.cs right now. Also rendering is pretty slow since it uses GDI+. Position logic is in https://github.com/rotators/FOCommon/blob/master/Maps/FOHexMap.cs

Result looks like this:
(https://i.imgur.com/u4s9NYM.jpg)
Title: Re: Programming Thread!
Post by: Ganado on July 09, 2014, 02:12:28 am
That looks remarkable, I hadn't checked out rotators github that much, only the 2238 one mostly. Really glad you guys share the source for tools like that.

Interesting to see the similarity in some code
Code: [Select]
            float x = ((hex.Y * hexH) - (hex.X * hexW));
            float y = (Math.Abs((hex.Y + (hex.X / 2))) * hexHEdge);

this is mine:
Code: [Select]
        tile_pos.x = -(hex.x/2.f)*xL + (hex.y/2.f)*xR;
        tile_pos.y =  (hex.x/2.f)*yL + (hex.y/2.f)*yR;
(Only tested mine for even hexes, like [40, 62])

What language do you use?
The little thing I made was in C++ using SFML library. Even with Ghosthack's post, I might still want to try making my little working program just because it's good practice for me. Maybe I might learn C# stuff later.

Actually reading data from a file for tile data:

Edit (13 July): Okay this is torture, especially working with the FRMs, I'm done reinventing the wheel. I think I'm just gonna read more programming books.

Edit (16 July): I got back into it, ready for more torture. Trying to read the frm data, so far it is going well. Thank devs for those .LST files... very helpful.
Title: Re: Programming Thread!
Post by: JovankaB on July 20, 2015, 06:52:26 pm
Progress Every Year ™

(https://i.cubeupload.com/1gjyyg.png)
Title: Re: Programming Thread!
Post by: Wipe on September 09, 2016, 01:42:10 am
Progress Every Year ™

Any chance for side view [of VD] this year? ;D
Title: Re: Programming Thread!
Post by: JovankaB on September 09, 2016, 01:58:37 pm
Any chance for side view [of VD] this year? ;D

Not sure, only 4 months left and I didn't even start the side view yet ;)