Author Topic: Game and Font Installer  (Read 7717 times)

0 Members and 1 Guest are viewing this topic.

Merlandese

  • 静態の遊子
  • *
  • Tier 7
  • **
  • Posts: 5095
  • Gender: Male
  • ---
  • Current Mood: happy happy
Game and Font Installer
« on: December 22, 2013, 11:41:45 AM »
I'm looking to pay for someone to make an installer for Social Caterpillar.

I need the installer to do two things:

01. Install Social Caterpillar
02. Install a font

This is a paid gig worth a minimum of $100.

Thank you!
« Last Edit: January 04, 2014, 01:02:02 AM by Merlandese »

Tumbles

  • 海が私の心です。
  • *
  • Tier 7
  • **
  • Posts: 3956
  • Gender: Male
  • I am who I am, but not yet.
    • Big Palooka
  • Current Mood: cheerful cheerful
Re: Paying for Game and Font Installer
« Reply #1 on: December 22, 2013, 05:11:57 PM »
I've messed around with installers before. :seraismile: Dunno how I'd handle the font though. I'll give it a shot when I get home tonight. :) If someone else does it by then, that's ok.

Spoiler: show


                                         

~

Merlandese

  • 静態の遊子
  • *
  • Tier 7
  • **
  • Posts: 5095
  • Gender: Male
  • ---
  • Current Mood: happy happy
Re: Paying for Game and Font Installer
« Reply #2 on: December 23, 2013, 02:25:40 AM »
Alright, man. You get first dibs.

This job is taken for now.

Merlandese

  • 静態の遊子
  • *
  • Tier 7
  • **
  • Posts: 5095
  • Gender: Male
  • ---
  • Current Mood: happy happy
Re: Game and Font Installer
« Reply #3 on: January 04, 2014, 01:03:44 AM »
The job is still open, and the minimum price has been raised to $100!

All I need is an installer that, when executed, installs both an RMXP game and a particular font into the font folder of Windows. This sounds super simple, but it's beyond me. So consider this a bounty hunt: whomever succeeds gets the reward. :P

Raxus

  • とてもかっこいいですよ!
  • Mod-Suspect
  • Tier 7
  • *
  • Posts: 10102
  • Gender: Male
  • Ignore the Hats! I don't have a problem!
    • Cupcakes So Sweet and Tasty~
  • Current Mood: playful playful
Re: Game and Font Installer
« Reply #4 on: January 04, 2014, 01:54:58 AM »
Consider contacting Zeriab. I have no idea where he hides, but that man is GREAT with scripts and he'd probably be willing to do it. (I know he sometimes lurks around here and I *think* he's also at the RPG Maker forums.

Tumbles

  • 海が私の心です。
  • *
  • Tier 7
  • **
  • Posts: 3956
  • Gender: Male
  • I am who I am, but not yet.
    • Big Palooka
  • Current Mood: cheerful cheerful
Re: Game and Font Installer
« Reply #5 on: January 04, 2014, 02:16:31 AM »
Consider contacting Zeriab. I have no idea where he hides, but that man is GREAT with scripts and he'd probably be willing to do it. (I know he sometimes lurks around here and I *think* he's also at the RPG Maker forums.

I think he's talking about a windows installer that does both. :seraismile: (I tried, but didn't get anywhere.)

There is a font auto-installer for rmxp, but I think it's pretty outdated, because it doesn't seem to work.

Spoiler: show


                                         

~

Zeriab

  • Tier 2
  • *
  • Posts: 44
  • Current Mood: happy happy
Re: Game and Font Installer
« Reply #6 on: January 07, 2014, 10:12:43 AM »
I don't have any experience creating windows installers. I can tell you that typically fonts are located at %windir%\Fonts

*hugs*

Fl0x

  • Guest
Re: Game and Font Installer
« Reply #7 on: January 07, 2014, 10:49:32 AM »
But simply copying the font to that directory won't do anything, you also need to register it in the registry.

Zeriab

  • Tier 2
  • *
  • Posts: 44
  • Current Mood: happy happy
Re: Game and Font Installer
« Reply #8 on: January 07, 2014, 06:34:57 PM »
According to MSDN copying the font to that directory is good enough if you restart the machine afterwards.

With AddFontResource from Gdi32.dll we can add a font temporarily until system restart. Doing both is required for what we normally consider as installing a font.

Technically installing a font temporarily is easy in a script:
Code: [Select]
path = Dir.pwd + '/fontname.ttf' # File placed in same directory as Game.exe

AddFontResource = Win32API.new('gdi32', 'AddFontResource', 'p', 'n')  # Input: string-pointer, Output: integer

path += "\000" # String must be null-terminated
success = AddFontResource.call(path)
unless success != 0
  throw "Font installation failed"
end

The problem with this approach is that once you run the script the RGSS Player will already have looked up available fonts. You must therefore shutdown the current session and start anew. Furthermore actually checking whether the font is available is a huge bother. This is basically reason why Font installer scripts often are funky.
Having a game installer install the fonts makes sense.

*hugs*

Merlandese

  • 静態の遊子
  • *
  • Tier 7
  • **
  • Posts: 5095
  • Gender: Male
  • ---
  • Current Mood: happy happy
Re: Game and Font Installer
« Reply #9 on: January 13, 2014, 01:39:43 PM »
Thanks for all of the help with that, guys! Lucky for me, Tumbles manned up and solved all of my problems, like a champ.

I appreciate you guys looking into it. :)

Unimaginative Username

  • Guest
Re: Game and Font Installer
« Reply #10 on: January 13, 2014, 05:39:53 PM »
Thanks for all of the help with that, guys! Lucky for me, Tumbles manned up and solved all of my problems, like a champ.

I appreciate you guys looking into it. :)

Just out of interest, what did he do to get both the font and the game to install at the same time?

Tumbles

  • 海が私の心です。
  • *
  • Tier 7
  • **
  • Posts: 3956
  • Gender: Male
  • I am who I am, but not yet.
    • Big Palooka
  • Current Mood: cheerful cheerful
Re: Game and Font Installer
« Reply #11 on: January 13, 2014, 05:46:21 PM »
Thanks for all of the help with that, guys! Lucky for me, Tumbles manned up and solved all of my problems, like a champ.

I appreciate you guys looking into it. :)

Just out of interest, what did he do to get both the font and the game to install at the same time?

I made an installer that did both. :seraismile:

Spoiler: show


                                         

~

Unimaginative Username

  • Guest
Re: Game and Font Installer
« Reply #12 on: January 13, 2014, 06:20:21 PM »
I made an installer that did both. :seraismile:

...

Tumbles

  • 海が私の心です。
  • *
  • Tier 7
  • **
  • Posts: 3956
  • Gender: Male
  • I am who I am, but not yet.
    • Big Palooka
  • Current Mood: cheerful cheerful
Re: Game and Font Installer
« Reply #13 on: January 13, 2014, 06:42:33 PM »
I made an installer that did both. :seraismile:

...

Not sure what else you're looking for. XD

I just made it so everything installs to "Program Files -> Social Caterpillar", except the font, which goes in Fonts.

Spoiler: show


                                         

~

Unimaginative Username

  • Guest
Re: Game and Font Installer
« Reply #14 on: January 13, 2014, 07:05:19 PM »
So did you place the font into Fonts in the way Zeriab said or was it something different?