Author Topic: Conversion of tp2 into JSON/other structured data  (Read 1228 times)

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 391
  • Gender: Male
Conversion of tp2 into JSON/other structured data
« on: February 27, 2022, 01:59:15 PM »
Hi,


I don't know why I didn't request it earlier but having JSON/other structured data of the entire tp2 and INCLUDE ... files would be wonderful and open a lot of possibilities.


It could for eg: provide the ability to read REQUIRE/FORBBIT etc ... statement and build logic around it, ability to know what tra files are used for current language etc.


Any chances?
Project Infinity public BETA - mod manager for Infinity Engine games
Modder's Guide to Github - you cannot have progress without committing changes

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: Conversion of tp2 into JSON/other structured data
« Reply #1 on: April 24, 2022, 02:34:53 AM »
I seem to recall proposing such a scheme, yes, However, the initiative, such as it was, has rather been side-lined by the, perhaps belated, realisation that I'm going to have to high-jack your thread WeiDU is in a rather vulnerable state, technologically. Already WeiDU cannot be compiled with contemporary OCaml and who knows how long it will be until it is no longer straightforward to build old-enough versions of OCaml on contemporary operating systems.

I have slowly come to the realisation that a re-implementation will be necessary, as it would be a very extensive re-write to address the mutable strings, anyway, and if I'm doing major work like that I'd better choose a language that has parallelism. I have begun sketching on a project like that, but it might surprise you to learn I have nothing to show for it, yet.

Offline Sam.

  • The moose man
  • Planewalker
  • *****
  • Posts: 86
  • Gender: Male
    • Classic Adventures Homepage
Re: Conversion of tp2 into JSON/other structured data
« Reply #2 on: April 26, 2022, 05:54:35 AM »
Are you eyeing a particular language?  It would be nice to pick one without a string/buffer size limit.
"Ok, I've just about had my FILL of riddle asking, quest assigning, insult throwing, pun hurling, hostage taking, iron mongering, smart-arsed fools, freaks, and felons that continually test my will, mettle, strength, intelligence, and most of all, patience! If you've got a straight answer ANYWHERE in that bent little head of yours, I want to hear it pretty damn quick or I'm going to take a large blunt object roughly the size of Elminster AND his hat, and stuff it lengthwise into a crevice of your being so seldom seen that even the denizens of the nine hells themselves wouldn't touch it with a twenty-foot rusty halberd! Have I MADE myself perfectly CLEAR?!"
-- <CHARNAME> to Portalbendarwinden

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: Conversion of tp2 into JSON/other structured data
« Reply #3 on: May 07, 2022, 06:11:03 PM »
I wouldn't expect that to be a problem. It's already mostly a non-issue, with the 64-bit build of WeiDU.

Offline AL|EN

  • Planewalker
  • *****
  • Posts: 391
  • Gender: Male
Re: Conversion of tp2 into JSON/other structured data
« Reply #4 on: July 11, 2022, 07:54:21 AM »
If I'm reading this correctly, 're-implementation' means API compatibility with the current WeiDU. Can you share your prediction regarding the possible effect of the WeiDU Roadmap, if any?
Project Infinity public BETA - mod manager for Infinity Engine games
Modder's Guide to Github - you cannot have progress without committing changes

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: Conversion of tp2 into JSON/other structured data
« Reply #5 on: October 30, 2022, 07:00:54 AM »
Yes, the idea is the interface would be fully compatible with that of WeiDU (or as close as I could reasonably make it). If I ever start making decent progress, I'd be shooting for the roadmap targets and I imagine WeiDU would start moving towards formally being put into maintenance mode.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: