intfiction.org

The Interactive Fiction Community Forum
It is currently Tue Nov 20, 2018 9:48 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Sep 11, 2018 5:42 pm 
Offline
User avatar

Joined: Wed Dec 23, 2009 8:55 pm
Posts: 16
Location: Spain
Hello,

I'm having some difficulties integrating Vorple for I6 into La zona, a small IF I've created for a mythological-themed Jam in Spanish.

On the one hand, Vorple uses Roger Firth's JustEnoughGlulx extension, which makes use of InitGlkWindow and IdentifyGlkObject entry points. This causes me conflicts because La zona also uses these entry points. On the other hand I also have conflicts with Verblib's Banner and L__M routines, as both La zona and vorple.h redefine these routines.

I was wondering if anyone could advise me on the best way to deal with these difficulties.

Thank you very much in advance! as always.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Thu Sep 13, 2018 2:44 pm 
Offline

Joined: Fri Jul 23, 2010 5:20 pm
Posts: 265
Hello!

For Banner and L__M, the routines are indeed replaced to add a little functionality; basically, the Banner routine is renamed OldBanner, and the L__M is renamed OldLM. Inside the (new) routines, you get a few lines of code, then a call to the old routines (see lines 693 and 714). If you want to use your own version of Banner or L__M, you could either :
  • Change those calls directly in vorple.h (write the name of your banner routine instead of OldBanner() on line 714, or write the name of your L__M routine instead of OldLM in line 693) ;
  • or instead, change line 28 and 29 so that the new names are something else (OldBanner1 and OldLM1 will do), then call your routines OldBanner and OldLM, so they're called instead of the old ones.
Either way, I think you need to change vorple.h a little bit; I don't really see another way to do it...

As for the functions in JustEnoughGlulx, my memory is foggy; I think that, in the end, the only function of this extension which is used in Vorple is bp_output_stream. So in theory (not tested!), you could remove those two routines from the JustEnoughGlulx.h file and see your game still works. Again, I don't remember why I used this extension; I'll flag it on the Vorple I6 issue tracker, and when I have a chance I'll test to see if I can just find a way to remove the dependency on this extension.

I hope this helps! Please let me know!

_________________
http://hlabrande.fr/if


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group