<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang xml:lang>
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>ygopro_编译</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list[class]{list-style: none;}
ul.task-list li input[type="checkbox"] {
font-size: inherit;
width: 0.8em;
margin: 0 0.8em 0.2em -1.6em;
vertical-align: middle;
}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
</style>
<style type="text/css">@media screen and (min-aspect-ratio:1/1) {html {background-color: f8f8f8;background-image:linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%), linear-gradient(45deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%);background-size: 8px 8px;background-position: 0 0, 16px 8px;}body {border: solid #a0a0a0 1px ;border-radius: 20px ;padding: 26px ;margin: 16px ;color: #101010 ;background: linear-gradient(to right, #efefefff, #efefeffc);padding: 2em 11%;line-height: 2.1em;box-shadow: 0px 0px 1px rgba(160, 160, 160, 1), 0px 0px 1px rgba(160, 160, 160, 1);}}h1,h2,h3,h4,h5,h6 {font-size: 1.5em;color: #3F5770;border-bottom: 1px solid #dddddd;margin: 1.2em 0em;}a {list-style: none;border-right: 0.3em solid #5183C466;border-left: 0.3em solid #5183C466;padding: 0.2em 0.4em;margin-bottom: 0.2em;margin-top: 0.3em;background-color: white;text-decoration-color: blue;border-radius: 0.2em;}a:visited {color: blue;text-decoration-color: white;}a:active {color: red;}nav ul li {margin: 1.2em 0em;}p::before {}p {margin: 1.2em 0;letter-spacing: 0.15em;}.title {background-color: white;font-size: 2em;text-align: center;}b {background-color: white;list-style: none;border-right: 0.3em solid #5183C466;border-left: 0.3em solid #5183C466;padding: 0.2em 0.4em;margin-bottom: 0.2em;margin-top: 0.3em;border-radius: 0.2em;}details {border-bottom: 1px solid #dddddd;}details > summary {list-style: none;border-right: 0.3em solid #5183C466;border-left: 0.3em solid #5183C466;padding: 0.2em 0.4em;margin-bottom: 0.2em;margin-top: 0.3em;outline: none;border-radius: 0.2em;}pre {background: #f6f6f6;border-left: 0.5em solid #ccc;padding: 0.4em;border-radius: 0.2em;overflow-wrap:break-word;}pre:active {color: red;}code {font-family: "Verdana";}button {background: #ffffff;color: #20894d;}button:active {color: red;}</style>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</head>
<body>
<header id="title-block-header">
<h1 class="title">ygopro_编译</h1>
</header>
<nav id="TOC" role="doc-toc">
<ul>
<li><a href="#前言" id="toc-前言"><span class="toc-section-number">1</span> 前言</a></li>
<li><a href="#新建文件夹" id="toc-新建文件夹"><span class="toc-section-number">2</span> 新建文件夹</a></li>
<li><a href="#编译器" id="toc-编译器"><span class="toc-section-number">3</span> 编译器</a></li>
<li><a href="#lua" id="toc-lua"><span class="toc-section-number">4</span> lua</a></li>
</ul>
</nav>
<h1 data-number="1" id="前言"><span class="header-section-number">1</span> 前言</h1>
<p>来,走起,我们来编译一个小且可用的 ygopro 。</p>
<p>功能不求全,只要有残局功能就够了。</p>
<h1 data-number="2" id="新建文件夹"><span class="header-section-number">2</span> 新建文件夹</h1>
<p>万事第一步,先新建个文件夹……</p>
<p>然后,不做了,等一年后再来看,进度 0%,哈哈,这才是正常轨迹。</p>
<p>上面虽然是玩笑话,但也估摸着是我的真实经历,只不过我这个拖延王拖延了大概六年。</p>
<p>好了,给这个文件夹改名吧。</p>
<p>我则取名叫:</p>
<pre><code>ygopro</code></pre>
<h1 data-number="3" id="编译器"><span class="header-section-number">3</span> 编译器</h1>
<p>编译时,一个很麻烦的东西就是编译器。</p>
<p>很长一段时间,我都不知道到哪里去下编译器。</p>
<p>像这种基础性的东西难道不应该有某某一个人把它们汇总起来让人随便下吗?</p>
<p>后来我发现,诶,还真有,但那人的网站在百度上很难搜。</p>
<p>现在的搜索引擎,早不名副其实了。</p>
<p>我们要下载的编译器叫 msvc ,准确点,应该叫 MSVC 。</p>
<p>不过我懒得换大小写,后文直接叫 msvc 了。</p>
<p>msvc 是一家叫微软的公司出的,这公司现在很鸡贼,把 msvc
的下载页面给隐藏了,狂推 vs 的下载。</p>
<pre><code>https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-tools</code></pre>
<p>下载下来之后,会有一个 exe ,直接进行执行。</p>
<p>然后就会有一大堆东西让你选,你挑着系统 sdk 与
c++编译工具安装就行了。</p>
<p>但这里会冒出来一个大问题:</p>
<p>下不动!</p>
<p>网络问题,我还真没法解决。</p>
<p>中国的网络封锁太强,自己看情况想办法绕过去吧。</p>
<p>就算我这写了一点解决网络问题的方法,以现在的封锁趋势,过一段时间也就不能用了。</p>
<p>不过,你还是有可能下得动的,因为彻底封死网络会伤某些人的心,所以现在是采用人群分化的方法来封锁网络,顺便还能挑起人群之间的内部矛盾。</p>
<h1 data-number="4" id="lua"><span class="header-section-number">4</span> lua</h1>
<p>先下载 lua 的源码:</p>
<pre><code>https://www.lua.org/download.html</code></pre>
<p>直接下最新版本。</p>
<p>顺便一说, lua5.3 有 bug ,性能也不如 lua5.4 。</p>
<p>下完之后,解压,会出现一大堆文件,别怕。</p>
<script>
document.onclick = function(event) {
var target = event.target
if (target.tagName == "PRE"
|| target.tagName == "CODE") {
if (window.getSelection().toString() !== "") {
return
}
var range = document.createRange();
range.selectNodeContents(target);
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
var successful = document.execCommand("copy");
target.removeAttribute("contenteditable");
window.getSelection().removeAllRanges();
}
}
</script>
</body>
</html>