MaCoPiX Mascot Constructive Pilot for X

Window managers, icon programs, widgets, etc.
Post Reply
Message
Author
goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

MaCoPiX Mascot Constructive Pilot for X

#1 Post by goingnuts »

Introduction
Download macopix-1.7.4.pet
Download Mascots
Howto:
Install macopix-1.7.4.pet - should work on every Puppy version.
Launch via menu Fun/macopix.
You will be asked to install a mascot - download link for mascots above.
Follow the instructions to install the mascot.
You might need to restart macopix after installation of a mascot.

Translation:

The installed mascot files are in /root/.macopix. The .mcpx files holds the ballon text. Translations would be welcome.
Attachments
macopix.png
(75.63 KiB) Downloaded 514 times

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#2 Post by MochiMoppel »

Ahhh, something useful at last! How could I ever spend my lonely hours in the Puppy forum without Chibi-chan? Image
But a nagging question remains: What is it that Maki-chan was trying to tell me? Will I ever know? She speaks EUC-JP, I don't. Geany claims to understand, but lies, old Firefox tries hard and understands a few words. But I must know EVERYTHING! Oh Maki-chan, learn UTF...please!!!
Attachments
Maki-chan.png
(26.53 KiB) Downloaded 481 times

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#3 Post by goingnuts »

I would like to know as well...
But might be boring to have same response night after night...
You can install fortune - download pet and run below script before starting macopix.
The fortune pet contains...Startrek citations :lol:..but they give the mascot a different "touch".

Code: Select all

#!/bin/sh
#Script using fortune to generate "random" text input to macopix mascots
#May2015 goingnuts
#find all .mcpx files in /root/.macopix
for X in /root/.macopix/*.mcpx; do
  LINENUMBER=0
  while read LINE ; do
    LINENUMBER=$(expr $LINENUMBER + 1) 
    case $LINE in
      click_word*) #here we want to replace the line with our new one
        FORTUNE=$(fortune | cut "-" -f1 | tr "\n" " ")
        #FORTUNE=$(echo $FORTUNE | sed "s/\./\.%n%a/g")
        FORTUNE=$(echo $FORTUNE | sed "s/\,/\,%n/g")
        FORTUNE=$(echo $FORTUNE | sed "s/\?/\?%a/g")
        FORTUNE=$(echo $FORTUNE | sed "s/\!/\!%a/g")
        FORTUNE="click_word="${FORTUNE}
        sed -i "${LINENUMBER}s/${LINE}/${FORTUNE}/" $X
        sync
        ;;
    esac
  done < $X
done
Be aware that all your *.mcpx will be changed and only way to restore is to install the original mascot again.
Attachments
test2.png
(36.3 KiB) Downloaded 342 times
test.png
(58.58 KiB) Downloaded 367 times

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#4 Post by MochiMoppel »

MaCoPiX's FAQ wrote:[Case of Gtk+2.x]
If you are using Gtk+2.x, MaCoPiX (after ver1.2.1) automatically converts the character code in mascot files (EUC-JP) to UTF-8 in order to understand characters under Gtk+2.x . So, if you have any Japanese Kanji fonts in your X environment, you can see the original balloon message in Japanese.
I have Japanese fonts installed, but the UTF-8 conversion doesn't seem to work ..the mystery continues :cry:

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#5 Post by goingnuts »

Hmm...the pet I provided is gtk1...might explain something. I did that to be able to do a static linked bin that should work on every Puppy version known to man.

Post Reply