User Tools

Site Tools


misc_func

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
misc_func [2022/07/05 15:08] – [File] adminmisc_func [2025/02/25 22:20] (current) – external edit 127.0.0.1
Line 838: Line 838:
 |**Parameters:** |**Parameters:**
 |scriptfilename |scriptfilename
 +
 +|}
 +
 +===== Maps =====
 +{|style="font-size:85%; border:solid 2px; width: 50%;"
 +|style="font-size:150%;  padding: 2px" colspan="2" | **Co-Ordinates of a Decoded Map**
 +|- style="background-color:#f0f0f0;"
 +|**Syntax**
 +|style="width: 90%" | Misc.GetMapInfo(serial)
 +|-
 +|colspan="2" |**Description:**
 +|-
 +|colspan="2" | Retrieve the co-ordinates of a decoded t-map. Your code would look like:
 +<code>
 +#
 +mapInfo = Misc.GetMapInfo(0x400BFD6C)
 +print("Treasure at ({}, {}), Origin ({}, {}), pin at ({}, {})"
 +    .format(mapInfo.MapOrigin.X+mapInfo.PinPosition.X, mapInfo.MapOrigin.Y+mapInfo.PinPosition.Y,
 +            mapInfo.MapOrigin.X, mapInfo.MapOrigin.Y, mapInfo.PinPosition.X, mapInfo.PinPosition.Y))
 +#
 +</code>
 +
 +|- style="background-color:#f0f0f0;"
 +|**Note:**
 +|The pin position is an offset from the origin, so you have to add them to get absolute location
 +
 +|- style="background-color:#f0f0f0;"
 +|**Returns**
 +|MapInfo{ PinPosition, MapOrigin, MapEnd }
 +|-
 +|**In Object:**
 +|Misc
 +|- style="background-color:#f0f0f0;"
 +|**Parameters:**
 +|serial - Serial of the t-map
  
 |} |}
misc_func.1657033684.txt.gz · Last modified: 2022/09/03 22:41 (external edit)

Exception: Git command failed to perform periodic pull: hint: Pulling without specifying how to reconcile divergent branches is hint: discouraged. You can squelch this message by running one of the following hint: commands sometime before your next pull: hint: hint: git config pull.rebase false # merge (the default strategy) hint: git config pull.rebase true # rebase hint: git config pull.ff only # fast-forward only hint: hint: You can replace "git config" with "git config --global" to set a default hint: preference for all repositories. You can also pass --rebase, --no-rebase, hint: or --ff-only on the command line to override the configured default per hint: invocation. Warning: Permanently added 'github.com,140.82.113.3' (ECDSA) to the list of known hosts. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0670 for '/var/www/html/dokuwiki/data/dokuwiki' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "/var/www/html/dokuwiki/data/dokuwiki": bad permissions git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

Exception: Git command failed to perform periodic pull: hint: Pulling without specifying how to reconcile divergent branches is hint: discouraged. You can squelch this message by running one of the following hint: commands sometime before your next pull: hint: hint: git config pull.rebase false # merge (the default strategy) hint: git config pull.rebase true # rebase hint: git config pull.ff only # fast-forward only hint: hint: You can replace "git config" with "git config --global" to set a default hint: preference for all repositories. You can also pass --rebase, --no-rebase, hint: or --ff-only on the command line to override the configured default per hint: invocation. Warning: Permanently added 'github.com,140.82.113.3' (ECDSA) to the list of known hosts. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0670 for '/var/www/html/dokuwiki/data/dokuwiki' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "/var/www/html/dokuwiki/data/dokuwiki": bad permissions git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

An unforeseen error has occured. This is most likely a bug somewhere. It might be a problem in the gitbacked plugin.

More info has been written to the DokuWiki error log.