SA-MP Forums Archive
[Include] Haystack text creator - UNIQUE! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] Haystack text creator - UNIQUE! (/showthread.php?tid=198331)

Pages: 1 2 3


Haystack text creator - UNIQUE! - Hiddos - 11.12.2010

This script is in full development. Suggestions are always welcome!

What is this?

This is an include that allows you create text in-game made out of haystacks. I've seen some servers with haystacks forming text, so I decided to make an FS for it.

Pictures
A random picture.



Functions
There's currently but one function, look below for upcoming features.
pawn Code:
native CreateSentence(text[], Float:x, Float:y, Float:z, Float: rZ);
/* Describtion:
       Creates the sentence
    Syntax:
       text[] -   The text to create
       Float:x -  The BEGINNING X-location of the text
       Float:y -  The BEGINNING Y-location of the text
       Float:z -  The Z-location of the text
       Float:rZ - The rotation angle */
How does it work?
The FIRST character of the text gets created at the INPUT X AND Y VALUES, and then moves on according to the rotations. Picture:


What's to tweak myself?
You can tweak the object model that the script uses. Don't like the haystacks? Replace it with cows. Or something different, like balls or miniguns. You define 'FONT' before including, for example:
pawn Code:
#define FONT 16442 //Model ID of the cow
#include <haystacks>
Or you could go inside the script itself and change it there.

Usable characters
Here's an up-to-date list of usable characters, symbols and other typable thingies.
Code:
Roman alphabet:
Aa - Bb - Cc - Dd - Ee - Ff - Gg - Hh - Ii - Jj - Kk - Ll - Mm 
Nn - Oo - Pp - Qq - Rr - Ss - Tt - Uu - Vv - Ww - Xx - Yy - Zz
--
All other symbols found will be replaced by a space ' '
Notes
Upcoming features
Here's a list of things I was thinking about:
Changelog
All changes are listed here:

v1.01 - 12/12/2010:
Code:
This is a recommended update.
* Plugin streamer support
* Faster code (50% of all floatsin/floatcos functions were removed)
v1.0 - 11/12/2010:
Code:
* Initial release
Download
I guess that's what you came for anyways.

v1.01
PasteBin.com
SolidFiles

v1.0
PasteBin.com
SolidFiles

Final notes
Please give me some credit if you use this script. It took me 22 hours to make (of which only 7 hours were useful).
Credits
Special credits to: Please test this script and tell me what you think about it.


Re: Haystack text creator - UNIQUE! - WillyP - 11.12.2010

Hehe, this shit is awesome!


Re: Haystack text creator - UNIQUE! - Scenario - 11.12.2010

Amazing!


Re: Haystack text creator - UNIQUE! - Lynn - 11.12.2010

Haha, very...unique xD
Great job! This could be good on many different types of servers.


Re: Haystack text creator - UNIQUE! - Blantas - 11.12.2010

Quote:

Haystack text creator - UNIQUE!

Indeed!


Re: Haystack text creator - UNIQUE! - Grim_ - 11.12.2010

I do not even want to know why you would spend 22 hours on a script.

Either way, creative and nice work.


Re: Haystack text creator - UNIQUE! - WillyP - 11.12.2010

Quote:
Originally Posted by Grim_
View Post
I do not even want to know why you would spend 22 hours on a script.

Either way, creative and nice work.
All the maths would fuck up the duration MEGA TIME


Re: Haystack text creator - UNIQUE! - Grim_ - 11.12.2010

Yeah, I'm aware. I said I didn't know why.


Re: Haystack text creator - UNIQUE! - WillyP - 11.12.2010

Quote:
Originally Posted by Grim_
View Post
Yeah, I'm aware. I said I didn't know why.
For the result?


Re: Haystack text creator - UNIQUE! - Grim_ - 11.12.2010

Quote:
Originally Posted by [FU]Victious
View Post
For the result?
Nothing, in my opinion, is worth 22 hours of work that is not going to truly benefit you. Sure, he will become better "known", get attention, what have you, but nothing that will impact him IRL.

But either way, once again, good job.


Re: Haystack text creator - UNIQUE! - [L3th4l] - 11.12.2010

@ Victious: You know there is a PM System right? USE IT!!!!! FOR CHRIST SAKES..

This is a nice script btw.


Re: Haystack text creator - UNIQUE! - Hiddos - 11.12.2010

Thanks guys. Edited the main post as I forgot to post something regarding the haystack object, check "What's to tweak myself?" section.

@Grim_ I could tell ya. But to put it simple, the most annoying parts where when I needed to convert and transform the coordinates from MTA to usable formats.


Re: Haystack text creator - UNIQUE! - WillyP - 11.12.2010

Quote:
Originally Posted by [L3th4l]
Посмотреть сообщение
@ Victious: You know there is a PM System right? USE IT!!!!! FOR CHRIST SAKES..

This is a nice script btw.
Thanks for telling me something I already knew.


Re: Haystack text creator - UNIQUE! - MrDeath537 - 11.12.2010

Awesome!! 5/5

nice work hiddos


Re: Haystack text creator - UNIQUE! - The_Gangstas - 11.12.2010

wow simply, just wow.


Re: Haystack text creator - UNIQUE! - Jay_ - 11.12.2010

Not unique. It's been done before. Try searching


Re: Haystack text creator - UNIQUE! - Finn - 11.12.2010

Quote:
Originally Posted by Grim_
Посмотреть сообщение
Nothing, in my opinion, is worth 22 hours of work that is not going to truly benefit you. Sure, he will become better "known", get attention, what have you, but nothing that will impact him IRL.

But either way, once again, good job.
With that way of thinking, why are you even sitting on your PC or playing games or browsing these forums? It will not impact you IRL.

This what he does is called 'killing time' aka doing something when bored / nothing else to do. Some people waste their time playing games, some people waste their time scripting and coding.

__________________

Great FS.

You could somehow make the haystacks more dynamic and think of them as pixels, this way creating all the characters ( / ( ) & % ¤ # 2 3 4 6 = - _ ) wouldn't be a problem. Also, having multiple letter sizes would be possible as well:
Код:
ooo  ooo  o o  oo
o    o o  ooo  o o
ooo  ooo  o o  oo
  o  o o  o o  o
ooo  o o  o o  o


ooooo ooooo o   o oooo
o     o   o oo oo o   o
ooooo ooooo o o o oooo
    o o   o o   o o
ooooo o   o o   o o


ooooooo  ooooooo  o     o  oooooo
o        o     o  oo   oo  o     o
o        o     o  o o o o  o     o
ooooooo  ooooooo  o  o  o  oooooo
      o  o     o  o     o  o
      o  o     o  o     o  o
ooooooo  o     o  o     o  o
I don't know if you understand what I mean, but currently you have pre-made (mapped) the characters for the use. If you knew the size of the haystack, you could somehow find out a way to place them correctly with functions and form characters that way. Use them as pixels instead of pre-made structures.


Re: Haystack text creator - UNIQUE! - MrDeath537 - 11.12.2010

Quote:
Originally Posted by Finn
Посмотреть сообщение
Great FS.

You could somehow make the haystacks more dynamic and think of them as pixels, this way creating all the characters ( / ( ) & % ¤ # 2 3 4 6 = - _ ) wouldn't be a problem. Also, having multiple letter sizes would be possible as well:.
Agreed. Add support for more characters will be really cool, almost for: - = " , . _


Edit: 1300 posts xD


Re: Haystack text creator - UNIQUE! - TheArcher - 11.12.2010

Damn, unique i'm going to check it out


Re: Haystack text creator - UNIQUE! - IstuntmanI - 11.12.2010

Awesome