Author Topic: Programming Thread!  (Read 45715 times)

Offline Ganado

  • Moderator
  • Dishonest Abe
Programming Thread!
« 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
Error while opening cfg file: spawnnpc.cfg
Shit! Damn admins! Always ruining my fun! I guess I'll talk to them. WITH MY FISTS!!!! No seriously, I will write them a nice email or make a thread on the forums or something. Thanks!

JovankaB

  • Guest
Re: Programming Thread!
« Reply #1 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:


Re: Programming Thread!
« Reply #2 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

« Last Edit: May 31, 2014, 09:23:37 pm by b__B »

Re: Programming Thread!
« Reply #3 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:



LOL is that Sulik on the right?

JovankaB

  • Guest
Re: Programming Thread!
« Reply #4 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).
« Last Edit: May 31, 2014, 08:37:41 pm by b__B »

Re: Programming Thread!
« Reply #5 on: May 31, 2014, 08:48:18 pm »
He's great! Grampy Bone gave him away! ;)

JovankaB

  • Guest
Re: Programming Thread!
« Reply #6 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).




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.
« Last Edit: June 01, 2014, 08:01:35 am by b__B »

Offline Wipe

  • Rotator
  • Random is god
Re: Programming Thread!
« Reply #7 on: June 01, 2014, 04:54:44 am »
Games are meant to be created, not played...

Offline Ganado

  • Moderator
  • Dishonest Abe
Re: Programming Thread!
« Reply #8 on: June 01, 2014, 06:11:07 am »
I love the floater!
Error while opening cfg file: spawnnpc.cfg
Shit! Damn admins! Always ruining my fun! I guess I'll talk to them. WITH MY FISTS!!!! No seriously, I will write them a nice email or make a thread on the forums or something. Thanks!

Re: Programming Thread!
« Reply #9 on: June 01, 2014, 10:35:16 am »
Pixel art reminds me of Fillauth - a Fallout demake :D

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


Offline Ganado

  • Moderator
  • Dishonest Abe
Re: Programming Thread!
« Reply #10 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.

« Last Edit: July 07, 2014, 11:10:36 pm by Ganado »
Error while opening cfg file: spawnnpc.cfg
Shit! Damn admins! Always ruining my fun! I guess I'll talk to them. WITH MY FISTS!!!! No seriously, I will write them a nice email or make a thread on the forums or something. Thanks!

JovankaB

  • Guest
Re: Programming Thread!
« Reply #11 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?
« Last Edit: July 08, 2014, 02:09:48 pm by b__B »

Offline Ghosthack

  • Rotator
  • Bytecruncher
Re: Programming Thread!
« Reply #12 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:

Offline Ganado

  • Moderator
  • Dishonest Abe
Re: Programming Thread!
« Reply #13 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.
« Last Edit: July 16, 2014, 06:10:29 am by Ganado »
Error while opening cfg file: spawnnpc.cfg
Shit! Damn admins! Always ruining my fun! I guess I'll talk to them. WITH MY FISTS!!!! No seriously, I will write them a nice email or make a thread on the forums or something. Thanks!

JovankaB

  • Guest
Re: Programming Thread!
« Reply #14 on: July 20, 2015, 06:52:26 pm »
Progress Every Year ™