Jump to content

A program request.

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
trbbl

trbbl

    Newbie

  • Members
  • Pip
  • 3 posts
Hello,

I'm looking for someone who would create a very simple program (as far as I know. I don't know a thing about coding though) from this code:

<?php


$files = array_merge(glob("MAP-NAME-HERE"));;


// C = unsigned char---  B   G   R  A

$new_top = pack("CCCC", 0, 0, 0, 0); // top 

$new_bot = pack("CCCC", 0, 0, 0, 0); // bottom


echo "Found " . count($files) . " file(s) - processing...\n\n";


$i = 1;


foreach($files as $file){

	echo $i . ". " . $file . " ... ";

	$contents = file_get_contents($file, FILE_BINARY);

	// replace that 

	$mod = substr_replace($contents, $new_top, 4+1+38+1+24, 4);

	$mod = substr_replace($mod, $new_bot, 4+1+38+1+24+4, 4);

	// overwrite

	file_put_contents($file, $mod);

	echo " ... OK!\n";

	$i++;

}


?>


What does it do? It changes the background color of maps in a game called Soldat, 2D sidescrolling action game. You should try it, honestly.

What I am looking for is some kind of an user interface, a simple one. It should contain at least these thingies:

---------------------------------
Map name: [---]
Top: [RR][GG][BB]
Bottom: [RR][GG][BB]
[Execute]
---------------------------------

If it's somehow possible, I'd love to see an integrated colour picker, too. For both top and bottom colours. Also, it should work in either the directory the program is, or *\homedir\Maps. Since I have no clue how this all works, it's up to you to decide.

I would be very thankful if someone had the time and motivation to make the program. + I'm sorry if this is not the correct place to post this.

Regards,
MikkoI'm looking for someone who would create a very simple program (as far as I know. I don't know a thing about coding though) from this code:simple

#2
plyrjohn404

plyrjohn404

    Newbie

  • Members
  • Pip
  • 6 posts
This is php programming, i don't know how it will change a map in a game directory.

#3
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
What are you looking to spend on this? Feel free to email me.

#4
trbbl

trbbl

    Newbie

  • Members
  • Pip
  • 3 posts
I am sorry but I am not able to pay to whoever would make the program. I was hoping that someone would have the time to do this for free. It's not "has to be done" job.

The program itself would not be that useful, since you can execute it via command promt. This would only make things a little easier to me and people who are using the script.

Thanks for contributing anyway, both of you!