57 Commits

Author SHA1 Message Date
Matt Nadareski
3b2ffa8ff0 Update some of the numbering for scene downloads 2016-07-28 11:09:43 -07:00
Matt Nadareski
d3acae2ed7 Cleanup
This is a bulk cleanup of all of the functions that have since been
surpassed by their desktop counterparts. A lot of effort went into these
original features but the effort that was expended to make the desktop
better far exceeded this. I thank the efforts of everyone who helped to
make the web version a reality in the first place since it provided the
strong base that SabreTools has become. This will still be maintained
purely as a way of checking files online as will be required when the
WoD DATs are properly recreated.
2016-07-28 11:02:20 -07:00
Matt Nadareski
e08f4345fc Add additional case from desktop 2016-04-06 00:14:11 -07:00
Matt Nadareski
6562ca117d @tractivo: Fix No-Intro numbered pattern to not match TOSEC 2016-04-05 12:07:20 -07:00
Matt Nadareski
7c3fa821f2 Use desktop pattern for variable usage
This change makes it easier to both maintain the ocde as well as make
any changes across both platforms. Source parity is getting to be a
bigger issue as we go forward with this project.
2016-04-05 00:11:27 -07:00
Matt Nadareski
88c0010cf3 Update special cases from desktop version 2016-04-04 21:28:28 -07:00
Matt Nadareski
1e8cdff1f3 scroll to bottom 2016-04-04 17:32:30 -07:00
Matt Nadareski
18b5fb3e7d Make it read from file line by line
Larger files (e.g. CSDB and EAB) can overload the server because of how
much data it has to hold and process. Reading the files line by line
makes that drop to more than half of what it was.
2016-04-04 17:26:35 -07:00
Matt Nadareski
4ecd33c642 Bring import to parity with desktop version
Import now converts any non-XML DATs to XML before parsing it. This
makes the code to parse much cleaner (actally even cleaner than the
desktop version because of how XMLReader works). This also ended up
making the rv2xml function come into maturity.
2016-04-04 16:08:24 -07:00
Matt Nadareski
527d9d26b4 Rename $sourceid to $srcid 2016-04-04 14:04:27 -07:00
Matt Nadareski
69987febe8 More scene update fixes 2016-04-04 02:27:06 -07:00
Matt Nadareski
6bdcad8642 Add special case for TOSEC 2016-04-02 20:39:55 -07:00
Matt Nadareski
92a8fe856c Change naming of DATs 2016-04-01 20:20:50 -07:00
Matt Nadareski
b0d7d8b8cb Rename parsenointro because it's no longer completely relevent 2016-04-01 18:06:39 -07:00
Matt Nadareski
775d523079 Small cleanup 2016-04-01 18:02:27 -07:00
Matt Nadareski
47549fbbe0 Make this a good page again 2016-04-01 17:58:50 -07:00
Matt Nadareski
7485a32c96 Make it easier to start on the right place if the user cancels 2016-04-01 17:40:59 -07:00
Matt Nadareski
00c718b03a Add flush to import 2016-04-01 17:20:35 -07:00
Matt Nadareski
d0eec81f15 Scroll to the bottom 2016-04-01 17:06:43 -07:00
Matt Nadareski
5aa835c4c2 Only break if we hit an error. That's good, right? 2016-04-01 16:58:49 -07:00
Matt Nadareski
1d62e6b704 Clean up generate code and start fixing issues with import 2016-04-01 16:51:27 -07:00
Matt Nadareski
2dd8534660 We can do more at once
I tried for 150 (15 cycles) and it didn't throw an error. Trying now
with 50 per cycle instead of 10 per cycle. If it errors, I'll reduce to
25.
2016-04-01 16:37:22 -07:00
Matt Nadareski
524cb0d450 Slight rearrangement of code. 2016-04-01 16:14:56 -07:00
Matt Nadareski
7f3da3643b opps 2016-04-01 16:07:16 -07:00
Matt Nadareski
657072e63a These can be blank too, apparently 2016-04-01 15:25:50 -07:00
Matt Nadareski
aaf0a4c5d3 Make a few changes. Still waiting to put create back in. 2016-04-01 14:56:30 -07:00
Matt Nadareski
9044fb9d81 There's a scene database now 2016-04-01 14:44:00 -07:00
Matt Nadareski
c19e928b12 Added runtime note 2016-04-01 05:05:53 -07:00
Matt Nadareski
e3042e1880 Confirmed generation works. Overhaul and add new systems 2016-04-01 04:31:11 -07:00
Matt Nadareski
f451d55ce3 Fix diagnostic output 2016-03-31 02:23:37 -07:00
Matt Nadareski
6817150ef2 Add runtime note 2016-03-31 02:14:43 -07:00
Matt Nadareski
f3cc2c174c Fix file generation 2016-03-31 01:55:20 -07:00
Matt Nadareski
0b83dcd827 Smol changes 2016-03-31 01:26:04 -07:00
Matt Nadareski
c5fa8af8ae Add code swiped from generate; misc fixes 2016-03-31 01:22:43 -07:00
Matt Nadareski
2869cd9d17 Overhaul parsenointro
ParseNoIntro is now a very specialized page. Instead of trying to get
ALL information from a page, it just captures the scene release info
instead. To make it even more efficient, it uses an XML reader to strip
out a lot of the junk, along with a couple levels of stripping
unnecessary whitespace.

The result is a very robust page that can traverse and get information
for Nintendo DS ONLY. Further tests will be done for 3DS in the future.
For now, it will remain limited until this information can be written to
file, which I hope will come in an update soon.
2016-03-31 00:58:42 -07:00
Matt Nadareski
a1cddc7815 Update link description 2016-03-29 19:20:06 -07:00
Matt Nadareski
f59310c38a Remove undefined var 2016-03-29 19:17:48 -07:00
Matt Nadareski
483409a238 Remove MAME automapping; obsolete 2016-03-29 19:17:28 -07:00
Matt Nadareski
2b54b15e14 Add proper check in parenting 2016-03-29 19:11:54 -07:00
Matt Nadareski
aa37f6c50e Correct spacing output 2016-03-29 19:09:39 -07:00
Matt Nadareski
4512bb83aa Check var correctly 2016-03-29 19:08:04 -07:00
Matt Nadareski
11ad0dd092 Fix deheader script based on standalone created for desktop 2016-03-28 00:09:16 -07:00
Matt Nadareski
7a63bb5fce Add placeholder for description
Since the description wasn't covered before, it had the possibility of
messing up imports that had a ")" in the description (AKA all of the
No-Intro DATs). This was not an issue in the custom DATs because none of
them included descriptions.
2016-03-25 17:29:12 -07:00
Matt Nadareski
ee7615f70b Split everything further on reset
Multiple lines in a query is apparently unacceptable at all for mysqli.
This isn't nice.
2016-03-25 16:35:27 -07:00
Matt Nadareski
49e00cba94 Separate queries just in case. 2016-03-25 16:20:29 -07:00
Matt Nadareski
9c094d40a7 Remove "are you sure" from reset.
There's no link to this page. If you get here, it's of your own
volition. You must want to wipe it.
2016-03-25 16:17:53 -07:00
Matt Nadareski
e841855d5e Remove sourceid check now that variable isn't set 2016-03-25 15:54:55 -07:00
Matt Nadareski
1cfe53ca95 [doc] typo 2016-03-25 15:49:03 -07:00
Matt Nadareski
4b7c912fe2 Add mapping arrays to globals 2016-03-25 15:36:44 -07:00
Matt Nadareski
0341116164 Backport automatic type detection from desktop version
The desktop version had smart code that allowed it to figure out
(usually) the type of the DAT based on its filename pattern. The
previous PHP code used a param to deterime the type of the DAT, which,
though it's more distinctive, leads to having different folders for each
type, and doesn't allow all types to be imported at once. The new code
here uses the smart sorting to determine filetype and then uses that
type as if it were a param.
2016-03-22 14:03:21 -07:00