Search found 37 matches

by wysardry
Sun Feb 18, 2024 11:13 pm
Forum: Announcement
Topic: Old School Text Advenure System
Replies: 15
Views: 1118

Re: Old School Text Advenure System

The majority of people who currently write text adventures use one of the systems that can export files in a Z-machine format, as there are interpreters for most disk-based platforms.
by wysardry
Fri Feb 16, 2024 11:18 pm
Forum: Announcement
Topic: Old School Text Advenure System
Replies: 15
Views: 1118

Re: Old School Text Advenure System

Interesting. Is this a text only system? I've been looking for something that doesn't include graphics. Would it be practical (for others) to create players/interpreters for 8-bit systems? I would be interested in testing if the answer to both questions is "yes". You might want to consider...
by wysardry
Sun Aug 28, 2022 9:36 pm
Forum: Feature Requests and Wishlists
Topic: Platform agnostic C code output
Replies: 1
Views: 448

Platform agnostic C code output

It would be nice if there was an option for platform agnostic code output for the C backend when creating text only console programs, so that more targets could be supported via the appropriate C compilers. For example, SDCC or z88dk could be used to target Z80 machines. Nim has this option and is o...
by wysardry
Sun Aug 28, 2022 9:16 pm
Forum: General Discussion
Topic: Can SDCC (Small Device C Compiler) be used with PureBasic?
Replies: 2
Views: 476

Re: Can SDCC (Small Device C Compiler) be used with PureBasic?

That's disappointing. It looks as though Nim is still my best option then, as BCX also adds platform specific code.
by wysardry
Sun Aug 28, 2022 5:01 am
Forum: General Discussion
Topic: Can SDCC (Small Device C Compiler) be used with PureBasic?
Replies: 2
Views: 476

Can SDCC (Small Device C Compiler) be used with PureBasic?

I've only just found out about the new C compiler options in PB 6 and immediately wondered if the C output could be used with the SDCC or z88dk compilers?

This would be for console only text based programs on retro computers with a Z80 processor (which those compilers target).
by wysardry
Fri Aug 18, 2017 8:29 am
Forum: Coding Questions
Topic: Using PureBasic to create websites?
Replies: 29
Views: 13676

Re: Using PureBasic to create websites?

Thanks. The Dynamic Dialogues module in that thread looks like it would make the process easier. I'm not sure if any of my screens will need to have quite so many different types of input areas as in Andre's example, but overall the total might well be similar. I haven't yet decided whether to inclu...
by wysardry
Fri Aug 18, 2017 7:58 am
Forum: Tricks 'n' Tips
Topic: MODULE: DynamicDialogs - creating complex GUIs the easy way
Replies: 66
Views: 36778

Re: DynamicDialogs - creating dynamic Dialogs the easy way .

But because I never use this combination for my own I just want to ask, if there is any interest / need for this improvement to make sure it's worth the effort. I would also be interested in this improvement. I'm in the process of planning and creating a prototype of an offline blog/website editor ...
by wysardry
Thu Aug 17, 2017 12:11 pm
Forum: Coding Questions
Topic: Using PureBasic to create websites?
Replies: 29
Views: 13676

Re: Using PureBasic to create websites?

I've read a little more of the manual and am now thinking that using SQLite to store most of the data would be a good move. I haven't yet decided whether to store the HTML for each post in the database too, as I'm not sure whether people would need an option to edit them in an external HTML editor. ...
by wysardry
Wed Aug 16, 2017 12:29 pm
Forum: Coding Questions
Topic: Ordinal number function in PureBasic?
Replies: 9
Views: 2646

Re: Ordinal number function in PureBasic?

Thanks, Little John. That also worked and is slightly easier to understand.

I tested both of the latest versions on numbers over 1000 too, and they still work as expected. :)
by wysardry
Wed Aug 16, 2017 12:02 pm
Forum: Coding Questions
Topic: Ordinal number function in PureBasic?
Replies: 9
Views: 2646

Re: Ordinal number function in PureBasic?

The output is now:- 1st 2nd 3rd 4th 5th 6th 7th 8th 9th 10th 11th 12th 13th 14th 15th 16th 17th 18th 19th 20th 21st 22nd 23rd 24th ... 99th 100th 101st 102nd 103rd 104th 105th 106th 107th 108th 109th 110th 111th 112th 113th 114th ... 210th 211th 212th 213th 214th 215th 216th 217th 218th 219th 220th ...
by wysardry
Wed Aug 16, 2017 11:45 am
Forum: Coding Questions
Topic: Ordinal number function in PureBasic?
Replies: 9
Views: 2646

Re: Ordinal number function in PureBasic?

I'm afraid that one is broken at 11, 12, 13, 111, 112, 113 etc. as it prints 11st, 12nd, 13rd, 111st, 112nd, 113rd etc.
by wysardry
Wed Aug 16, 2017 11:31 am
Forum: Coding Questions
Topic: Ordinal number function in PureBasic?
Replies: 9
Views: 2646

Re: Ordinal number function in PureBasic?

That seems to work up to 110th, but then outputs:-

Code: Select all

111st
112nd
113rd
114th
115th
116th
117th
118th
119th
120th
It does the same from 211 onwards too.

I'm afraid that I don't know PureBasic well enough (yet) to fix it.
by wysardry
Wed Aug 16, 2017 9:51 am
Forum: Coding Questions
Topic: Ordinal number function in PureBasic?
Replies: 9
Views: 2646

Ordinal number function in PureBasic?

Is there a built-in function to add a suffix to a number to create an ordinal number? By that, I mean, is there a way to change 1, 2, 3, 4 etc. into 1st, 2nd, 3rd, 4th etc.?

This isn't for dates, so would need to work for numbers over 31 too.
by wysardry
Wed Aug 09, 2017 4:57 pm
Forum: Coding Questions
Topic: Using PureBasic to create websites?
Replies: 29
Views: 13676

Re: Using PureBasic to create websites?

Marc56us : Thanks. It looks like the preferences option would be the easiest to understand (for me and other users). Being able to write comments in the file from within the program is a handy feature. I am starting to skip parts of the manual now, if they don't seem relevant or are too advanced, b...
by wysardry
Wed Aug 09, 2017 3:28 am
Forum: Coding Questions
Topic: Using PureBasic to create websites?
Replies: 29
Views: 13676

Re: Using PureBasic to create websites?

I've reached chapter 71 of the PDF version of the manual, so far. There are quite a few commands and functions that look like they would be useful. :) The more I think about this, the more likely it seems that the program could be useful to others. With that in mind, is there an obvious way to inclu...