Author Topic: Pulled out Studio instead of Companion for the first time in a loooong time  (Read 3729 times)

0 Members and 1 Guest are viewing this topic.

Offline Cloudee1

Well, it turns out there is one editing option in Studio that I was lacking in Companion. I had a text file that had 256 entries in it. When I actually went to use it, I had some pretty strange results when using Display and a text entry 100 or higher.

I had to rethink my approach and in doing so, I wanted to remove entries from the text resource. Unfortunately there is not an option to delete a text line in Companion.

It was a bit nostalgic using Studio after such a long time.


Halloween Competition Brass Lantern Prop Competition Groundhog Day Competition

Offline gumby

Hey, you don't need to ditch Companion to fix this issue:  http://sciprogramming.com/community/index.php/topic,322.0.html

For any text resource you reference over 99 in a Display(), you need to first load the text reference into a temporary variable first by using GetFarText:

Code: [Select]
GetFarText(000 100 @tempStr)
Display(@tempStr
           dsCOORD 0 100
           dsCOLOUR clYELLOW
           dsBACKGROUND -1
           dsFONT 4
           dsALIGN alCENTER
           dsWIDTH 320
)

What I didn't know up until now is that it was compiler-specific.  Good to know that in Studio you don't need to use this workaround.
In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline Cloudee1

I don't know that it is compiler specific. I used studio to delete the text file lines over 100. That was something that Companion couldn't do, or at least I couldn't find the option to delete or remove a line. Once I was done deleting, I had the studio folder moved into the recycle bin. I was afraid it was going to crash on me in the middle of my editing. I am certainly not going to stop using Companion

My work around was to change my 1 massive text resource into 4 large text resources.

Too bad I didn't know about pulling it into a variable before trying to use it, that probably would have saved me a bit of work. But really it wen't pretty well. I just resaved my massive resource 4 times and started deleting. Had it all done and squared away in less than 15 minutes. Wish all of my obstacles could be sorted out so quickly.
« Last Edit: August 17, 2014, 10:14:10 PM by Cloudee1 »
Halloween Competition Brass Lantern Prop Competition Groundhog Day Competition

Offline stateofpsychosis

i like using studio for editing the vocab or when a (not is making companion crash... it won't crash in scistudio so i can figure out the problem easier there.

other than that tho companion is so much easier to use :)

Offline MusicallyInspired

The only problem with Companion that Studio doesn't have is a character limit on text resource lines.
Brass Lantern Prop Competition


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.032 seconds with 23 queries.