Official Soldat Forums

Soldat Fans => Fan Apps => Topic started by: DePhille on July 24, 2007, 12:24:17 pm

Title: UniTaunt - Fully featured Unicode taunt editor - RELEASED
Post by: DePhille on July 24, 2007, 12:24:17 pm
UniTaunt
DePhille - DePhille\at/Gmail\dot/com - http://soldatpage.u13.net
Current version: 1.0 - Download (http://forums.soldat.pl/index.php?action=dlattach;topic=17766.0;attach=8905)



INTRODUCTION
UniTaunt is a taunt editor that supports Unicode and has a whole bunch of features at the same time.
It is simple to set up, run the install file once and you can place the UniTaunt file wherever you want.
Features:
- Unicode support
- Azerty and Querty keyboard support
- Swap keys
- Load default Soldat taunts
- Compatible with all Soldat Versions.
- Open, edit, save, create, ... taunt files.




HOW TO INSTALL?
First of all, the installation is not mandatory. The program may be able to run without installing it first.
However, there's a big chance the program will give an error if you did not run the installation, so I'd recommend you run it anyway.

1. Open Setup.exe and follow the procedures.
2. Place the UniTaunt.exe program anywhere you want.
3. Run the program (UniTaunt.exe)



UPDATES
26th of July: Stable version released



INFO CHART
Author: DePhille
E-Mail: DePhille\at/gmail\dot/com
Website: http://soldatpage.u13.net/
Release Date: 26th of July 2007
Programming Language: Microsoft Visual Basic 6.0
Used Controls: Forms 2.0, Common Dialog and Default Controls V6



(http://soldatpage.u13.net/unitaunt/unitaunt_screenshot2.jpg)






Download (http://forums.soldat.pl/index.php?action=dlattach;topic=17766.0;attach=8905)


Grtz, DePhille
Title: Re: UniTaunt - Fully featured Unicode taunt editor [BETA]
Post by: urraka on July 24, 2007, 12:32:11 pm
System Error &H8007007E (-2147024770)

BTW, does anybody know a way to ctrl+c messages like that? ¬¬
Title: Re: UniTaunt - Fully featured Unicode taunt editor [BETA]
Post by: DePhille on July 24, 2007, 02:50:12 pm
Ah, that's the Forms 2.0 which is giving that error.
Try placing this file (http://soldatpage.u13.net/unitaunt/FM20.DLL) in c:\WINDOWS\system32\ and run the program again. It might be a good idea to keep a copy of your old FM20.DLL, though that's rarely necessary.

Grtz, DePhille
Title: Re: UniTaunt - Fully featured Unicode taunt editor [BETA]
Post by: urraka on July 24, 2007, 04:19:02 pm
I did what you said and i still get the same error with the same numbers.

PD: and i found the way to copy those kind of messages :P
Title: Re: UniTaunt - Fully featured Unicode taunt editor [BETA]
Post by: DePhille on July 24, 2007, 04:26:13 pm
Weird.
Hmm, maybe re-registering the control might help:
start --> run --> regsvr32 /u fm20.dll
start --> run --> regsvr32 fm20.dll


Grtz, DePhille
Title: Re: UniTaunt - Fully featured Unicode taunt editor [BETA]
Post by: urraka on July 24, 2007, 04:28:53 pm
Done, it didn't help :(
Title: Re: UniTaunt - Fully featured Unicode taunt editor [BETA]
Post by: DePhille on July 24, 2007, 04:29:51 pm
Hmm,
I think it might be a problem in your registry then, but I'm not sure. You can also try to clean up your registry if you want. There are rumours that this error is caused by having two duplicate entries for one control in your registry.
(I'll keep scouting the internet and chat channels for solutions)

Grtz, DePhille
Title: Re: UniTaunt - Fully featured Unicode taunt editor [BETA]
Post by: urraka on July 24, 2007, 04:48:09 pm
How can I clean up my registry?
Title: Re: UniTaunt - Fully featured Unicode taunt editor [BETA]
Post by: DePhille on July 24, 2007, 05:03:53 pm
I use CCleaner (http://www.ccleaner.com/). Cleaning up your registry avoids alot of errors (especially with programs written in Visual Basic) and speeds up your PC.

Also, try to replace your controls with these:
COMDLG32.OCX (http://soldatpage.u13.net/unitaunt/COMDLG32.OCX)
MSCOMCTL.OCX (http://soldatpage.u13.net/unitaunt/mscomctl.ocx)
That might also do the trick.

Thanks a lot for all the effort so far!

Grtz, DePhille
Title: Re: UniTaunt - Fully featured Unicode taunt editor [BETA]
Post by: MR X on July 24, 2007, 05:27:30 pm
Yo DePhille. Do you have a dll with a function to convert ANSI to UNI and vice versa? it would be great. f so pm me please
Title: Re: UniTaunt - Fully featured Unicode taunt editor [BETA]
Post by: DePhille on July 24, 2007, 05:51:22 pm
I simply write the bytes instead of the bare characters and add the unicode header to the txt file. Visual Basic supports Unicode (with the use of Forms 2.0 VB control) so it's a childsplay to implement it, I just needed to find the appropriate charsets and functions and it's done.
The entire program shouldn't be much more than 5 pages of code.

Grtz, DePhille
Title: Re: UniTaunt - Fully featured Unicode taunt editor [BETA]
Post by: urraka on July 24, 2007, 07:42:27 pm
Well, I've downloaded and installed CCleaner, cleaned up all my registry, replaced those 2 files and still the same.
This is very weird, I've never had problems running VB applications. What is this one using that the LogStats doesn't use?

PD: it would be nice if someone else could test it and tell if it works or not, just to make sure if it's a problem of mine or not.
Title: Re: UniTaunt - Fully featured Unicode taunt editor [BETA]
Post by: DePhille on July 25, 2007, 05:27:23 am
Logstat uses very little controls, just because I know having many controls in a VB app usually causes alot of errors too (and apparently, I was right, sigh :P). It's not your PC, Visual Basic apps tend to crash often on other PCs, especially the controls. Though I've never seen this error before, and all I read up until now were solutions regarding the controls, again. I'll scout for a few extra hours and send an e-mail or create a forum topic about it.

I'll edit this post whenever I find something new!

Grtz, DePhille

Date Posted: 25-07-2007, 09:12:01
Some French people told me that not only FM20.DLL is required but also the "Language", which happens to be FM20ENU.DLL. This seems like the most plausible solution up until now, I have a very strong feeling the error is caused by the Forms 2.0 control as mentioned earlier.

Please download and replace the FM20ENU.DLL (http://soldatpage.u13.net/unitaunt/FM20ENU.DLL) file.

Grtz, DePhille
Title: Re: UniTaunt - Fully featured Unicode taunt editor [BETA]
Post by: urraka on July 25, 2007, 12:21:46 pm
Alright, I have good news and bad news :P

Good news! That file was the problem :)
I didn't even have that file. Looks like i only had the spanish version.

Bad news, I found some bugs.

* First a very simple bug, numbers are a little disordered:
Buttons 2 to 9 are 1 to 8 taunts. Button 0 is 9 and button 1 is 0.

* I loaded my taunts and all text was shown properly, but if I save it (making no changes) the file kinda gets screwed. I guess it's some encoding problem.

* I tried pressing New, writing a few taunts and saving to the screwed file (so it would be replaced). It seems the text that was in that file was kept at the end of the file, but in another encoding. Very strange.
Well, you can test it yourself, in this post (http://forums.soldat.pl/index.php?topic=17371.msg201301#msg201301) i attached my taunts file.

* Another thing... I can't write unicode text in the editbox. "привет" looks like "ïðèâåò"


It would be nice if you could fix that stuff because the app looks really nice.
I have a few suggestions also:

* The button "replace with" should have another name.. like "swap" or something, because it doesn't replace but swap the taunts.

* "Save as..." button.

* "Default taunts" button.
Title: Re: UniTaunt - Fully featured Unicode taunt editor [BETA]
Post by: DePhille on July 26, 2007, 04:34:34 am
Alright, all those bugs should be fixed and those suggestions were implemented!
Please let me know if it now works. If it does I'll wait a few hours and release it as a "Stable" version, along with a tiny page for it on SoldatPage (http://soldatpage.u13.net/).
Link in main post updated, please re-download!

Grtz, DePhille
Title: Re: UniTaunt - Fully featured Unicode taunt editor [BETA2]
Post by: urraka on July 26, 2007, 10:38:06 am
It works great now. :)
The default taunts isn't the soldat-default taunts, was that your intention?
And maybe you can move the number 0 after the 9, so it looks just like the keyboard :P

Anyway, it works perfectly and it fulfills my needs ;)
Thanks for adding the suggestions.

EDIT: Oh, and if you can, make it so it starts in the center of screen. If my memory doesn't fail that is just changing a property. :P
Title: Re: UniTaunt - Fully featured Unicode taunt editor - RELEASED
Post by: DePhille on July 26, 2007, 02:31:27 pm
Alright, the stable version has been released.
I've also updated the main post. I'm currently working on the information page which will be put as a helpfile on SoldatPage (http://soldatpage.u13.net/).

Grtz, DePhille
Title: Re: UniTaunt - Fully featured Unicode taunt editor - RELEASED
Post by: Xxypher on July 27, 2007, 02:36:22 am
I just wish that someone would make a taunter that if you help down ALT and two buttons it would make another taunt, like alt+a+s=I killed you ALL! and just alt+a=Help! Help! I am being repressed!
Something like that, or if you hold ctrl+alt+a you get a different taunt than alt+a.
I could fit all my taunts in that way.
Title: Re: UniTaunt - Fully featured Unicode taunt editor - RELEASED
Post by: DePhille on July 27, 2007, 03:45:55 am
I could try that.
However, I need an API for that. The API must be able to capture all key input while Soldat is running on the foreground. The problem is that people think you're making  hack when you ask for such an API, so it won't be easy to get it.

Grtz, DePhille
Title: Re: UniTaunt - Fully featured Unicode taunt editor - RELEASED
Post by: urraka on July 27, 2007, 04:13:39 am
You may get battleyed with something like that.
Title: Re: UniTaunt - Fully featured Unicode taunt editor - RELEASED
Post by: DePhille on July 27, 2007, 04:51:39 am
I don't know, it doesn't directly interact with the memory of Soldat. It just has to detect the key combinations before they're passed on to the Soldat executable. That is possible by interacting with an API of the operating system. Atleast, that's what I've come to read just now.

Grtz, DePhille
Title: Re: UniTaunt - Fully featured Unicode taunt editor - RELEASED
Post by: Xxypher on July 28, 2007, 02:25:43 am
Its a combination of keys, I think it is possible to make a system that will make "edits" of what you would type, as in say that I pressed alt+ctrl+A and it will first go through the system and make the Soldat  think you made an average taunt if you get what I mean. It just needs to go through a system that changes it without affecting anything to do with gameplay or the memory so BattleEye will not do anything. If you get what I mean.
Here is another idea.
I think it could be possible to have a system "rewrite" what you typed when you use a combination of ctrl, but you would have to press T or Y before and it automatically pastes or types what you have set for that letter. And I don't think BattleEye would do anything about it because it is mainly just typing for you when you hit a certain key, or you could have this system automatically press T or Y when you use the taunt so everything would work right.
Title: Re: UniTaunt - Fully featured Unicode taunt editor - RELEASED
Post by: DePhille on July 28, 2007, 07:13:21 am
Well, the alternative taunt is pretty simple.
Just one function, SendKeys(). Then I send these keys:
tThis is a taunt(enter)
The first t is the the chat button, and the rest is the text. Soldat will think the keys are coming straight from the keyboard so it won't interfere with BattlEye I think.
The only problem is detecting the alternative hotkeys such as alt+ctrl+A. But I'll look that up once I finish my other projects, doing multiple projects at one time won't really assure quality.

Grtz, DePhille
Title: Re: UniTaunt - Fully featured Unicode taunt editor - RELEASED
Post by: urraka on July 28, 2007, 01:23:53 pm
To detect the alternative hotkeys you can hook the keyboard with the windows API. Check out this article (http://www.codeguru.com/vb/gen/vb_system/keyboard/article.php/c4829/)
Title: Re: UniTaunt - Fully featured Unicode taunt editor - RELEASED
Post by: EnEsCe on July 29, 2007, 05:49:05 am
SendKeys wont work with DirectInput. Been there done that.
Title: Re: UniTaunt - Fully featured Unicode taunt editor - RELEASED
Post by: Xxypher on July 29, 2007, 12:06:00 pm
Is there another function that works the same or similar?
Title: Re: UniTaunt - Fully featured Unicode taunt editor - RELEASED
Post by: urraka on July 29, 2007, 03:48:42 pm
You can create your own keyboard driver to fool DirectInput ;)
Good luck!
Title: Re: UniTaunt - Fully featured Unicode taunt editor - RELEASED
Post by: Xxypher on July 29, 2007, 06:06:55 pm
That would take a long time...
And I don't even know how that would be possible really.
because I have no systems that say "U CAN DO THIS ESLY!!!!!111"
Title: Re: UniTaunt - Fully featured Unicode taunt editor - RELEASED
Post by: DePhille on August 01, 2007, 05:48:00 am
Yeah, I have yet to look up these things. I've got very little experience with Visual Basic and DirectX applications, so it'll take a long time for me to make an application that can do this and still be of some quality.
That's also a reason why I'm putting this on the long track, I'm going to finish other projects first.

Grtz, DePhille
Title: Re: UniTaunt - Fully featured Unicode taunt editor - RELEASED
Post by: Xxypher on August 01, 2007, 12:04:29 pm
Okay,, what other projects are you working on?
Title: Re: UniTaunt - Fully featured Unicode taunt editor - RELEASED
Post by: DePhille on August 02, 2007, 01:37:38 pm
A lot actually, which isn't good thing, so I'll have to sort them out according to their importance.
I will not list those projects since I'm not sure which I'll be able to deliver with quality and which I can't. All I can say is that pretty much 80% of the projects I'm working on will help me get money for the Dedicated Server from hetzner.

Grtz, DePhille