sc2ai 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/docker_build/Dockerfile.ruby +1 -18
- data/lib/sc2ai/version.rb +1 -1
- data/lib/sc2ai.rb +0 -30
- metadata +9 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3381af0733cb9b44a40246320a45ce09b3c7f0b0238b80cd5534865c0014b680
|
4
|
+
data.tar.gz: 913fee720f4f6103f7b64631f06d1c3248a49808a558bee0b9f95fab7b0ecd9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 340af3f03ef5284e833b9edd4ede7eba36ea9abbae312e30b7417cceb674a5e0a4796e9e18cfad4bfab1affd448689a7616fabdba01451a150ea252db9036008
|
7
|
+
data.tar.gz: a747b1af3bfc97f20da16b094022f8f1d65ee722441e7c044497a29fc109c2e63f29096401d865ee7563c7da62f94d18b15786c9fe3e1c18bc75851c42e2959a
|
@@ -4,7 +4,7 @@ LABEL service="bot-ruby-local"
|
|
4
4
|
USER root
|
5
5
|
WORKDIR /root/ruby-builder
|
6
6
|
|
7
|
-
ARG RUBY_VERSION=3.4.
|
7
|
+
ARG RUBY_VERSION=3.4.7
|
8
8
|
ARG DEBIAN_DISABLE_RUBYGEMS_INTEGRATION=true
|
9
9
|
|
10
10
|
# Deps - Ruby build
|
@@ -31,23 +31,6 @@ RUN rm -rf ./ruby-$RUBY_VERSION
|
|
31
31
|
RUN rm yaml-0.2.5.tar.gz
|
32
32
|
#RUN rm -rf ./yaml-0.2.5
|
33
33
|
|
34
|
-
# Package config
|
35
|
-
# numo-linalg needs openblas, copy to ruby-prefix/lib/ dir.
|
36
|
-
RUN apt download libopenblas0-serial
|
37
|
-
RUN mkdir openblas
|
38
|
-
RUN dpkg-deb -x ./libopenblas*.deb openblas
|
39
|
-
RUN cp -d openblas/usr/lib/x86_64-linux-gnu/openblas-serial/* /root/ruby-builder/.ruby/lib/
|
40
|
-
RUN rm -rf ./openblas
|
41
|
-
RUN rm ./libopenblas0-serial*.deb
|
42
|
-
|
43
|
-
RUN apt download libgfortran5
|
44
|
-
RUN mkdir libgfortran5
|
45
|
-
RUN dpkg-deb -x ./libgfortran*.deb libgfortran5
|
46
|
-
RUN find libgfortran5
|
47
|
-
RUN cp libgfortran5/usr/lib/x86_64-linux-gnu/libgfortran.so.5 /root/ruby-builder/.ruby/lib/
|
48
|
-
RUN rm -rf ./libgfortran5
|
49
|
-
RUN rm ./libgfortran5*.deb
|
50
|
-
|
51
34
|
RUN /root/ruby-builder/.ruby/bin/ruby --yjit -v
|
52
35
|
|
53
36
|
ENV PATH "/root/ruby-builder/.ruby/bin:$PATH"
|
data/lib/sc2ai/version.rb
CHANGED
data/lib/sc2ai.rb
CHANGED
@@ -5,36 +5,6 @@ require "logger"
|
|
5
5
|
# In the event major runs, let it compact
|
6
6
|
GC.auto_compact = true
|
7
7
|
|
8
|
-
# For Numo linear algebra, fix paths for specific macOS's and on ladder
|
9
|
-
library_paths = if ENV["LD_LIBRARY_PATH"].nil?
|
10
|
-
[]
|
11
|
-
else
|
12
|
-
ENV["LD_LIBRARY_PATH"].split(":")
|
13
|
-
end
|
14
|
-
library_paths << [
|
15
|
-
# MacOS
|
16
|
-
"/opt/homebrew/opt/lapack/lib",
|
17
|
-
"/opt/homebrew/opt/lapack/lib",
|
18
|
-
"/opt/homebrew/opt/openblas/lib",
|
19
|
-
# Ladder deploy
|
20
|
-
RbConfig::CONFIG["libdir"]
|
21
|
-
]
|
22
|
-
ENV["LD_LIBRARY_PATH"] = library_paths.compact.join(":")
|
23
|
-
|
24
|
-
begin
|
25
|
-
require "numo/linalg/autoloader"
|
26
|
-
rescue => e
|
27
|
-
puts "Error from numo-linalg: #{e}"
|
28
|
-
puts "Lets get some linear algebra on your system..."
|
29
|
-
puts 'Mac: "brew install openblas"'
|
30
|
-
puts 'Debian/Ubuntu and WSL2: "apt install libopenblas0"'
|
31
|
-
if Gem.win_platform?
|
32
|
-
puts 'Windows: from CMD "ridk enable & pacman -S mingw-w64-ucrt-x86_64-openblas --noconfirm".'
|
33
|
-
end
|
34
|
-
puts 'That should be enough. If you still experience issues, "bundle install --redownload" to rebuild dependencies anew'
|
35
|
-
exit
|
36
|
-
end
|
37
|
-
|
38
8
|
# noinspection RubyMismatchedArgumentType
|
39
9
|
Dir.glob(File.join(__dir__, "sc2ai", "overrides", "**", "*.rb")).each do |file|
|
40
10
|
require(file)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sc2ai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dyson Returns
|
@@ -79,48 +79,20 @@ dependencies:
|
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '1.7'
|
82
|
-
- !ruby/object:Gem::Dependency
|
83
|
-
name: numo-narray
|
84
|
-
requirement: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - "~>"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '0.9'
|
89
|
-
type: :runtime
|
90
|
-
prerelease: false
|
91
|
-
version_requirements: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - "~>"
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: '0.9'
|
96
|
-
- !ruby/object:Gem::Dependency
|
97
|
-
name: numo-linalg
|
98
|
-
requirement: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - "~>"
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: '0.1'
|
103
|
-
type: :runtime
|
104
|
-
prerelease: false
|
105
|
-
version_requirements: !ruby/object:Gem::Requirement
|
106
|
-
requirements:
|
107
|
-
- - "~>"
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '0.1'
|
110
82
|
- !ruby/object:Gem::Dependency
|
111
83
|
name: rumale
|
112
84
|
requirement: !ruby/object:Gem::Requirement
|
113
85
|
requirements:
|
114
86
|
- - "~>"
|
115
87
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
88
|
+
version: '2.0'
|
117
89
|
type: :runtime
|
118
90
|
prerelease: false
|
119
91
|
version_requirements: !ruby/object:Gem::Requirement
|
120
92
|
requirements:
|
121
93
|
- - "~>"
|
122
94
|
- !ruby/object:Gem::Version
|
123
|
-
version: '
|
95
|
+
version: '2.0'
|
124
96
|
- !ruby/object:Gem::Dependency
|
125
97
|
name: fiddle
|
126
98
|
requirement: !ruby/object:Gem::Requirement
|
@@ -423,13 +395,12 @@ metadata:
|
|
423
395
|
post_install_message: "Don't bot alone! Join the StarCraft 2 AI Arena discord server
|
424
396
|
:) \nTutorials and help available: https://sc2ai.pages.dev/\n\n\e[31mBREAKING CHANGES\e[0m:
|
425
397
|
Version 0.8.0\n- StarCraft 2 v4.10 no longer works on MacOS 26+\nWe'll run on ladder's
|
426
|
-
patch-version going forward (currently v5.0.14).\n \n\tTo install
|
427
|
-
\n\t\e[36msc2ai download_ladder_version\e[0m\n\n\tThen
|
428
|
-
identifier \"ladder\": \n\t\e[32mSc2.config { |c| c.version
|
429
|
-
update sc2ai.yml version to \"ladder\":\n\t\e[32m---\e[0m\n\t\e[32mversion:
|
430
|
-
ID changes:\n- FRENZY is now HYDRALISKFRENZY_HYDRALISKFRENZY
|
431
|
-
|
432
|
-
starts, then fetch maps as per usual: https://aiarena.net/wiki/maps\n\n"
|
398
|
+
patch-version going forward (currently v5.0.14).\n \n\tTo install/update to the
|
399
|
+
latest ladder version run: \n\t\e[36msc2ai download_ladder_version\e[0m\n\n\tThen
|
400
|
+
update your config to new identifier \"ladder\": \n\t\e[32mSc2.config { |c| c.version
|
401
|
+
= \"ladder\" }\e[0m\n\tor update sc2ai.yml version to \"ladder\":\n\t\e[32m---\e[0m\n\t\e[32mversion:
|
402
|
+
ladder\e[0m\n\nAbility ID changes:\n- FRENZY is now HYDRALISKFRENZY_HYDRALISKFRENZY
|
403
|
+
\ \n\n"
|
433
404
|
rdoc_options: []
|
434
405
|
require_paths:
|
435
406
|
- lib
|