Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

pskov-again.html 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <!DOCTYPE html>
  2. <html>
  3. <meta charset="utf-8">
  4. <head>
  5. <link rel="stylesheet" href="../../style.css">
  6. </head>
  7. <body>
  8. <script data-goatcounter="https://services.opengamestudio.org:443/count" async src="//services.opengamestudio.org:443/count.js"></script>
  9. <div id="header">
  10. <div class="header2">
  11. <div class="menu">
  12. <a href="../../en/news/index.html">News</a>
  13. <a href="../../en/game/index.html">Games</a>
  14. <a href="../../en/tool/index.html">Tools</a>
  15. <a href="../../en/page/about.html">About</a>
  16. </div>
  17. <div id="lang">
  18. <a href="../../en/news/pskov-again.html">EN</a>
  19. <a href="../../ru/news/pskov-again.html">RU</a>
  20. </div>
  21. <div class="clear"></div>
  22. </div>
  23. </div>
  24. <h3 class="left_item_title">In the news...</h3>
  25. <center>
  26. <div class="news_item">
  27. <h2 class="news_item_title">
  28. <a href="pskov-again.html">Back to the development of "PSKOV"</a>
  29. </h2>
  30. <p class="news_item_date">
  31. 2024-11-14 00:00
  32. </p>
  33. <div class="news_item_contents">
  34. <p><img src="../../images/2024_lha-path.gif" alt="lha" /></p>
  35. <h1 id="pskovtoday">"PSKOV" today</h1>
  36. <p>Now, we have an old "PSKOV" version and we need an improved one.</p>
  37. <p>First, we should recall what "PSKOV" consists of:</p>
  38. <ol>
  39. <li>The <a href="https://opengamestudio.org/pskov/en/pskov_1.0.0.html">generator</a> itself in the form of HTML page with JavaScript</li>
  40. <li>Helper <a href="https://opengamestudio.org/lfsa/en/index.html">Python script</a> to save generated files to disk</li>
  41. </ol>
  42. <p>Helper script is used to bypass web page restriction to access
  43. local file system.</p>
  44. <p>The script itself is a tiny web server with the following commands:</p>
  45. <table>
  46. <thead>
  47. <tr>
  48. <th>№</th>
  49. <th>Command</th>
  50. <th>Details</th>
  51. </tr>
  52. </thead>
  53. <tbody>
  54. <tr>
  55. <td>1</td>
  56. <td><code>GET /path</code></td>
  57. <td>Get current working directory path</td>
  58. </tr>
  59. <tr>
  60. <td>2</td>
  61. <td><code>POST /list</code></td>
  62. <td>Get a list of files in the requested directory</td>
  63. </tr>
  64. <tr>
  65. <td>3</td>
  66. <td><code>POST /read</code></td>
  67. <td>Get file's contents</td>
  68. </tr>
  69. <tr>
  70. <td>4</td>
  71. <td><code>POST /write</code></td>
  72. <td>Write file's contents</td>
  73. </tr>
  74. </tbody>
  75. </table>
  76. <h1 id="pskovtomorrow">"PSKOV" tomorrow</h1>
  77. <p>Thus, the simplest way to get back to "PSKOV" development is to rewrite the
  78. helper script. I decided to replace Python with Kotlin because:</p>
  79. <ol>
  80. <li>Kotlin can be compiled for desktop, mobile, and web</li>
  81. <li>Kotlin is strictly typed</li>
  82. </ol>
  83. <p>These two factors simplify future work with portable code.</p>
  84. <p>As of now, I have <code>GET /path</code> implemented for JVM, macOS, and Windows (image
  85. in the beginning).</p>
  86. <h1 id="november">November</h1>
  87. <p>I plan to implement the following commands in November:</p>
  88. <ul>
  89. <li><code>POST /list</code></li>
  90. <li><code>POST /read</code></li>
  91. </ul>
  92. </div>
  93. </div>
  94. <div id="disqus_thread"></div>
  95. <script>
  96. var disqus_config = function () {
  97. this.page.url = "https://opengamestudio.org/en/news/pskov-again.html";
  98. this.page.identifier = "pskov-again.html";
  99. };
  100. (function() { // DON'T EDIT BELOW THIS LINE
  101. var d = document, s = d.createElement('script');
  102. s.src = 'https://opengamestudio.disqus.com/embed.js';
  103. s.setAttribute('data-timestamp', +new Date());
  104. (d.head || d.body).appendChild(s);
  105. })();
  106. </script>
  107. <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  108. <div id="footer">
  109. The site has been generated by <a href="http://opengamestudio.org/pskov">PSKOV</a>
  110. from <a href="http://github.com/ogstudio/site-opengamestudio">this source code</a>.
  111. </div>
  112. </center>
  113. </body>
  114. </html>