6 | //
7 | // Copyright (c) 2015 Benito Palacios Sánchez
8 | //
9 | // This program is free software: you can redistribute it and/or modify
10 | // it under the terms of the GNU General Public License as published by
11 | // the Free Software Foundation, either version 3 of the License, or
12 | // (at your option) any later version.
13 | //
14 | // This program is distributed in the hope that it will be useful,
15 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 | // GNU General Public License for more details.
18 | //
19 | // You should have received a copy of the GNU General Public License
20 | // along with this program. If not, see .
21 | using System;
22 | using Libgame.IO;
23 |
24 | namespace NinoTweet
25 | {
26 | public static class Rc4
27 | {
28 | public static void Run(DataStream input, byte[] key, DataStream output)
29 | {
30 | byte[] s = CreateArrayS(key);
31 | for (int i = 0, j = 0; input.Position < input.Length; ) {
32 | i = (i + 1) % 256;
33 | j = (j + s[i]) % 256;
34 |
35 | byte swap = s[i];
36 | s[i] = s[j];
37 | s[j] = swap;
38 |
39 | byte k = s[(s[i] + s[j]) % 256];
40 | output.WriteByte((byte)(input.ReadByte() ^ k));
41 | }
42 | }
43 |
44 | private static byte[] CreateArrayS(byte[] key)
45 | {
46 | byte[] s = new byte[256];
47 | byte[] t = new byte[256];
48 |
49 | for (int i = 0; i < 256; i++) {
50 | s[i] = (byte)i;
51 | t[i] = key[i % key.Length];
52 | }
53 |
54 | for (int i = 0, j = 0; i < 256; i++) {
55 | j = (j + s[i] + t[i]) % 256;
56 |
57 | byte swap = s[i];
58 | s[i] = s[j];
59 | s[j] = swap;
60 | }
61 |
62 | return s;
63 | }
64 | }
65 | }
66 |
--------------------------------------------------------------------------------
/Programs/PS3/ExtrackooB/ExtrackooB.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 11.00
3 | # Visual Studio 2010
4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExtrackooB", "ExtrackooB\ExtrackooB.csproj", "{D6AE51D1-63A9-4172-A28E-4A002517F866}"
5 | EndProject
6 | Global
7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
8 | Debug|x86 = Debug|x86
9 | Release|x86 = Release|x86
10 | EndGlobalSection
11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
12 | {D6AE51D1-63A9-4172-A28E-4A002517F866}.Debug|x86.ActiveCfg = Debug|x86
13 | {D6AE51D1-63A9-4172-A28E-4A002517F866}.Debug|x86.Build.0 = Debug|x86
14 | {D6AE51D1-63A9-4172-A28E-4A002517F866}.Release|x86.ActiveCfg = Release|x86
15 | {D6AE51D1-63A9-4172-A28E-4A002517F866}.Release|x86.Build.0 = Release|x86
16 | EndGlobalSection
17 | GlobalSection(SolutionProperties) = preSolution
18 | HideSolutionNode = FALSE
19 | EndGlobalSection
20 | EndGlobal
21 |
--------------------------------------------------------------------------------
/Programs/PS3/ExtrackooB/ExtrackooB/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/Programs/PS3/NinoDecompiler/NinoDecompiler.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 11.00
3 | # Visual Studio 2010
4 | # SharpDevelop 4.3
5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NinoDecompiler", "NinoDecompiler\NinoDecompiler.csproj", "{C10190B0-ED5B-4E98-B9ED-648DBF6AB78D}"
6 | EndProject
7 | Global
8 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
9 | Debug|x86 = Debug|x86
10 | Release|x86 = Release|x86
11 | EndGlobalSection
12 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
13 | {C10190B0-ED5B-4E98-B9ED-648DBF6AB78D}.Debug|x86.ActiveCfg = Debug|x86
14 | {C10190B0-ED5B-4E98-B9ED-648DBF6AB78D}.Debug|x86.Build.0 = Debug|x86
15 | {C10190B0-ED5B-4E98-B9ED-648DBF6AB78D}.Release|x86.ActiveCfg = Release|x86
16 | {C10190B0-ED5B-4E98-B9ED-648DBF6AB78D}.Release|x86.Build.0 = Release|x86
17 | EndGlobalSection
18 | GlobalSection(SolutionProperties) = preSolution
19 | HideSolutionNode = FALSE
20 | EndGlobalSection
21 | EndGlobal
22 |
--------------------------------------------------------------------------------
/Programs/PS3/NinoDecompiler/NinoDecompiler/Encoding/Encoder.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | //
3 | // Copyright (C) 2013
4 | //
5 | // This program is free software: you can redistribute it and/or modify
6 | // it under the terms of the GNU General Public License as published by
7 | // the Free Software Foundation, either version 3 of the License, or
8 | // (at your option) any later version.
9 | //
10 | // This program is distributed in the hope that it will be useful,
11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | // GNU General Public License for more details.
14 | //
15 | // You should have received a copy of the GNU General Public License
16 | // along with this program. If not, see "http://www.gnu.org/licenses/".
17 | //
18 | // pleoNeX
19 | // benito356@gmail.com
20 | // 09/04/2013
21 | //-----------------------------------------------------------------------
22 | namespace NinoDecompiler.Encoding
23 | {
24 | using System;
25 | using System.IO;
26 |
27 | ///
28 | /// Description of Encoder.
29 | ///
30 | public abstract class Encoder
31 | {
32 | protected Stream stream;
33 | protected long pos;
34 | protected long encSize;
35 |
36 | public Encoder(Stream stream, long position, long encodedSize)
37 | {
38 | this.stream = stream;
39 | this.pos = position;
40 | this.encSize = encodedSize;
41 | }
42 |
43 | public abstract void Decode(Stream streamOut, long decodedSize);
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/Programs/PS3/NinoDecompiler/NinoDecompiler/ErrorFile.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | //
3 | // Copyright (C) 2013
4 | //
5 | // This program is free software: you can redistribute it and/or modify
6 | // it under the terms of the GNU General Public License as published by
7 | // the Free Software Foundation, either version 3 of the License, or
8 | // (at your option) any later version.
9 | //
10 | // This program is distributed in the hope that it will be useful,
11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | // GNU General Public License for more details.
14 | //
15 | // You should have received a copy of the GNU General Public License
16 | // along with this program. If not, see "http://www.gnu.org/licenses/".
17 | //
18 | // pleoNeX
19 | // benito356@gmail.com
20 | // 10/04/2013
21 | //-----------------------------------------------------------------------
22 | namespace NinoDecompiler
23 | {
24 | using System;
25 |
26 | ///
27 | /// Description of ErrorFile.
28 | ///
29 | public class ErrorFile
30 | {
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Programs/PS3/NinoDecompiler/NinoDecompiler/FinalFile.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | //
3 | // Copyright (C) 2013
4 | //
5 | // This program is free software: you can redistribute it and/or modify
6 | // it under the terms of the GNU General Public License as published by
7 | // the Free Software Foundation, either version 3 of the License, or
8 | // (at your option) any later version.
9 | //
10 | // This program is distributed in the hope that it will be useful,
11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | // GNU General Public License for more details.
14 | //
15 | // You should have received a copy of the GNU General Public License
16 | // along with this program. If not, see "http://www.gnu.org/licenses/".
17 | //
18 | // pleoNeX
19 | // benito356@gmail.com
20 | // 10/04/2013
21 | //-----------------------------------------------------------------------
22 | using System;
23 |
24 | namespace NinoDecompiler
25 | {
26 | ///
27 | /// Description of FinalFile.
28 | ///
29 | public class FinalFile
30 | {
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/Programs/PS3/NinoDecompiler/NinoDecompiler/Formats/Pac.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | //
3 | // Copyright (C) 2013
4 | //
5 | // This program is free software: you can redistribute it and/or modify
6 | // it under the terms of the GNU General Public License as published by
7 | // the Free Software Foundation, either version 3 of the License, or
8 | // (at your option) any later version.
9 | //
10 | // This program is distributed in the hope that it will be useful,
11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | // GNU General Public License for more details.
14 | //
15 | // You should have received a copy of the GNU General Public License
16 | // along with this program. If not, see "http://www.gnu.org/licenses/".
17 | //
18 | // pleoNeX
19 | // benito356@gmail.com
20 | // 10/04/2013
21 | //-----------------------------------------------------------------------
22 | namespace NinoDecompiler.Formats
23 | {
24 | using System;
25 | using System.IO;
26 |
27 | ///
28 | /// Description of Pac.
29 | ///
30 | public class Pac
31 | {
32 | public Pac()
33 | {
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/Programs/PS3/NinoDecompiler/NinoDecompiler/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | // ----------------------------------------------------------------------
2 | //
3 | // Copyright (C) 2012
4 | //
5 | // This program is free software: you can redistribute it and/or modify
6 | // it under the terms of the GNU General Public License as published by
7 | // the Free Software Foundation, either version 3 of the License, or
8 | // (at your option) any later version.
9 | //
10 | // This program is distributed in the hope that it will be useful,
11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | // GNU General Public License for more details.
14 | //
15 | // You should have received a copy of the GNU General Public License
16 | // along with this program. If not, see .
17 | //
18 | //
19 | // pleoNeX
20 | // benito356@gmail.com
21 | // 06/10/2012 21:21:49
22 | // -----------------------------------------------------------------------
23 | using System.Reflection;
24 | using System.Runtime.CompilerServices;
25 | using System.Runtime.InteropServices;
26 |
27 | // La información general sobre un ensamblado se controla mediante el siguiente
28 | // conjunto de atributos. Cambie estos atributos para modificar la información
29 | // asociada con un ensamblado.
30 | [assembly: AssemblyTitle("NinoDecompiler")]
31 | [assembly: AssemblyDescription("Ni no kuni PS3 - Decompiler")]
32 | [assembly: AssemblyConfiguration("")]
33 | [assembly: AssemblyCompany("")]
34 | [assembly: AssemblyProduct("")]
35 | [assembly: AssemblyCopyright("pleoNeX 2013")]
36 | [assembly: AssemblyTrademark("")]
37 | [assembly: AssemblyCulture("")]
38 |
39 | [assembly: ComVisible(false)]
40 |
41 | // El siguiente GUID sirve como identificador de typelib si este proyecto se expone a COM
42 | [assembly: Guid("b078037b-db3a-47f3-95bc-7a3a588eadd0")]
43 |
44 | // Version
45 | [assembly: AssemblyVersion("3.0.0.0")]
46 | [assembly: AssemblyFileVersion("3.0.0.0")]
47 |
--------------------------------------------------------------------------------
/Programs/PS3/pam2mpg/pam2mpg.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 11.00
3 | # Visual Studio 2010
4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "pam2mpg", "pam2mpg\pam2mpg.csproj", "{AD3EBFDD-EDB2-4231-9618-B1598B6CDAB6}"
5 | EndProject
6 | Global
7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
8 | Debug|x86 = Debug|x86
9 | Release|x86 = Release|x86
10 | EndGlobalSection
11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
12 | {AD3EBFDD-EDB2-4231-9618-B1598B6CDAB6}.Debug|x86.ActiveCfg = Debug|x86
13 | {AD3EBFDD-EDB2-4231-9618-B1598B6CDAB6}.Debug|x86.Build.0 = Debug|x86
14 | {AD3EBFDD-EDB2-4231-9618-B1598B6CDAB6}.Release|x86.ActiveCfg = Release|x86
15 | {AD3EBFDD-EDB2-4231-9618-B1598B6CDAB6}.Release|x86.Build.0 = Release|x86
16 | EndGlobalSection
17 | GlobalSection(MonoDevelopProperties) = preSolution
18 | StartupItem = pam2mpg\pam2mpg.csproj
19 | EndGlobalSection
20 | EndGlobal
21 |
--------------------------------------------------------------------------------
/Programs/PS3/pam2mpg/pam2mpg/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 |
4 | // Information about this assembly is defined by the following attributes.
5 | // Change them to the values specific to your project.
6 | [assembly: AssemblyTitle("pam2mpg")]
7 | [assembly: AssemblyDescription("")]
8 | [assembly: AssemblyConfiguration("")]
9 | [assembly: AssemblyCompany("")]
10 | [assembly: AssemblyProduct("")]
11 | [assembly: AssemblyCopyright("pleonex 2013")]
12 | [assembly: AssemblyTrademark("")]
13 | [assembly: AssemblyCulture("")]
14 | // The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
15 | // The form "{Major}.{Minor}.*" will automatically update the build and revision,
16 | // and "{Major}.{Minor}.{Build}.*" will update just the revision.
17 | [assembly: AssemblyVersion("1.0.*")]
18 | // The following attributes are used to specify the signing key for the assembly,
19 | // if desired. See the Mono documentation for more information about signing.
20 | //[assembly: AssemblyDelaySign(false)]
21 | //[assembly: AssemblyKeyFile("")]
22 |
23 |
--------------------------------------------------------------------------------
/Programs/PS3/pam2mpg/pam2mpg/pam2mpg.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | x86
6 | 10.0.0
7 | 2.0
8 | {AD3EBFDD-EDB2-4231-9618-B1598B6CDAB6}
9 | Exe
10 | pam2mpg
11 | pam2mpg
12 |
13 |
14 | true
15 | full
16 | false
17 | bin\Debug
18 | DEBUG;
19 | prompt
20 | 4
21 | true
22 | x86
23 |
24 |
25 | full
26 | true
27 | bin\Release
28 | prompt
29 | 4
30 | true
31 | x86
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/Programs/scripts/DlcInfo.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/Programs/scripts/magicnews/magicnews/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pleonex/Ninokuni/c71f39ef995338a89bf74b69887891ac6c9f366d/Programs/scripts/magicnews/magicnews/__init__.py
--------------------------------------------------------------------------------
/Programs/scripts/magicnews/magicnews/items.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 | ###############################################################################
3 | # Connect to game-kouryaku.info to download all the magic news - V1.0 #
4 | # Copyright 2015 Benito Palacios (aka pleonex) #
5 | # #
6 | # Licensed under the Apache License, Version 2.0 (the "License"); #
7 | # you may not use this file except in compliance with the License. #
8 | # You may obtain a copy of the License at #
9 | # #
10 | # http://www.apache.org/licenses/LICENSE-2.0 #
11 | # #
12 | # Unless required by applicable law or agreed to in writing, software #
13 | # distributed under the License is distributed on an "AS IS" BASIS, #
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
15 | # See the License for the specific language governing permissions and #
16 | # limitations under the License. #
17 | ###############################################################################
18 |
19 | import scrapy
20 |
21 |
22 | class MagicnewsItem(scrapy.Item):
23 | title = scrapy.Field()
24 | date = scrapy.Field()
25 | body = scrapy.Field()
26 |
27 | def keys(self):
28 | return ['date', 'title', 'body']
29 |
--------------------------------------------------------------------------------
/Programs/scripts/magicnews/magicnews/pipelines.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 |
3 | # Define your item pipelines here
4 | #
5 | # Don't forget to add your pipeline to the ITEM_PIPELINES setting
6 | # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
7 |
8 |
9 | class MagicnewsPipeline(object):
10 | def process_item(self, item, spider):
11 | return item
12 |
--------------------------------------------------------------------------------
/Programs/scripts/magicnews/magicnews/settings.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 |
3 | # Scrapy settings for magicnews project
4 | #
5 | # For simplicity, this file contains only the most important settings by
6 | # default. All the other settings are documented here:
7 | #
8 | # http://doc.scrapy.org/en/latest/topics/settings.html
9 | #
10 |
11 | BOT_NAME = 'magicnews'
12 |
13 | SPIDER_MODULES = ['magicnews.spiders']
14 | NEWSPIDER_MODULE = 'magicnews.spiders'
15 |
16 | # Crawl responsibly by identifying yourself (and your website) on the user-agent
17 | #USER_AGENT = 'magicnews (+http://www.yourdomain.com)'
18 |
--------------------------------------------------------------------------------
/Programs/scripts/magicnews/magicnews/spiders/__init__.py:
--------------------------------------------------------------------------------
1 | # This package will contain the spiders of your Scrapy project
2 | #
3 | # Please refer to the documentation for information on how to create and manage
4 | # your spiders.
5 |
--------------------------------------------------------------------------------
/Programs/scripts/magicnews/scrapy.cfg:
--------------------------------------------------------------------------------
1 | # Automatically created by: scrapy startproject
2 | #
3 | # For more information about the [deploy] section see:
4 | # http://doc.scrapy.org/en/latest/topics/scrapyd.html
5 |
6 | [settings]
7 | default = magicnews.settings
8 |
9 | [deploy]
10 | #url = http://localhost:6800/
11 | project = magicnews
12 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Ni no kuni
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | "Ni no kuni" tools, hacks and docs
11 |
12 |
13 |
14 |
15 | **Ni no kuni** is a JRPG game developed by *Level-5* and *Studio Ghibli* for the *Nintendo DS*. It was released only in Japan in December 2010. One year later was released a *different* version for *PS3* in all regions.
16 |
17 | As a part of the [GradienWords](http://www.gradienwords.tk/) team I have created a set of tools, hacks and documentation to translate the game into Spanish. You can follow the progress of our translation in the [Twitter](https://twitter.com/gradienwords) account.
18 |
--------------------------------------------------------------------------------