Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Community
General Tabletop Discussion
*Geek Talk & Media
A standard RPG gaming API
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Klintus Fang" data-source="post: 419249" data-attributes="member: 3580"><p>Now I am misunderstanding. If the program in question requires a user interface in order to do anything, then why is it listening to the TCP/IP port? Are you suggesting that if program X want to create an NPC wizard that the user has to open up the "npc creation program" manually instruct the program to create the wizard, and then manually instruct the program to send the data across to program X? If that's the usage model you are envisioning then I don't see it being useful at all.</p><p></p><p></p><p></p><p>Well, what I meant to say was that I played with the gui and decided the final product would only be marginally useful because it required everything to be manually configured and wasn't compiled as a library.</p><p></p><p></p><p></p><p>that is not true. all you have to do is compile it as a library and then provide an external api that looks like this:</p><p></p><p>bool createTown(town_configuration_data_t& input, completed_town_t& output);</p><p></p><p>then somewhere above that define the structure town_configuration_data_t so that all the options that the user currently has to manually enter through the gui are variables in this structure. then define the structure completed_town_t so that all the information about the completed town are variables in that structure.</p><p></p><p>Then you compile your town generator as a dll and distribute it with a header file that defines the things above. Then I install that dll on my machine and I write a program that wants to create a town. I instantiate a town_configuration_data_t structure. I fill in the fields that instruct the town generator what sort of town I want. I instantiate an empty completed_town_t structure. Then I call createTown. The town generator looks at the configuration data, builds a town based upon what the configuration struct says, puts the results in the completed_town_t structure and returns true to let the calling program know that it was successful.</p></blockquote><p></p>
[QUOTE="Klintus Fang, post: 419249, member: 3580"] Now I am misunderstanding. If the program in question requires a user interface in order to do anything, then why is it listening to the TCP/IP port? Are you suggesting that if program X want to create an NPC wizard that the user has to open up the "npc creation program" manually instruct the program to create the wizard, and then manually instruct the program to send the data across to program X? If that's the usage model you are envisioning then I don't see it being useful at all. Well, what I meant to say was that I played with the gui and decided the final product would only be marginally useful because it required everything to be manually configured and wasn't compiled as a library. that is not true. all you have to do is compile it as a library and then provide an external api that looks like this: bool createTown(town_configuration_data_t& input, completed_town_t& output); then somewhere above that define the structure town_configuration_data_t so that all the options that the user currently has to manually enter through the gui are variables in this structure. then define the structure completed_town_t so that all the information about the completed town are variables in that structure. Then you compile your town generator as a dll and distribute it with a header file that defines the things above. Then I install that dll on my machine and I write a program that wants to create a town. I instantiate a town_configuration_data_t structure. I fill in the fields that instruct the town generator what sort of town I want. I instantiate an empty completed_town_t structure. Then I call createTown. The town generator looks at the configuration data, builds a town based upon what the configuration struct says, puts the results in the completed_town_t structure and returns true to let the calling program know that it was successful. [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Geek Talk & Media
A standard RPG gaming API
Top