Announcement: Remember: you are giving away your fantastic ideas for free, and somebody else might even make money from them (or appear to). That's just how the world works! If you're worried about it, maybe you shouldn't post your ideas here.


Caravel Forum : DROD Boards : Feature Requests : "extract script"
New Topic New Poll Post Reply
Poster Message
silver
Level: Smitemaster
Rank Points: 915
Registered: 01-18-2005
IP: Logged
icon "extract script" (0)  
I'd like a button on hold management that drops all the text strings on scrolls and characters into a text file

i.e.

Foo Level: 1N: scroll (15,16): Hi, I'm the scroll text.
Bar Level: 2S: Speech Happy Beethro,0,"Ha ha. I win! I always win!" (sound: none)
Baz Level: 3S: Speech Goblin King,0,"", (sound: doh.ogg)

it would still be up to the hold developer to edit that to add context (especially to character speech)... but it would save a LOT of cut and pasting...

of course, this only has specialized purposes, so perhaps belongs at the bottom of the TODO list, but still :)



____________________________
:yinyang

[Last edited by silver at 08-22-2006 08:37 AM]
08-22-2006 at 08:33 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
NiroZ
Level: Smitemaster
Rank Points: 1302
Registered: 02-12-2006
IP: Logged
icon Re: "extract script" (0)  
silver wrote:
I'd like a button on hold management that drops all the text strings on scrolls and characters into a text file

i.e.

Foo Level: 1N: scroll (15,16): Hi, I'm the scroll text.
Bar Level: 2S: Speech Happy Beethro,0,"Ha ha. I win! I always win!" (sound: none)
Baz Level: 3S: Speech Goblin King,0,"", (sound: doh.ogg)

it would still be up to the hold developer to edit that to add context (especially to character speech)... but it would save a LOT of cut and pasting...

of course, this only has specialized purposes, so perhaps belongs at the bottom of the TODO list, but still :)


Well it would be alot more useful with a import option, which would allow you to do a bit of error correction, then importing it back in, and to be able to work on drod without people asking why you are playing games.

Not to meantion how useful it would be when beta testing someone else's hold.
08-22-2006 at 09:15 AM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
silver
Level: Smitemaster
Rank Points: 915
Registered: 01-18-2005
IP: Logged
icon Re: "extract script" (0)  
man, oh man. I don't know that you could pay me enough to even TRY to write the import. there would sooo many things that could go wrong there. but the export would still be useful in debugging and spellchecking.


____________________________
:yinyang

[Last edited by silver at 08-22-2006 09:57 AM]
08-22-2006 at 09:57 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
Doom
Level: Smitemaster
Avatar
Rank Points: 3336
Registered: 07-05-2004
IP: Logged
icon Re: "extract script" (+1)  
This feature is in already. Since 2.0.8.

You should have the line "ExportSpeech=0" in the startup section of drod.ini. Just modify that to '1' and export the hold normally. I've never tried it, but I think that's how it should work...
08-22-2006 at 02:27 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5200
Registered: 02-04-2003
IP: Logged
icon Re: "extract script" (0)  
silver wrote:
I'd like a button on hold management that drops all the text strings on scrolls and characters into a text file

i.e.

Foo Level: 1N: scroll (15,16): Hi, I'm the scroll text.
Bar Level: 2S: Speech Happy Beethro,0,"Ha ha. I win! I always win!" (sound: none)
Baz Level: 3S: Speech Goblin King,0,"", (sound: doh.ogg)

it would still be up to the hold developer to edit that to add context (especially to character speech)... but it would save a LOT of cut and pasting...

of course, this only has specialized purposes, so perhaps belongs at the bottom of the TODO list, but still :)
silver, this is your lucky day. In drod.ini, set
[Startup]
ExportSpeech=1
Export the hold in question from the Holds Screen, selecting to export speech when prompted. (You don't actually have to export the hold also.)

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
08-22-2006 at 02:28 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
Tim
Level: Smitemaster
Avatar
Rank Points: 1979
Registered: 08-07-2004
IP: Logged
icon Re: "extract script" (0)  
Naturally, this 'exportspeech' thing does not work for scrolls.

____________________________
The best way to lose customers is to let little kids running loose on a forum with too many mod points.
08-22-2006 at 03:26 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5200
Registered: 02-04-2003
IP: Logged
icon Re: "extract script" (0)  
Tim wrote:
Naturally, this 'exportspeech' thing does not work for scrolls.
That's right. There's a new feature in TCB that will export scroll text along with speech.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
08-22-2006 at 04:21 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
silver
Level: Smitemaster
Rank Points: 915
Registered: 01-18-2005
IP: Logged
icon Re: "extract script" (0)  
gah, is it in UTF-16? wouldn't UTF-8 be friendlier to text editors? (since the 99% case would be that UTF-8 is no different from ASCII).

does someone have a recommendation for a utf-16 to utf-8 converter utility? :)

edit: gah. I just needed to upgrade Ultraedit from 9 to 12.



____________________________
:yinyang

[Last edited by silver at 08-23-2006 08:59 AM]
08-23-2006 at 08:30 AM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5200
Registered: 02-04-2003
IP: Logged
icon Re: "extract script" (0)  
silver wrote:
gah, is it in UTF-16? wouldn't UTF-8 be friendlier to text editors? (since the 99% case would be that UTF-8 is no different from ASCII).
TCB will support UTF-8.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
08-23-2006 at 03:44 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
Tim
Level: Smitemaster
Avatar
Rank Points: 1979
Registered: 08-07-2004
IP: Logged
icon Re: "extract script" (0)  
silver wrote:
does someone have a recommendation for a utf-16 to utf-8 converter utility? :)
I usually read the text on a browser, then select all text, and copy and paste it into a spelling checker.

____________________________
The best way to lose customers is to let little kids running loose on a forum with too many mod points.
08-24-2006 at 12:11 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5200
Registered: 02-04-2003
IP: Logged
icon Re: "extract script" (0)  
silver wrote:
does someone have a recommendation for a utf-16 to utf-8 converter utility? :)
Notepad. It reads Unicode-16 docs and has a UTF-8 format save option.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.

[Last edited by mrimer at 08-24-2006 04:18 PM]
08-24-2006 at 04:17 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
trick
Level: Legendary Smitemaster
Rank Points: 2580
Registered: 04-12-2003
IP: Logged
icon Re: "extract script" (+2)  
For Linux (etc), you can use Kate (or, of course, one of those textmode editors there's constant flamewars about).

Btw, DROD doesn't use UTF-16, it uses UCS-2 (little-endian). Either will work fine as long as you only use lower values, though. (The difference is that UTF-16 can't use all 16 bits in a word for data and can extend to 32-bit for larger values, while UCS-2 is 16-bit only and can use all 16 bits).

- Gerry

08-24-2006 at 04:42 PM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
silver
Level: Smitemaster
Rank Points: 915
Registered: 01-18-2005
IP: Logged
icon Re: "extract script" (0)  
mrimer wrote:
Notepad

I am still using win2k :)

trick wrote:
Btw, DROD doesn't use UTF-16, it uses UCS-2 (little-endian).

fair enough

____________________________
:yinyang
08-24-2006 at 10:44 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Feature Requests : "extract script"
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.9
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.