wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Resources > Code Resources > Samples
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 11-17-2007, 09:30 AM   #1
Ammorth
I blink, therefore I am.
 
Ammorth's Avatar
 
Join Date: Sep 2006
Posts: 1,812

Submissions (10)

Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)

Default TextParse System

NOTE: You have been redirected in order for our attachments to be made available to you. This will only last two minutes; these measures where taken to avoid hotlinking and bandwidth theft.
To avoid these restrictions Log in or Register

TextParse System - Version 1.20

Created by Ammorth

Requires Table and JassHelper by Vexorian


Parses a string to fit a certain width. Mainly used for multiboards.

Download Now

Expand Readme:
Attached Images
File Type: jpg TPS-logo.jpg (139.4 KB, 280 views)
File Type: jpg TPS-ingame.jpg (48.8 KB, 599 views)
Attached Files
File Type: w3x TextParser v1.20.w3x (26.8 KB, 185 views)
__________________

Last edited by Ammorth : 02-24-2009 at 01:18 AM.
Ammorth is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 11-17-2007, 09:52 AM   #2
Pyrogasm
Lackadaisically Absent.
 
Pyrogasm's Avatar


Respected User
 
Join Date: Sep 2006
Posts: 4,520

Submissions (9)

Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)

Hero Contest - Fourth place

Send a message via ICQ to Pyrogasm Send a message via AIM to Pyrogasm Send a message via MSN to Pyrogasm Send a message via Yahoo to Pyrogasm
Default

Sexy.
__________________
Quote:
Originally posted by Rising_Dusk
Your spells are mostly ignored because they are not very cool so we aren't very excited to review/approve them, but you are incredibly persistent and won't give us an excuse to graveyard it. That is generally what results in a resource being ignored for a long time.

The Spell Request Thread Done for, unless someone else wants to revive it...
It lasted a damn long time.

Please; Ask for Help Appropriately














Quote:
Originally posted by Kyrbi0
Huh. Almost makes me wish I had a girlfriend, to take advantage of today (wait, no, that's not what I meant... I mean, take advantage of the fact that it is international women's day... gah, never mind).
Quote:
Originally posted by Pyrogasm
Rome may not have been built in a day, but the Romans sure as hell didn't say "look at this great city we built guys!" when they had nothing more than a bit of stone and some cottages.
Pyrogasm is offline   Reply With Quote
Old 11-17-2007, 09:59 AM   #3
PipeDream
Moderator
 
PipeDream's Avatar


Code Moderator
 
Join Date: Feb 2006
Posts: 1,405

Submissions (6)

PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)

Default

There are non greedy algorithms for solving this problem in linear time. In particular you should check out the Knuth Plass linebreaking algorithm.

Knuth and Plass, "Breaking Paragraphs into Lines" 1981
__________________
PipeDream is offline   Reply With Quote
Old 11-17-2007, 11:17 AM   #4
cohadar
master of fugue
 
cohadar's Avatar
 
Join Date: Jun 2007
Posts: 2,453

Submissions (5)

cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)cohadar is just really nice (250)

Default

@PipeDream
How the hell do you know so much about algorithms if you are not a programmer?
__________________
Omg database crash deleted my signature, as a side effect this immensely improved wc3c.
cohadar is offline   Reply With Quote
Old 11-17-2007, 12:02 PM   #5
Tide-Arc Ephemera
Overdoses result in death
 
Tide-Arc Ephemera's Avatar
 
Join Date: Jan 2007
Posts: 2,365

Submissions (3)

Tide-Arc Ephemera is a jewel in the rough (206)Tide-Arc Ephemera is a jewel in the rough (206)Tide-Arc Ephemera is a jewel in the rough (206)

Default

He knows shit loads about code... maybe he's a hacker! O.O;

*changes password*
__________________
Before asking for help with triggers... read this and check your trigger!

If you're having troubles getting help on WC3C or anywhere at all, please have a look at...
The WRONG way to ask for help and The CORRECT way to ask for help.

Quote:
Originally Posted by Alevice
You may never stop our bioweapon! We mexicans shall rule the third world! Mwahahahahahahaha!
Please acknowledge that I use Mac and avoid suggesting vJass and other tools that don't work on it. Thank you.
Tide-Arc Ephemera is offline   Reply With Quote
Old 11-17-2007, 12:46 PM   #6
moyack
Evil Emoticon
 
moyack's Avatar


Respected User
Project Leader: PoC
 
Join Date: Jan 2006
Posts: 3,278

Submissions (17)

moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)

AI Tournament #2 - 2nd PlaceHero Contest - Second place

Send a message via MSN to moyack
Default

Quote:
Originally Posted by cohadar
@PipeDream
How the hell do you know so much about algorithms if you are not a programmer?
Isn't he a programmer??

*assuming sarcasm*

I'll check it out this system as soon as I get home.

Last edited by moyack : 11-17-2007 at 12:46 PM.
moyack is offline   Reply With Quote
Old 11-17-2007, 01:18 PM   #7
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,898

Submissions (37)

Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)Vexorian has a reputation beyond repute (1062)

Hero Contest #3 - 2nd Place

Default

Quote:
Originally Posted by cohadar
@PipeDream
How the hell do you know so much about algorithms if you are not a programmer?
He is a programmer, even though he pretends to be a physician ...

I can't think of a way to make an algorithm for this that had worse complexity than linear... I guess I am gonna take a look at code.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 11-17-2007, 03:06 PM   #8
Pinzu
User
 
Pinzu's Avatar
 
Join Date: Apr 2007
Posts: 180

Pinzu is on a distinguished road (21)

Default

When I try to test the map i just end up at Frozen Throne menu,
(when you start up warcraft)

Help?

Last edited by Pinzu : 11-17-2007 at 03:52 PM.
Pinzu is offline   Reply With Quote
Old 11-17-2007, 03:16 PM   #9
HINDYhat
User
 
HINDYhat's Avatar
 
Join Date: Aug 2007
Posts: 225

Submissions (2)

HINDYhat will become famous soon enough (48)HINDYhat will become famous soon enough (48)

Default

Looks very good. I'm too lazy (or bad :P) to look at the code and possibly understand something, but based on the demo, it works fine.

Grats
__________________
Quote:
Originally Posted by Chat Room
[19-17-58] Da)sniper: not go blistic because ur a raciest vs all guiers
HINDYhat is offline   Reply With Quote
Old 11-17-2007, 09:13 PM   #10
PipeDream
Moderator
 
PipeDream's Avatar


Code Moderator
 
Join Date: Feb 2006
Posts: 1,405

Submissions (6)

PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)PipeDream is a glorious beacon of light (463)

Default

His algorithm is linear. What I meant was that you can pack in more text to fewer lines with out sacrificing time complexity. Obviously for typical text not much more, particularly if you have only short snippets.
__________________
PipeDream is offline   Reply With Quote
Old 11-18-2007, 01:51 AM   #11
Ammorth
I blink, therefore I am.
 
Ammorth's Avatar
 
Join Date: Sep 2006
Posts: 1,812

Submissions (10)

Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)

Default

I looked into the method PipeDream stated and it seems like it would be more costly than the linear approach (requires building possible breaks and then finding the best route through the breaks).

Edit: I'm working on a syllable splitter that should increase the amount of text per line and stop the weird formatting, without requiring many more calculations.
__________________

Last edited by Ammorth : 11-19-2007 at 04:42 AM.
Ammorth is offline   Reply With Quote
Old 01-07-2008, 10:53 PM   #13
moyack
Evil Emoticon
 
moyack's Avatar


Respected User
Project Leader: PoC
 
Join Date: Jan 2006
Posts: 3,278

Submissions (17)

moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)moyack is a splendid one to behold (666)

AI Tournament #2 - 2nd PlaceHero Contest - Second place

Send a message via MSN to moyack
Default

After my check I haven't found anything strange.

*Approved*
moyack is offline   Reply With Quote
Old 08-12-2008, 07:18 PM   #15
Arkan.
User
 
Arkan.'s Avatar
 
Join Date: Jun 2007
Posts: 6

Arkan. has little to show at this moment (0)

Default

This system rocks! It is just what I was looking for and it seems to be working flawlessly. Huge bonus that it can handle color codes and breaks!

Very well done, I will definately use this system for my ORPG Dark Invasion II (uses many multiboards with virtual items etc.).

__________________
Check out Dark Invasion, an avant-garde ORPG
Arkan. is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 09:14 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2017, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services