3 Commits
Author SHA1 Message Date
Tau 0f8010ae8d v015 2021-02-04 16:47:21 -05:00
Tau cb5db5e55f idz: Drop idz_team_auto_uq constraint 2021-02-04 16:41:42 -05:00
b166fe48b91eb09f279b79a4ecf57b2f8f0d3705 a99503a86d idz: Fix team message encoding 2021-02-04 16:32:03 -05:00
4 changed files with 19 additions and 3 deletions
+4
View File
@@ -1,5 +1,9 @@
# CHANGELOG
## v015
- IDZ: Team fixes (BemaniWitch)
## v014
- IDZ: Add support for Initial D v2.1 (BemaniWitch)
-1
View File
@@ -242,7 +242,6 @@ create table "idz_team_auto" (
on delete cascade,
"serial_no" integer not null,
"name_idx" integer not null,
constraint "idz_team_auto_uq" unique ("serial_no", "name_idx")
);
create table "idz_team_member" (
@@ -0,0 +1,13 @@
create table "new_idz_team_auto" (
"id" integer primary key not null
references "idz_team"("id")
on delete cascade,
"serial_no" integer not null,
"name_idx" integer not null
);
insert into "new_idz_team_auto"
select "id", "serial_no", "name_idx" from "idz_team_auto";
drop table "idz_team_auto";
alter table "new_idz_team_auto" rename to "idz_team_auto";
+2 -2
View File
@@ -33,7 +33,7 @@ function _team1(
const accessTime = (profile.accessTime.getTime() / 1000) | 0;
buf.writeInt32LE(profile.aimeId, base + 0x0000);
writeSjisStr(buf, 0x0004, 0x0018, profile.name);
writeSjisStr(buf, base + 0x0004, base + 0x0018, profile.name);
buf.writeInt32LE(profile.lv, base + 0x0018);
buf.writeInt32LE(0, base + 0x0024); // Month points, TODO
buf.writeUInt32LE(accessTime, base + 0x0034);
@@ -85,7 +85,7 @@ function _team2(
const accessTime = (profile.accessTime.getTime() / 1000) | 0;
buf.writeInt32LE(profile.aimeId, base + 0x0000);
writeSjisStr(buf, 0x0004, 0x0018, profile.name);
writeSjisStr(buf, base + 0x0004, base + 0x0018, profile.name);
buf.writeInt32LE(profile.lv, base + 0x0018);
buf.writeInt32LE(0, base + 0x0024); // Month points, TODO
buf.writeUInt32LE(accessTime, base + 0x0034);