Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Rulaman

#41
So it's out, the new version

Download Version 1.2.0.0
Download Version 1.2.0.0 sources

I will no more work on this software, unless a feature is requested for good reason.

Greetings
Rulaman
#42
So, it comes to an end.
I have the version 1.2.0.0 at the start and I will include a readme.
Please tell me, if it is ok so and correct my spelling mistakes. (Will you?)

----------------------------------------------

Manual
======


1. Explaination
---------------
This is an editor for wfn fonts, as well ad for sci fonts.
The functions depends on the usage as a plugin for AGS (AdventureGameStudio)
or as a stand alone version.


2. Terms and Definitions
------------------------
p = plugin
s = stand alone


3. Features
-----------
- Edit wfn fonts                                                                (p/s)
- Edit sci fonts                                                                (  s)
- The fonts can outlined [Button 'Outline']                                     (p/s)
- Convert between sci and wfn fonts [Button 'Convert selected']                 (  s)
  the field text height is only for sci fonts interesting.
  It set the space between two text lines and not
  the textheight itself
- Shift the characters to up, down, left, right [Buttons 'U', 'L', 'D', 'R']    (p/s)
- Invert an character [Button 'Invert']                                         (p/s)
- Clear an character (with black) [Button 'Clear']                              (p/s)
- Fill an character (with white) [Button 'Fill']                                (p/s)
- Swap an character horizontally or vertically [Buttons 'Swap H', 'Swap V']     (p/s)
- Outline the complete font [Button 'Outline Font']                             (p/s)
- Show a grid for better font designing                                         (p/s)
- Multiple Redo/Undo [Right click on the character selection field]             (p/s)
- Copy to and paste from the clipboard                                          (p/s)
  [Right click on the character selection field]
- Zoomable edit field (2â€"40)                                                    (p/s)
- Swap the left color and the right color (click on the connected arrows)       (p/s)

4. Start
--------
Start the program, or copy the plugin to your AGS path and start AGS.

4.1 Stand alone
---------------
After you have started the program stand alone, you have to click open and select a path.
In the list on the left side, it shows you all the fonts, you can edit
(wfn and sci [version 1.2.0.0 and higher]).

4.2 Plugin
----------
Start AGS and load a game. On the pane you found an entry named 'FontEditor'. Open it and
it will show all editable fonts. Under 'Fonts' you found all fonts, used by your game.
It is possible, that you find more than just the ones under 'FontEditor', because AGS is able
to handle ttf fonts as well, but not this editor.
Double click on an entry under 'FontEditor' to edit the selected wfn font, or right click under 'Fonts'
and select 'Edit font (with WFN-FontEditor)'.

5. Workflow (usage)
-------------------
After you have selected a font, you have to click on an character on the left side (selection field) to show it
zoomed. You can select the check box 'Show grid' for a better editing feeling. Now yo can click in the (zoomed)
field to edit the selected character. It updates the character in the left selection field. By dragging your mouse
while holding the mouse button down, you can edit more pixel in a row.

6. Tips
-------
If you want to make a font and a outline font too, it yould be good you have a border around your characters. That
means, one pixel on every side of the character is black. After you designed your font (or converted it from ttf
by using the TtfToWfnSci converter), save it and make a copy (with a file manager). Name the copy correct (file convention)
with a number higher and reopen the WFN-FontEditor. Than select the correct font and click 'Outline Font'.
Check the characters an you will be done.


Greetings
Rulaman
#43
Link in the posts corrected.
#44
The ManiacMansionMania-Fonts as WFN
Download MMM-Fonts as WFN
#45
Now it is available the Version 1.1.0.0

Download Version 1.0.9.0
Download Version 1.1.0.0

additional features to 1.0.7.0:
- character move up, down, left, right
- clear or fill the entire character
- copy and paste of characters (over clipboard; so you can invert your char in another picture editing program)
- Show Grid-option for better editing
- swap the colors (left-black, right-white or vice versa)
- swap the character (horizontally or vertically)
- invert the character
#46
I had a quick look over an sci-font and the spec. I think it is possible. But there are several tool for editing sci-fonts like SCI Studio.
#47
A new version of the WFN-FontEditor is in BETA state.

additional features to 1.0.7.0:
- character move up, down, left, right
- clear or fill the entire character
- copy and paste of characters (over clipboard; so you can invert your char in another picture editing program)
- Show Grid-option for better editing
- swap the colors (left-black, right-white or vice versa)
- swap the character (horizontally or vertically)
- invert the character

If you wanna test, please let me know.

Edit: Image deleted
#48
Hi,

I have brand new font files for the new 256-chars Version of AGS (currently in BETA state).
Feel free to post your own fonts in this thread.


http://postimg.org/image/oc4d5mdv7/


Click here to download
WFN FontEditor Plugin

Edit by Dualnames - Made into a sticky topic for apparent reasons
#49
Hi,

I have modified my plugin. Now with tabs and better integration in AGS.

WFN-FontEditor V1.0.7.0

Features:

- Character overview has zoomfactor 2 (fixed); editable char has now zoomfactor 15 (1 to 40)
- show tabs in stand alone mode when click on the font in the loaded selection
- load font in plugin only when selected
- stand-alone version shows asterisk, when font is modified (plugin-variant ??? how to do)
- Right click option in Menu Fonts added (only for wfn-fonts)
- undo/redo actions per character (right click on character; not on the edit field)
- supports 256-character wfn-fonts (font not yet available, since not all chars are designed)

What's left:

- fill character with white or black
- move character position (one or all)
- copy and paste
- (request a feature)

Edit: Images removed
#50
Thanks,

this code helped. It was exactly, what I needed.
#51
Editor Development / Bug in adding a tree leaf
Sun 30/06/2013 15:13:42
Hi,

I am developing at the moment a plugin for the editor and I think, I found a bug.

I added in the project tree an new Node (in: public Component(IAGSEditor editor))
_editor.GUIController.ProjectTree.AddTreeRoot(this, CONTROL_ID_ROOT_NODE, "FontEditor", "FontEditorIcon");

in the line after I try to add a leaf
_editor.GUIController.ProjectTree.AddTreeLeaf(this, "sdfh", "Test", "FontEditorIcon", false);      
this doesn't work.


When I click on my node (in: void IEditorComponent.CommandClick(string controlID)) I try to add a leaf
_editor.GUIController.ProjectTree.AddTreeLeaf(this, "sdfh4", "Test4", "FontEditorIcon", false);
this doesn't work either. It shows unter Translations

And when i try to add my leaf when the editor opens a game (in: void IEditorComponent.RefreshDataFromGame())
_editor.GUIController.ProjectTree.AddTreeLeaf(this, "sdfh3", "Test3", "FontEditorIcon", false);
it shows under Scripts

I suppose the problem is in the following function:
public IProjectTreeItem AddTreeLeaf(IEditorComponent component, string id, string name, string iconKey, bool greyedOut)
…
if (_lastAddedNode != null)
{
            {newNode = _lastAddedNode.Nodes.Add(id, name, iconKey, iconKey);







This is a very strage behaviour.

(Tested with 3.2.1 and the newest BETA 3.3.0.1132)

http://postimg.org/image/wa9mhyq83/

#52
At the moment only 128 charachters. I can add the rest. (Didn't know there are more chars to support.)
About the floating-problem: I have to download the newest version and check against ist. (tested it with 3.2.1)

The sourcecode will be released, after the first tests will be made. At the moment i have a mercurial repository on my hard disk. Maybe I uploaded it to bitbucket. (But beware. The revision-comments are all in German. The comment in the program are english, because I plan to release the source.)


Edit: Can you explain me, what is ugly?
#53
Hi,

here is the brand new WFN-FontEditor.

It comes in two versions:
1. A standalone version like Radiants FontEditor
2. As a plugin to AGS

Now it is available the Version 1.2.1.0

Download Version 1.2.0.0
Download Version 1.2.0.0 sources
Download Version 1.2.0.1
Download: Download Version 1.2.1.0

A bugfix release is out.

Additional features:

Since 1.2.0.1:
- save the selection field background color                                (p/s)
- save the state of the grid option                                             (p/s)
- save the render text                                                                (p/s)
- render the font in an example text                                          (p/s)
- change the color of the selection field with right click on it      (p/s)
- extend the font to 256 character                                             (p/s)
- show, if a font is 128 or 256 characters                                   (p/s)

Since 1.2.1.0:
- correct a mistake, that saves a corrupted file

Edit 2018-09-25
https://bitbucket.org/rulaman/wfn-fonteditor
Edit 2021-09-09
https://github.com/Rulaman/WFN-FontEditor


By the way, it was a nice practice to code.
Rulaman


PS: I updated this post to reflect the new changes
#55
Beginners' Technical Questions / Re: Only Once
Sat 28/01/2012 21:08:48
The help says the following:
--

static bool Game.DoOnceOnly(const string token)

This function gives you an easy way of making some code run only the first time that the player encounters it. It is commonly used for awarding points.
The token parameter is an arbitrary string. You can pass whatever you like in for this, but IT MUST BE UNIQUE. It is this string that allows AGS to determine whether this section of code has been run before, therefore you should make sure that you do not use the same token string in two different places in your game.

Returns true the first time that it is called with this token, and false thereafter.

NOTE: This is a static function, and thus need to be called with Game. in front of it. See the example below.

Example:

if (Game.DoOnceOnly("open cupboard")) {
  GiveScore(5);
}

will give the player 5 points the first time this script is run.
See Also: GiveScore



So you can use:
--

if   (Game.DoOnceOnly("open door with ghost") )
{
  player.Say("Oh my God.");
}
else
{
  player.Say("mmm it's only a ghost!");
}
#56
Quote from: tzachs on Thu 11/11/2010 18:50:23
[...]
Code: ags

AudioChannel *audio = aMusic.Play();
audio.Volume = 70;

[...]

Simplay write something like this.

Code: ags

AudioChannel *audio = aMusic.Play();

if ( audio == null )
{
}
else
{
    audio.Volume = 70;
}


or if you like

Code: ags

AudioChannel *audio = aMusic.Play();

if ( audio != null )
{
    audio.Volume = 70;
}
#57
There's only a newer version of agslrelease.

So the AGSLiguist is the newest version.

Rulaman
#58
Hi Endres,

send Chris a copy of your game.
Hopefully he ist so amazed, that he will code it four you. ;D
Joking! It would be glad, if something like this will be possible in the future. But I think this is a good handful of work for you. (And your little helpers).

Greetings
Rulaman

PS: If Chris had a copy, he could join us sometimes.
#59
Hi Chris,

I do the following to reproduce this behaviour.
I open AGS 3.2 and press F7. Then I close AGS and get an increse by one hour. (122 changes)

I checked in my file (RCS) and open AGS again. F7 -> close and the same error.
This time, minus one hour. (122 changes).

The third time there are only 70 changes, but the same behaviour.

I didn't add some files or do something.


PS: I also see changes over an hour.

#60
General Discussion / MMM-Magazin (German)
Sun 17/10/2010 20:55:25
Hello,

if you are able to read german I have a magazin for you.
MMMM-Magazin Ausgabe_03a

Since this year I released two other versions.
Have fun.


Greetings
Rulaman

PS: At the moment there are efforts to release more MMM episodes in english and probably other languages. Be quiet and relax.
SMF spam blocked by CleanTalk