Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 06 Dec 2016, 18:12
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
MaCoPiX Mascot Constructive Pilot for X
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
goingnuts

Joined: 07 Dec 2008
Posts: 854

PostPosted: Tue 12 May 2015, 07:19    Post subject:  MaCoPiX Mascot Constructive Pilot for X  

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.
macopix.png
 Description   
 Filesize   75.63 KB
 Viewed   286 Time(s)

macopix.png

Back to top
View user's profile Send private message Visit poster's website 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1149
Location: Japan

PostPosted: Wed 13 May 2015, 03:04    Post subject:  

Ahhh, something useful at last! How could I ever spend my lonely hours in the Puppy forum without Chibi-chan?
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!!!
Maki-chan.png
 Description   
 Filesize   26.53 KB
 Viewed   250 Time(s)

Maki-chan.png

Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 854

PostPosted: Wed 13 May 2015, 11:16    Post subject:  

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 Laughing..but they give the mascot a different "touch".
Code:
#!/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.
test2.png
 Description   
 Filesize   36.3 KB
 Viewed   191 Time(s)

test2.png

test.png
 Description   
 Filesize   58.58 KB
 Viewed   191 Time(s)

test.png

Back to top
View user's profile Send private message Visit poster's website 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1149
Location: Japan

PostPosted: Wed 13 May 2015, 12:00    Post subject:  

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 Crying or Very sad
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 854

PostPosted: Wed 13 May 2015, 12:05    Post subject:  

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.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0646s ][ Queries: 12 (0.0122s) ][ GZIP on ]