Skip to content

Commit

Permalink
add errors and random things
Browse files Browse the repository at this point in the history
  • Loading branch information
ate47 committed Dec 10, 2023
1 parent 83ac447 commit 9cb6771
Show file tree
Hide file tree
Showing 5 changed files with 197 additions and 7 deletions.
2 changes: 2 additions & 0 deletions docs/game_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ All the dates are with the format YEAR/MONTH/DAY.

Data from the file [schedule_xbox.csv](https://github.com/ate47/bo4-source/blob/main/gamedata/events/schedule_xbox.csv) (see [schedule_pc.csv](https://github.com/ate47/bo4-source/blob/main/gamedata/events/schedule_pc.csv) / [schedule_ps4.csv](https://github.com/ate47/bo4-source/blob/main/gamedata/events/schedule_ps4.csv)). (last update: 2023/09/14)

[Here the playlist rotation by u/apples919](https://www.reddit.com/r/Blackops4/comments/uxf82v/its_been_a_while_in_the_making_but_here_is_a_full/)

## Names

| Name | Description |
Expand Down
12 changes: 11 additions & 1 deletion docs/notes/errors.tsv
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Adam 564 Stealth Zombie 904544970 Attempt to register Client Field post finalization of Client Field registration period failed.
Baker 223 Meridian Absolution 3990130335 player getperks(<localClientNum>): localClientNum out of range
Baker 917 Brute Goodnight 4104994143 can't allocate more script variables
Boy 601 Everest Tiger 312545010 not a vector
Expand All @@ -20,8 +21,11 @@ Fall 388 Quick Conflict 1364331101 Object must be an array
Foxtrot 14 Nuclear Cobra 209668787 RandomInt parm must be positive integer.
Foxtrot 345 Strange Pig 1385570291 assert fail (with message)
Foxtrot 56 Small Dementor 3222417139 size cannot be applied to type
Foxtrot 56 Small Dementor 3222417139 Usage of .size outside of a string or array
Frank 620 Proper Giant 887228744 origin being set to NAN.
Hotel 173 Tragic Goblin 3459949409 Failed to alloc client field - MAX_CLIENTFIELD_FIELDS_IN_SET=512 exceeded.
Ida 635 Rightful Elephant 467754466 Error registering client field. bCallbacksFor0WhenNew (CF_CALLBACK_ZERO_ON_NEW_ENT) is disallowed for CF_SCRIPTMOVERFIELDS.
Ida 941 Gray Mustang 3894031202 Can't find gamedata/playeranim/playeranimtypes.txt
India 579 Deadly Gemini 657813230 Error registering client field. bCallbacksFor0WhenNew (CF_CALLBACK_ZERO_ON_NEW_ENT) is disallowed for counter type clientfields. Due to it's treatment of the old and new val as a ring buffer, the counter type is not valid on a new snapshot, new ent, or demojump
Kilo 45 Gold Dove 219686544 object is not an array index
Kilo 717 Clockwork Refuge 4220857104 Cannot call IncrementClientField on a 'counter' type clientfield on the frame it is spawned, since newEnts on the clientside will not process 'counter' type clientfields.
May 1009 Torched Sunrise 3699844858 parameter does not exist
Expand All @@ -31,6 +35,7 @@ Nora 261 Marsh Blizzard 1412130119 parameter can't be cast to a hash
Nora 264 Dangerous Homerun 4196473479 parameter does not exist
North 272 Hannibal Defense 1670707254 linking error
November 670 Boiling Avalanche 829015102 var isn't a field object
November 990 Fake Operator 1480821566 Error registering client field. Attempted field size is not acceptable bit number range 1->32
Ocean 270 Grounded Infantry 1850691545 Debug Break
Option 365 Old Ghoul 2687742442 Forced script exception.
Papa 656 Area Jaguar 1088278929 Raw file is not a file of the right type
Expand All @@ -45,7 +50,9 @@ Romeo 459 Battle Traffic 2838301872 Gesture table key can't have the higher bit
Romeo 569 Clipped Squad 2448966512 string too long
Romeo 671 Iron Stallion 941828720 exitlevel already called
Romeo 836 Deadly Scythe 3761634992 not a pointer
Rush 280 Extinct Storm 1403832952 Attempt to register ClientField failed. Client Field set either already contains a field, or a hash collision has occurred.
Sail 312 Extreme Boa 1072585573 Raw file is not a file of the right type
Sierra 54 Found Treasure 4178589916 Model was not cached by the linker.
South 1020 Calm Potato 2538360978 not a function pointer
Spring 361 Right Mauler 3143575744 parameter does not exist
Spring 805 Apollo Valentine 1099145600 Can't find asset
Expand All @@ -54,6 +61,7 @@ Summer 534 Winning Escort 2681972741 bad clientfield for name
Summer 607 Binary Godfather 3251676101 Could not load raw file
Tango 8 Knight Taurus 647662103 parameter can't be cast to a string
Tango 882 Aurora Invasion 1909233687 Optional argument must be a vector type
Tommy 439 Tin Highway 3592841213 cannot directly set the origin on AI. Use the teleport command instead.
Tommy 443 Destructive Command 1609894461 bad entity
Tommy 478 Determined Volley 2532286589 error message
Uniform 587 Nickel Breakfast 3122940489 caller is not an entity
Expand Down Expand Up @@ -82,4 +90,6 @@ Zed 105 Riptide Volley 2517242050 parameter does not exist
Zed 251 Silent Scorpio 753495682 RandomIntRange's second parameter must be greater than the first.
Zed 606 Tin Refuge 4213634562 precacheLeaderboards must be called before any wait statements in the gametype or level script
Zed 737 United Parole 2751867714 self isn't a field object
Zulu 339 Red Dementor 3221522156 Failed to alloc client field
Zulu 523 Electric Lion 247375020 Attempting to register client field in client field set using bits, but system is out of space.
Zulu 53 Heavy Cause 3016026156 Can't find asset
113 changes: 113 additions & 0 deletions docs/notes/notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -956,5 +956,118 @@ export flags:
HGFEDCBA
- A 0x02 linked
struct Manifest
{
uint32_t version;
uint32_t numFiles;
LPCFileInfo files[128];
};
struct __declspec(align(8)) LPCFileInfo
{
uint version;
LPCFileStatus status;
LPCFileCategory category;
uint modes;
uint size;
uint128_t checksum;
char padding[20];
char fullPath[65];
};
struct __declspec(align(4)) GfxImage
{
byte *pixels;
byte *fallbackPixels;
const char *name;
GfxStreamedPartInfo streamedParts[4];
GfxTexture texture;
GfxTexture fallbackTexture;
unsigned int flags;
int alignment;
unsigned int hash;
uint totalSize;
uint fallbackSize;
GfxPixelFormat format;
unsigned __int16 width;
unsigned __int16 height;
unsigned __int16 depth;
GfxImageSemantic semantic;
MapType mapType;
GfxImageCategory category;
byte levelCount;
byte fallbackLevel;
byte useFallback;
byte streaming;
byte streamedPartCount;
};
Offset Xref Function Line Column Pseudocode line
00000009 r sub_22B8D40 5 68 if ( !***(_BYTE ***)a3 || (v6 = *(_OWORD *)(a1 + 32), sub_2EB8150(ASSET_TYPE_IMAGE, &v6, 256)) )
00000009 r sub_22B8F50 5 68 if ( !***(_BYTE ***)a3 || (v6 = *(_OWORD *)(a1 + 32), sub_2EB8150(ASSET_TYPE_IMAGE, &v6, 256)) )
00000009 r sub_22B93B0 21 72 if ( !***(_BYTE ***)a1 || (v9 = *(_OWORD *)(v6 + 32), sub_2EB8150(ASSET_TYPE_IMAGE, &v9, 256)) )
00000009 r sub_22B96E0 49 14 v11 = ASSET_TYPE_IMAGE;
00000009 r sub_22B96E0 76 16 if ( v11 == ASSET_TYPE_IMAGE )
00000009 r sub_22BACA0 26 44 result.physPreset = DB_FindXAssetHeader(ASSET_TYPE_IMAGE, name, 0, 0).physPreset;
00000009 r db_allocate_element 33 17 if ( type == ASSET_TYPE_IMAGE || (unsigned __int8)type == ASSET_TYPE_STREAMKEY )
00000009 r DB_FindXAssetHeader(XAssetType,char const*,bool,int) 115 0 case ASSET_TYPE_IMAGE:
00000009 r sub_35BA300 46 29 return DB_FindXAssetHeader(ASSET_TYPE_IMAGE, name, 1, -1);
00000009 r sub_35BA3B0 6 29 return DB_FindXAssetHeader(ASSET_TYPE_IMAGE, name, 1, -1);
00000009 r sub_35BA570 145 47 qword_BD6E410 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 161 47 qword_BD6E418 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 177 47 qword_BD6E420 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 193 47 qword_BD6E428 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 209 47 qword_BD6E430 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 225 47 qword_BD6E438 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 241 47 qword_BD6E440 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 257 47 qword_BD6E448 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 273 47 qword_BD6E450 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 289 47 qword_BD6E458 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 305 47 qword_BD6E460 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 322 47 qword_BD6E480 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 338 47 qword_BD6E488 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 354 47 qword_BD6E490 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 370 47 qword_BD6E498 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 387 47 qword_BD6E4A8 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 404 47 qword_BD6E4B0 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 421 47 qword_BD6E4B8 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 436 47 qword_BD6E4C0 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 451 47 qword_BD6E4C8 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 466 47 qword_BD6E4D0 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 482 47 qword_BD6E468 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 498 47 qword_BD6E470 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 514 47 qword_BD6E4D8 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 530 47 qword_BD6E4E0 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 546 47 qword_BD6E4E8 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 562 47 qword_BD6E4F0 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 578 47 qword_BD6E4F8 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_35BA570 593 47 qword_BD6E500 = (__int64)DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)name, 1, -1).physPreset;
00000009 r sub_3711C60 7 37 if ( !(unsigned __int8)sub_2EB6C90(ASSET_TYPE_IMAGE, (uint64_t)name) )
00000009 r sub_3711C60 10 38 v3.physPreset = DB_FindXAssetHeader(ASSET_TYPE_IMAGE, name, 1, -1).physPreset;
00000009 r sub_372F8C0 196 47 v26.physPreset = DB_FindXAssetHeader(ASSET_TYPE_IMAGE, (uint64_t *)&name, 0, 0).physPreset;
00000009 r UI_CoD_Init(bool) 87 63 … ASSET_TYPE_IMAGE,
00000009 r UI_CoD_Init(bool) 98 63 … ASSET_TYPE_IMAGE,
00000009 r sub_39B5320 10 39 if ( !(unsigned __int8)sub_2EB6C90(ASSET_TYPE_IMAGE, (uint64_t)name) )
00000009 r sub_39B5320 14 39 a3->physPreset = DB_FindXAssetHeader(ASSET_TYPE_IMAGE, name, 1, -1).physPreset;
00000009 r sub_4188690 34 36 if ( (unsigned __int8)sub_2EB6C90(ASSET_TYPE_IMAGE, (uint64_t)hash) )
00000009 r sub_4188E60 42 48 if ( (unsigned __int8)sub_2EB6C90(ASSET_TYPE_IMAGE, (uint64_t)hash) )
00000009 r sub_4189120 36 37 if ( !(unsigned __int8)sub_2EB6C90(ASSET_TYPE_IMAGE, (uint64_t)hash) )
00000009 r sub_4189120 56 37 if ( !(unsigned __int8)sub_2EB6C90(ASSET_TYPE_IMAGE, (uint64_t)hash) )
Tommy 439 Tin Highway 3592841213 cannot directly set the origin on AI. Use the teleport command instead.
Frank 620 Proper Giant 887228744 origin being set to NAN.
Sierra 54 Found Treasure 4178589916 Model was not cached by the linker.
Adam 564 Stealth Zombie 904544970 Attempt to register Client Field post finalization of Client Field registration period failed.
Rush 280 Extinct Storm 1403832952 Attempt to register ClientField failed. Client Field set either already contains a field, or a hash collision has occurred.
November 990 Fake Operator 1480821566 Error registering client field. Attempted field size is not acceptable bit number range 1->32
Ida 635 Rightful Elephant 467754466 Error registering client field. bCallbacksFor0WhenNew (CF_CALLBACK_ZERO_ON_NEW_ENT) is disallowed for CF_SCRIPTMOVERFIELDS.
India 579 Deadly Gemini 657813230 Error registering client field. bCallbacksFor0WhenNew (CF_CALLBACK_ZERO_ON_NEW_ENT) is disallowed for counter type clientfields. Due to it's treatment of the old and new val as a ring buffer, the counter type is not valid on a new snapshot, new ent, or demojump
Zulu 523 Electric Lion 247375020 Attempting to register client field in client field set using bits, but system is out of space.
Hotel 173 Tragic Goblin 3459949409 Failed to alloc client field - MAX_CLIENTFIELD_FIELDS_IN_SET=512 exceeded.
Zulu 339 Red Dementor 3221522156 Failed to alloc client field
```
6 changes: 5 additions & 1 deletion docs/notes/notes23.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ file : 7, 2e2123d8e08 123d85d0 2e2 27a7fc3e76503b01 200000006
file : 8, 1 123dc620 2e2 2e2123d85d0 39451eee4658a544
file : 9, 6400000003 1 0 2e2123dc808 2e2123d85d0

import flags:

0x10: dev calls

ctx: D7F1560

func: ABACFC7
Expand Down Expand Up @@ -41,6 +45,6 @@ hash

0xcbf29ce484222325LL, 0x100000001b3
0x47F5817A5EF961BALL, 0x100000001b3
0x79D6530B0BB9B5D1LL, 0x10000000233
0x79D6530B0BB9B5D1LL, 0x10000000233 // func?

```
71 changes: 66 additions & 5 deletions scripts/core_common/ui/menu.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,58 @@ init_menu(menu_title) {
#mods: array()
};

#ifdef SHIELD_GSC
size = get_menu_size_count();

ShieldClearHudElems();

text_size = 31;
menu_width = 400;

top = (size + 1) * text_size / 2;
left = -6 - menu_width;

ShieldRegisterHudElem(
#"atianmenu_background",
"",
0,
left, top,
2, 1,
1, 1,
0.5,
menu_width, (size + 1) * text_size,
0
);

ShieldRegisterHudElem(
#"atianmenu_title",
"",
0,
left, top,
2, 1,
1, 1,
0.5
);

top += text_size;

for (i = 0; i < size; i++) {
ShieldRegisterHudElem(
#"atianmenu_line_" + ("" + i),
"",
0,
left, top,
2, 1,
1, 1,
0.5
);

top += text_size;
}

#endif


self add_menu("start_menu", menu_title, "");

return true;
Expand Down Expand Up @@ -149,6 +201,19 @@ get_current_menu() {
return self.menu_info.menus[self.menu_info.current_menu];
}

get_menu_size_count() {
#ifdef __PS4
menu_size_count = 3;
#else
#ifdef SHIELD_GSC
menu_size_count = 10;
#else
menu_size_count = 8;
#endif
#endif
return menu_size_count;
}

menu_think() {
if (!isdefined(self.menu_info)) {
// ignore menu creation if already set
Expand All @@ -157,11 +222,7 @@ menu_think() {
self endon(#"disconnect");
level endon(#"end_game", #"game_ended");

#ifdef __PS4
menu_size_count = 3;
#else
menu_size_count = 8;
#endif
menu_size_count = get_menu_size_count();

for (i = 0; i < menu_size_count + 1; i++) {
self menu_drawing_function("");
Expand Down

0 comments on commit 9cb6771

Please sign in to comment.