Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bugs introduced in 580 #1240

Conversation

TextMisadventures
Copy link
Contributor

@TextMisadventures TextMisadventures commented Nov 25, 2024

Fix Bugs Introduced in 580

  • transcript
    • added missing function to player.js
    • changed desktop player file saving format from HTML to TXT
    • added localStorage functionality for the web player
    • removed in-game transcript viewing
    • automatically uses game name for transcript name when command bar is hidden

Closes #1054


  • log
    • restored log window in the desktop player
    • removed ability to view the log in-game

Closes #1025


Closes #1202


  • AGAIN command
    • some templates are not all lower-case, so the comparison to LCase(command) failed sometimes

Fixed by @Pertex

Closes #1284


Closes #1052


  • enter_verb
    • fix stolen from mrangel forum post

Closes #1121


  • save command
    • now uses saveGame() when online
    • scrolls when printing saveGameResponse messages

Closes #1200


  • DictionaryRemove
    • fixed typo

Fix issue with . in alias when game.multiplecommands is true

Closes #1270


  • update transcript.md doc

Fix issue with GetListDisplayAlias

I modified GetListDisplayAlias to use the text processor if an object's listalias attribute was defined as a string.

Using an image like {img:foo.png} will cause errors when clicking the verb buttons in the pane.

Closes #1259


Tidy up language files

  • remove code that "includes" EditorEnglish.aslx when English.aslx is already included

Addition submitted by @Pertex

Added option to use custom image in the location bar, complete with editor controls

TextMisadventures and others added 12 commits November 24, 2024 20:49
- transcript
  - added missing function to player.js
  - changed desktop player file saving format from HTML to TXT
  - added localStorage functionality for the web player
  - removed in-game transcript viewing
  - automatically uses game name for transcript name when command bar is hidden

Closes textadventures#1054

---
- log
  - restored log window in the desktop player
  - removed ability to view the log in-game

Closes textadventures#1025

---
- AllRooms()
  - fixed by @Pertex

Closes textadventures#1202

---
- setBackground()
  - fixed by @ThePix

Closes textadventures#1052

---
- enter_verb
  - fix stolen from mrangel forum post

Closes textadventures#1121

---
- save command
  - now uses `saveGame()` when online
  - scrolls when printing saveGameResponse messages

Closes textadventures#1200

---
- DictionaryRemove
  - fixed typo

---
- update transcript.md doc

---

Tidy up language files

- remove code that "includes" EditorEnglish.aslx when English.aslx is already included

---
Addition submitted by @Pertex

Added option to use custom image in the location bar, complete with editor controls
Had to move the line where it clears the input bar
Set `platform` to "desktop".

(Moving this from playercore.js to this file, since playercore.js is shared by all platforms.)
https://textadventures.co.uk/forum/quest/topic/ykouw7idaeytupcl3rmywa/isnt-there-an-easy-way-to-add-text-processor-commands#b6d3a7cd-a2a8-42c6-a9b7-d74a76d40f62

> You can do `{:span id="spoooon"}spoon?{/span}` or whatever if you're getting frustrated with the online editor :)

---
Also added `@@@lt@@@` to be replaced with `<`, like `@@@OPEN@@@` is replaced with `{`.
Better late than never
I modified GetListDisplayAlias to use the text processor if an object's listalias attribute was defined as a string.

Using an image like {img:foo.png} will cause errors when clicking the verb buttons in the pane.

Closes textadventures#1259
Handle alias including a `.` when `game.multiplecommands` is `true`

Fix error in ProcessTextCommand_Element
Closes textadventures#1284

Some of the templates are not all lower-case. This will make both the command and the value of the template(s) lower-case before comparing them.

Co-Authored-By: Pertex <[email protected]>
I left out a `"`
@KVonGit
Copy link
Collaborator

KVonGit commented Dec 14, 2024

I'm not satisfied with the way the transcripts are accessed online.

  • There is a game on the site that acts as a page to view, download, or delete the transcripts in your localStorage
  • If you choose to view one, the pop-up blocker will cause the window to open with nothing loaded the first time.

TextMisadventures and others added 4 commits December 22, 2024 18:19
Closes textadventures#1297

> Currently to move the player you have to move game.pov, and this is commonly confused with the ChangePOV function. So let's add a "move player" function to live alongside "move object", which should be nice and easy to find.
- Alex
Users occasionally use ChangePOV thinking it will move the player. This will now throw an error if the object has no parent object.

Closes textadventures#1298
Changed the `ShowMenu` link from `ASLEvent` to `msg` in earlier commit. This changes it back.

Also add code to print the response to `ShowMenu` with a new template `ShowMenuResponsePrompt` which is `>>` in **English.aslx**

Co-Authored-By: Pertex <[email protected]>
Replace `&nbsp;` with ` ` before writing to transcript
Copy link
Contributor

@alexwarren alexwarren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is far too big for me to review I'm afraid - could you please split this into a separate PR for each change? That way we can merge these independently or discuss them separately if needed.

@KVonGit
Copy link
Collaborator

KVonGit commented Dec 27, 2024

That's no problem at all. I was just thinking I should do this the other day.

That's the way I had it I had each fix in a separate PR the first time. I think there were 19 of them.

Most of these fixes involve the same files, though; so, submitting them all at once didn't work out well, because each branch had to build off the last to avoid conflicts, and the 19th PR was the equivalent of this one.

I'd like to have them all submitted and ready to go, of course (for days like today, haha), but the only other approach I know of is to submit one fix at a time. When each gets merged (or finalized if not merged), then I'll submit the next. (If you have a better approach, I'd be down for that, of course. I'm not as GitHub-savvy as I'd like to be.)

@KVonGit KVonGit closed this Dec 27, 2024
@alexwarren
Copy link
Contributor

I think one fix at a time is the way to go, and I'll try to review them promptly (this next week or so is good while I'm on a break from work).

@TextMisadventures TextMisadventures deleted the Fix-Bugs-Introduced-in-580 branch January 21, 2025 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment