Compare commits
11
Commits
1359eab806
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f386815353 | ||
|
|
6661b17084 | ||
|
|
7cba54f271 | ||
|
|
b09754985b | ||
|
|
113ea26b07 | ||
|
|
3f72cb7cc4 | ||
|
|
60c66b7ba7 | ||
|
|
0fcb0dcaa4 | ||
|
|
f64bb1899b | ||
|
|
00ebdf0d43 | ||
|
|
24c1b3b416 |
@@ -20,6 +20,8 @@
|
||||
android:alwaysRetainTaskState="true"
|
||||
android:launchMode="singleInstance"
|
||||
android:screenOrientation="sensorLandscape"
|
||||
android:showWhenLocked="true"
|
||||
android:turnScreenOn="true"
|
||||
android:configChanges="layoutDirection|locale|orientation|uiMode|screenLayout|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation"
|
||||
android:preferMinimalPostProcessing="true"
|
||||
android:exported="true">
|
||||
|
||||
@@ -35,6 +35,17 @@ public class MainActivity extends SDLActivity {
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1) {
|
||||
setShowWhenLocked(true);
|
||||
setTurnScreenOn(true);
|
||||
} else {
|
||||
getWindow().addFlags(
|
||||
WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED |
|
||||
WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON |
|
||||
WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD
|
||||
);
|
||||
}
|
||||
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
||||
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);
|
||||
applyImmersiveMode();
|
||||
// --refresh-rate N pins the display mode for a test run; otherwise src/host switches it with
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"active_original_products": 49,
|
||||
"source_products": 217,
|
||||
"qa_coins": 0,
|
||||
"qa_orders": 0,
|
||||
"qa_awards": 0,
|
||||
"test_stack": 0,
|
||||
"test_triggers": 0,
|
||||
"game_sha256": "56975b48aa2fd40389c57eab84d017b0a2518cf6e1b573d967bf239f4ae04aba",
|
||||
"db_sha256": "dc940401fe6ccc3410c8d90ce98d2a5bad2e2c023279665bcd664c008d011699"
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
[
|
||||
{
|
||||
"case": "wallet lock timeout",
|
||||
"status": 6,
|
||||
"elapsed_seconds": 2.17,
|
||||
"unchanged": true
|
||||
},
|
||||
{
|
||||
"case": "SQL connection lost before commit",
|
||||
"status": 6,
|
||||
"unchanged": true
|
||||
},
|
||||
{
|
||||
"case": "SQL reconnect and persistent order replay",
|
||||
"status": 0,
|
||||
"unchanged": true
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"build": "isolated wear40 and extended-item ABI; not deployed",
|
||||
"candidate": {
|
||||
"game": "3ebf3a7bf4e7e92224fc17ee31cf189e286fb57e3c5baeb5c86fd5a6ac83cf13",
|
||||
"db": "0ad7bcd16a2ef95c8990d65e6242f61ca2ea7c113fb1ef6dd7624fb1b778ed03"
|
||||
},
|
||||
"production": {
|
||||
"game": "56975b48aa2fd40389c57eab84d017b0a2518cf6e1b573d967bf239f4ae04aba",
|
||||
"db": "dc940401fe6ccc3410c8d90ce98d2a5bad2e2c023279665bcd664c008d011699"
|
||||
},
|
||||
"productionDbPid": "53754"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"schema": "port_shop_migration_test",
|
||||
"before": "1\t32\n2\t43\n3\t287\n4\t302\n5\t286\n6\t32\n",
|
||||
"after": "1\t40\n2\t51\n3\t295\n4\t310\n5\t286\n6\t32\n",
|
||||
"quickslots": "active/deleted player both shifted",
|
||||
"replay": "unchanged",
|
||||
"fixture": "deleted after test"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"catalogue": 49, "pending": null, "quantity_before": 1, "scroll_before": 0.0, "balance": 0, "scroll_after": 0.06876790830945559, "quantity_after": 2, "widget_bound_confirmation": true, "all_icons": true}
|
||||
@@ -0,0 +1 @@
|
||||
{"quote": [900001, 1, 29, 71084], "confirmation": ["\u8d2d\u4e70 \u7269\u54c1\u5c5e\u6027\u8f6c\u6362\u79d8\u7c4d\uff1f", "\u4ef7\u683c\uff1a29 \u9f99\u5e01"], "display": ["\u539f\u4ef7 58\uff08\u4f18\u60e0 50%\uff09", " 29 \u9f99\u5e01"], "confirm_button": "\u786e\u8ba4"}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"at": 145.56300354003906,
|
||||
"balance": 9749,
|
||||
"dropped": [
|
||||
{
|
||||
"status": 0,
|
||||
"token": "25f1ade2e0549b0e3f9e899b8dd84b1e",
|
||||
"balance": 9749,
|
||||
"time": 123.39399719238281
|
||||
}
|
||||
],
|
||||
"pending": null,
|
||||
"replies": [
|
||||
[
|
||||
"25f1ade2e0549b0e3f9e899b8dd84b1e",
|
||||
0,
|
||||
9749
|
||||
]
|
||||
],
|
||||
"assertions": {
|
||||
"one_additional_order": true,
|
||||
"one_additional_unit": true,
|
||||
"deducted_exactly": 29,
|
||||
"same_token_replayed": true,
|
||||
"pending_cleared": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"labels": ["[F5] \u526f\u672c\u4fe1\u606f", "[F6] \u6218\u6597\u901a\u884c\u8bc1", "[F7] \u751f\u7269\u5b66\u5bb6", "[F8] \u70b9\u51fb\u6362\u7ebf"], "passed": true, "encoding": "native locale bridge"}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"original_product": 170,
|
||||
"vnum": 70002,
|
||||
"quantity": 2,
|
||||
"paid": 198,
|
||||
"wallet_after": 0,
|
||||
"award_rows": 2,
|
||||
"each_award_count": 1,
|
||||
"prototype_lookup_correct_after_sort": true
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"count": 49, "all_prototypes_and_icons": true, "offers": [{"price": 99, "vnum": 70002, "id": 170, "icon": "icon\\item\\70002.tga"}, {"price": 99, "vnum": 71234, "id": 172, "icon": "icon\\item\\71234.tga"}, {"price": 99, "vnum": 71254, "id": 177, "icon": "icon\\item\\71254.tga"}, {"price": 349, "vnum": 71502, "id": 3, "icon": "icon\\item\\71502.tga"}, {"price": 349, "vnum": 71505, "id": 6, "icon": "icon\\item\\71505.tga"}, {"price": 349, "vnum": 71508, "id": 9, "icon": "icon\\item\\71508.tga"}, {"price": 349, "vnum": 71511, "id": 12, "icon": "icon\\item\\71511.tga"}, {"price": 60, "vnum": 54003, "id": 78, "icon": "icon\\item\\54003.tga"}, {"price": 60, "vnum": 54006, "id": 79, "icon": "icon\\item\\54003.tga"}, {"price": 60, "vnum": 54009, "id": 80, "icon": "icon\\item\\54003.tga"}, {"price": 60, "vnum": 54012, "id": 81, "icon": "icon\\item\\54003.tga"}, {"price": 60, "vnum": 54015, "id": 82, "icon": "icon\\item\\54003.tga"}, {"price": 60, "vnum": 54018, "id": 83, "icon": "icon\\item\\54003.tga"}, {"price": 60, "vnum": 54021, "id": 84, "icon": "icon\\item\\54003.tga"}, {"price": 60, "vnum": 54024, "id": 85, "icon": "icon\\item\\54003.tga"}, {"price": 60, "vnum": 54027, "id": 86, "icon": "icon\\item\\54003.tga"}, {"price": 60, "vnum": 54030, "id": 87, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54033, "id": 88, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54036, "id": 89, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54039, "id": 90, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54042, "id": 91, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54045, "id": 92, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54048, "id": 93, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54051, "id": 94, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54054, "id": 95, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54057, "id": 96, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54060, "id": 97, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54063, "id": 98, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54066, "id": 99, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54069, "id": 100, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54072, "id": 101, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54075, "id": 102, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54078, "id": 103, "icon": "icon\\item\\54006.tga"}, {"price": 60, "vnum": 54126, "id": 183, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54129, "id": 184, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54132, "id": 185, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54135, "id": 186, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54138, "id": 187, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54141, "id": 188, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54144, "id": 189, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54147, "id": 190, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54150, "id": 191, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54153, "id": 192, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54156, "id": 193, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54159, "id": 194, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54162, "id": 195, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54168, "id": 197, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54171, "id": 198, "icon": "icon\\item\\54126.tga"}, {"price": 60, "vnum": 54174, "id": 199, "icon": "icon\\item\\54126.tga"}], "categories": [1, 2, 3, 5]}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"note": "sbtest only; synthetic 491-point row seeds earned=498 for boundary test; monster chance temporarily 100% for deterministic integration",
|
||||
"sql": "0006864747df5e500000000000000001\t14\t16\t8055\t6\t6\t2026-10-20\n0006864747df5e500000000000000002\t14\t16\t3705\t1\t1\t2026-10-20\n0006864747df5e500000000000000003\t14\t16\t8055\t5\t2\t2026-10-20\n0006864747df5e500000000000000004\t14\t16\t8055\t7\t0\t2026-10-20\nffffffffffffffffffffffffffffff01\t14\t16\t8055\t491\t491\t2026-10-20\n500\n",
|
||||
"proxy": "{\"event\": \"request\", \"token\": \"0006864747df5e500000000000000001\", \"vnum\": 8055, \"at\": 1792458562.2058332}\n{\"event\": \"request\", \"token\": \"0006864747df5e500000000000000002\", \"vnum\": 3705, \"at\": 1792458562.2082963}\n{\"event\": \"reply\", \"token\": \"0006864747df5e500000000000000001\", \"amount\": 6, \"at\": 1792458562.389858}\n{\"event\": \"drop-first-success-reply\", \"token\": \"0006864747df5e500000000000000001\", \"at\": 1792458562.3900392}\n{\"event\": \"reply\", \"token\": \"0006864747df5e500000000000000002\", \"amount\": 1, \"at\": 1792458562.390154}\n{\"event\": \"request\", \"token\": \"0006864747df5e500000000000000001\", \"vnum\": 8055, \"at\": 1792458572.1319}\n{\"event\": \"reply\", \"token\": \"0006864747df5e500000000000000001\", \"amount\": 6, \"at\": 1792458572.2864504}\n{\"event\": \"request\", \"token\": \"0006864747df5e500000000000000003\", \"vnum\": 8055, \"at\": 1792458842.0943224}\n{\"event\": \"reply\", \"token\": \"0006864747df5e500000000000000003\", \"amount\": 2, \"at\": 1792458842.28736}\n{\"event\": \"request\", \"token\": \"0006864747df5e500000000000000004\", \"vnum\": 8055, \"at\": 1792458864.3035688}\n{\"event\": \"reply\", \"token\": \"0006864747df5e500000000000000004\", \"amount\": 0, \"at\": 1792458864.487179}\n",
|
||||
"afterRestartSQL": "0006864747df5e500000000000000001\t8055\t6\t6\t2026-10-20\n0006864747df5e500000000000000002\t3705\t1\t1\t2026-10-20\n0006864747df5e500000000000000003\t8055\t5\t2\t2026-10-20\n0006864747df5e500000000000000004\t8055\t7\t0\t2026-10-20\n000686c9636c6e210000000000000001\t8055\t8\t0\t2026-10-20\nffffffffffffffffffffffffffffff01\t8055\t491\t491\t2026-10-20\n500\n"
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"paid": 99,
|
||||
"redeemed_vnum": 70002,
|
||||
"statuses": [
|
||||
1,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"purchase_vnum": 70002,
|
||||
"same_token_replay": true,
|
||||
"server": "192.168.21.203:13000",
|
||||
"catalogue": 49,
|
||||
"all_icons": true,
|
||||
"mall_empty": true,
|
||||
"balance": 0,
|
||||
"quantity": 1,
|
||||
"released_at": "2026-10-19T23:59:00.829045+00:00",
|
||||
"server_source": "3283101",
|
||||
"client_source": "b0975498",
|
||||
"game_sha256": "56975b48aa2fd40389c57eab84d017b0a2518cf6e1b573d967bf239f4ae04aba",
|
||||
"db_sha256": "dc940401fe6ccc3410c8d90ce98d2a5bad2e2c023279665bcd664c008d011699",
|
||||
"backup": "/root/backup-itemshop/20261020-014955",
|
||||
"health": {
|
||||
"db": true,
|
||||
"auth": true,
|
||||
"game_cores": 13,
|
||||
"sbtest_unchanged": true
|
||||
},
|
||||
"cleanup": {
|
||||
"accounts": 0,
|
||||
"characters": 0,
|
||||
"orders": 0,
|
||||
"awards": 0,
|
||||
"items": 0,
|
||||
"quest_flags": 0,
|
||||
"affects": 0
|
||||
},
|
||||
"original_offers_enabled": 49,
|
||||
"original_offers_disabled": 168,
|
||||
"prices": "AVA2 originals",
|
||||
"phone": {
|
||||
"model": "PJZ110",
|
||||
"installed": true,
|
||||
"resources_unchanged": 1282,
|
||||
"launched_to_server_selection": true,
|
||||
"in_game_purchase_tested": false
|
||||
},
|
||||
"client_artifacts": {
|
||||
"dist/Metin2-Android.apk": "975ef06860d503fe32dbfc4c1776b58ebe4899526c82926ffb454df216ca1934",
|
||||
"dist/Metin2.app/Contents/MacOS/mt_native_render": "a2d47754c73eca3dedca57b2af09691fe109d32d3763d7ca9080d5be30130775",
|
||||
"dist/Metin2.app/Contents/Resources/Client/pack/ava2items.eix": "a24c727eab8340f32a213f2c68fd6a7875765570a2ce182cd4487ab523f5f36b",
|
||||
"dist/Metin2.app/Contents/Resources/Client/pack/ava2items.epk": "a054001803e740b63043e523e4d9b51d3a4c9691d69757a4176c873512689f98"
|
||||
},
|
||||
"log_review": {
|
||||
"no_shop_sql_or_protocol_errors": true,
|
||||
"startup_lag_seconds": [
|
||||
47,
|
||||
51
|
||||
],
|
||||
"existing_passpod_missing_table": true,
|
||||
"prior_passpod_errors": 362,
|
||||
"shutdown_peer_null_and_mysql_reconnect_warnings": true,
|
||||
"fatal_errors": false
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
[
|
||||
{
|
||||
"script": "test_applies.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_attr_lock.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_attr_lock_snapshots.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_attr_lock_use.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_attr_lock_views.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_ava2_channel_registry.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_ava2_chest.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_ava2_dungeon_track.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_ava2_pickup.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_ava2_ticket_shop.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_ava2_track.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_battlepass.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_bosses.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_calendar.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_chest.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_cmd_prefix.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_costume_attr.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_drops.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_itemshop.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_mount.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_native_queries.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_pendant.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_pickup.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_queries.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_rings.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_sash.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_stone_socket.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_switchbot.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_switchbot_matching.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_travel.py",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"script": "test_vip.py",
|
||||
"passed": true
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,57 @@
|
||||
[
|
||||
{
|
||||
"case": "same token replays original purchase",
|
||||
"status": 0,
|
||||
"unchanged": true
|
||||
},
|
||||
{
|
||||
"case": "same token changed quantity refused",
|
||||
"status": 7,
|
||||
"unchanged": true
|
||||
},
|
||||
{
|
||||
"case": "insufficient coins",
|
||||
"status": 1,
|
||||
"unchanged": true
|
||||
},
|
||||
{
|
||||
"case": "weekly quantity limit",
|
||||
"status": 2,
|
||||
"unchanged": true
|
||||
},
|
||||
{
|
||||
"case": "monthly quantity limit",
|
||||
"status": 3,
|
||||
"unchanged": true
|
||||
},
|
||||
{
|
||||
"case": "stock remaining less than quantity",
|
||||
"status": 4,
|
||||
"unchanged": true
|
||||
},
|
||||
{
|
||||
"case": "expired offer",
|
||||
"status": 5,
|
||||
"unchanged": true
|
||||
},
|
||||
{
|
||||
"case": "disabled product",
|
||||
"status": 6,
|
||||
"unchanged": true
|
||||
},
|
||||
{
|
||||
"case": "missing prototype",
|
||||
"status": 6,
|
||||
"unchanged": true
|
||||
},
|
||||
{
|
||||
"case": "price changed after confirmation",
|
||||
"status": 9,
|
||||
"unchanged": true
|
||||
},
|
||||
{
|
||||
"case": "award insert failure rolls back wallet stock order",
|
||||
"status": 6,
|
||||
"unchanged": true
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
{"search_matches": 1, "balance": 9852, "subcategories": [[0, 0], [0, 1], [0, 2], [2, 0], [2, 1], [2, 2], [2, 3], [2, 4], [3, 0], [3, 1], [3, 2], [5, 0], [5, 1], [5, 2], [5, 3], [5, 4], [5, 5]], "catalogue_count": 1}
|
||||
@@ -0,0 +1 @@
|
||||
{"after": 2, "confirmed_count": 2, "id": 84, "before": 1}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"device": "Mi 8 Lite",
|
||||
"android": "15",
|
||||
"server": "in-process offline fixture; production untouched",
|
||||
"distance_before": 1550.002197265625,
|
||||
"distance_spread": 774.980712890625,
|
||||
"distance_closed": 1549.99169921875,
|
||||
"position_unchanged": true,
|
||||
"drawer_touch_opened": true,
|
||||
"final_skill_layout": "original arc restored per user feedback",
|
||||
"secondary_menu_visual_scale": 0.72,
|
||||
"minimum_hit_target_dp": 48,
|
||||
"native_touch_and_camera_test": "MT_TEST_MOBILE=1 MT_TEST_PINCH=1 MT_TEST_WIKI=1 port_login_flow_test",
|
||||
"layout_test": "tests/host/touch_layout_test.cpp",
|
||||
"note": "Pinch and drawer tested with injected Android MotionEvents; final visual layout checked separately on device."
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"device": "Mi 8 Lite",
|
||||
"screen_logical": [
|
||||
1169,
|
||||
600
|
||||
],
|
||||
"mode": "offline UI acceptance",
|
||||
"auto_hunt_visual_scale": 0.72,
|
||||
"auto_hunt_hit_target": "unchanged",
|
||||
"skill_button_size": "unchanged",
|
||||
"skill_arc_radius_before": 140,
|
||||
"skill_arc_radius_after": 120,
|
||||
"skill_angle_step_before": 20,
|
||||
"skill_angle_step_after": 25,
|
||||
"layout_scenarios": 6,
|
||||
"expanded_hit_circle_factor": 1.15,
|
||||
"bounds_and_nonoverlap": "PASS",
|
||||
"android_build_and_install": "PASS",
|
||||
"macos_build": "PASS",
|
||||
"screenshot": "build/phone-compact-controls-20261019/after.png"
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"date": "2026-10-19",
|
||||
"primary_entries": [
|
||||
"inventory",
|
||||
"shop",
|
||||
"more"
|
||||
],
|
||||
"drawer_entries": 7,
|
||||
"status_labels": "life and mana with 14px font, outlined text and contrasting background",
|
||||
"chat_preview": {
|
||||
"maximum_lines": 3,
|
||||
"bounded_width": true,
|
||||
"history_preserved": true,
|
||||
"render_scissor_restored": true
|
||||
},
|
||||
"network_notice": {
|
||||
"position": "below status and buffs",
|
||||
"success_timeout_seconds": 6,
|
||||
"same_state_does_not_extend": true
|
||||
},
|
||||
"auto_hunt": "lower edge of combat area; dim idle artwork; unchanged touch target",
|
||||
"skill_layout": "same compact arc and button sizes; extra7/8 remain absent",
|
||||
"checks": {
|
||||
"python_tests": 158,
|
||||
"network_notice_tests": 9,
|
||||
"native_mobile_flow": "PASS",
|
||||
"menu_and_chat_width_viewports": [
|
||||
[
|
||||
640,
|
||||
360
|
||||
],
|
||||
[
|
||||
800,
|
||||
600
|
||||
],
|
||||
[
|
||||
1169,
|
||||
600
|
||||
]
|
||||
],
|
||||
"combat_layout_scenarios": 6,
|
||||
"macos_build": "PASS",
|
||||
"android_build": "PASS",
|
||||
"apk_install": "PASS",
|
||||
"device_visual": "PENDING_UNLOCK",
|
||||
"drawer_widget_picking_and_blank_panel_hit_test": "PASS"
|
||||
},
|
||||
"preview": "build/mobile-hud-refine-20261019/default.png",
|
||||
"preview_scope": "macOS-hosted mobile layout with in-process server and explicit offline HP/SP/chat fixtures",
|
||||
"production_changed": false,
|
||||
"drawer_placement": "under the three primary entries, clear of centered map announcements"
|
||||
}
|
||||
@@ -660,3 +660,10 @@
|
||||
{"time": "2026-10-19T04:37:42.044205+00:00", "event": "authorized_ava2_extension", "unit": "ScriptLib/AttrLockViewsScript", "finding": "AVA2 lock-line styling extended to existing exchange, shop/builder, safebox/mall and GM equipment tooltip setters using bounded read-only contextual queries. Base item packets and CWindow algorithms unchanged.", "evidence": ["docs/AVA2-ATTR-LOCK-VIEWS.md", "tests/wiki/test_attr_lock_ui.py", "tests/wiki/test_attr_lock_views.py"], "result": "macOS/sbtest two-player trade/shop/storage and real GM equipment lock highlights verified; ordinary equipment queries and closed contexts denied. 126 client tests and native macOS/Android builds passed; fixtures and temporary test GM removed. Active switchbot/hyperlink lock metadata remains pending; no aggregate parity upgrade."}
|
||||
{"time": "2026-10-19T05:08:12.881941+00:00", "event": "authorized_ava2_extension", "unit": "ScriptLib/AttrLockSnapshotsScript", "finding": "Owner metadata follows existing item packets; bounded post-entry synchronization bridges loading-phase command loss. Versioned seven-slot chat snapshots and active switchbot lock lines preserve the classic wire layouts and original CWindow algorithms. Chinese active descriptions use measured text width.", "evidence": ["docs/AVA2-ATTR-LOCK-SNAPSHOTS.md", "tests/wiki/test_attr_lock_snapshots.py", "docs/AVA2-PARITY-PLAN.md"], "result": "132 client tests and macOS/Android offline builds passed. macOS/sbtest first-entry sync, immutable link/relay, active roll/stop, slot moves and same-process relogin passed. Final layout measured 348 versus longest text 308; test weapon/902 switchers and original unlocked state restored. Production unchanged; no aggregate parity upgrade."}
|
||||
{"time": "2026-10-19T06:35:09.108370+00:00", "event": "authorized_ava2_extension", "unit": "ScriptLib/Ava2NativeSystems", "finding": "Vendor active AVA2 uiBattlePassEx, uiWiki/WikiUI, uiDropItem and uiEventCalendarNew; preserve classic SHOP_SIGN39 by moving event payload to GC214, configured-db battlepass persistence, real loaded drop data and original CWindow algorithms. Correct active-versus-legacy protocol mapping.", "evidence": ["docs/AVA2-NATIVE-SYSTEMS.md", "tests/wiki/test_native_systems.py", "tools/ava2-native/sources.json", "docs/AVA2-PARITY-PLAN.md"], "result": "146 client tests, 30 server feature scripts with updated version-marker retest, native macOS/Android offline builds; sbtest mission/final idempotency, persistent native views, drop data, scoped calendar/icon verified. Production game a8d606ea deployed; backup /root/backup-native-systems/20261019-083154. No aggregate parity upgrade; phone not tested."}
|
||||
{"time": "2026-10-19T13:52:09.182541+00:00", "event": "authorized_ava2_extension", "unit": "ScriptLib/Ava2ItemShop", "finding": "Vendor active uiitemshopnew.py; native GC93 and authenticated GD/DG76, InnoDB wallet/catalogue/order/award transaction, durable token and confirmed quote, bounded atomic decoder, native UI locale/event/scroll/preview adapters. Correct db prototype pointer index after sort. Classic item layout and CWindow algorithms remain unchanged.", "evidence": ["docs/AVA2-ITEMSHOP.md", "tests/wiki/test_itemshop.py", "tools/ava2-native/sources.json", "audit/evidence/itemshop/"], "result": "157 client tests; 31 server feature scripts including native-layout, integer-total and real prototype-index body tests. macOS/sbtest purchase, redemption, refusal/rollback, restart replay, SQL loss/lock timeout, lost-result retry and real widget callbacks verified. 49 original offers with matching IDs/prices/icons enabled only on sbtest; other 168 and recharge/wheel remain closed. Android offline build only; no production deployment or aggregate parity upgrade."}
|
||||
{"time": "2026-10-19T14:13:41.385041+00:00", "event": "authorized_mobile_ui_fix", "unit": "ScriptLib/MobileHUD and host/TouchController", "finding": "Fix UTF-8 minimap tooltip boundaries. Retain original skill arc per user feedback; smaller secondary menu artwork with 48dp hit targets, compact menus with drawer and native shop entry. Proportional two-finger camera zoom, stationary-stick fix and gesture cancellation.", "evidence": ["tests/wiki/test_minimap_buttons.py", "tests/port/port_login_flow_test.cpp", "audit/evidence/mobile-ui/acceptance.json", "audit/evidence/itemshop/minimap-tooltips.json", "docs/ANDROID-TESTING.md"], "result": "158 Python tests; focused real TouchController/camera offline flow; Mi 8 Lite Android multi-pointer and menu checks. No production deployment or aggregate parity upgrade."}
|
||||
{"time": "2026-10-19T14:22:27.432875+00:00", "event": "authorized_mobile_ui_refinement", "unit": "host/TouchController", "finding": "Shrink AUTO artwork to 72% while preserving hit target; tighten the single six-skill arc from radius140 to120 with 25-degree spacing and preserved clockwise order. Strengthen all-button overlap checks to actual 1.15 expanded hit radius.", "evidence": ["audit/evidence/mobile-ui/compact-controls.json", "tests/host/touch_layout_test.cpp", "docs/ANDROID-TESTING.md"], "result": "Six layout scenarios PASS; macOS and Android builds PASS, installed and visually checked on connected Mi 8 Lite. No production server change."}
|
||||
{"time": "2026-10-19T14:24:36.040212+00:00", "event": "authorized_mobile_ui_refinement", "unit": "host/TouchController", "finding": "Remove mobile quick-slot buttons 7/8 from the button list and eight-control geometry; remove their render and pointer assignment branches. Keep attack, six-skill arc and AUTO.", "evidence": ["src/host/touch_controller.h", "src/host/touch_layout.h", "tests/host/touch_layout_test.cpp", "docs/ANDROID-TESTING.md"], "result": "Layout checks PASS across six screen/safe-area/target configurations. Android and macOS builds PASS. Updated APK installed on Mi 8 Lite; no server changes."}
|
||||
{"time": "2026-10-19T19:10:33.466877+00:00", "event": "authorized_mobile_ui_refinement", "unit": "ScriptLib/MobileHUD, MeshPort notice and chat preview", "finding": "Three named primary entries with seven-action collapsing drawer; contrasting HP/SP numbers, lower/dim AUTO, bounded three-line chat preview using platform render scissor without modifying chat history, network status below buffs with duplicate-state suppression.", "evidence": ["audit/evidence/mobile-ui/hud-refinement.json", "tests/port/port_login_flow_test.cpp", "tests/meshport/test_login.py", "docs/ANDROID-TESTING.md"], "result": "158 Python tests, nine notice tests, native mobile menu/chat/scissor/gesture flow, six combat layouts and macOS/Android builds passed. APK installed on locked Mi 8 Lite; new on-device visual acceptance remains pending unlock. No server deployment or aggregate parity upgrade."}
|
||||
{"time": "2026-10-19T22:09:36.221469+00:00", "event": "authorized_mobile_ui_refinement", "unit": "ScriptLib/MobileHUD", "finding": "Remove HP/SP numeric labels and their dark plate at user request; retain original native gauges, recovery updates and stamina strip.", "evidence": ["src/platform/ScriptLib/MobileHUDScript.inc", "tests/port/port_login_flow_test.cpp", "docs/ANDROID-TESTING.md"], "result": "Focused native mobile flow PASS; Android and macOS builds PASS. APK installed successfully on Mi 8 Lite. Device remains locked; visual acceptance pending unlock. No server changes."}
|
||||
{"time": "2026-10-19T23:59:00.829045+00:00", "event": "authorized_production_release", "unit": "AVA2 native itemshop", "finding": "Deploy sbtest-verified game/db, InnoDB account/catalogue/order/award tables and 49 original compatible products to 203; patch production third-hand prototype. Update canonical macOS bundle and connected Android APK/resources.", "evidence": ["audit/evidence/itemshop/production-20261020.json", "docs/AVA2-ITEMSHOP.md"], "result": "CH1 catalogue/icons, insufficient funds, 99-coin widget purchase, same-token replay, purchase history and mall-to-inventory redemption PASS. Temporary QA account, character, funds, items, orders and awards removed. db/auth/13 production game cores healthy, sbtest unchanged. Recharge, wheel and 168 unsupported offers remain disabled. Android installed/launched; mobile in-game purchase acceptance not claimed. No aggregate parity upgrade."}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
MTWIKI 1 638070c02e0ce213ff2616a733d241b3c7b32c9a483eaab4bdcde633fbaecc20
|
||||
MTWIKI 1 27b35188d2f5c96dd51f62c5f11689b15dfc1a6efcd96c03e26bd1b39c2b0d71
|
||||
I 2 2 YMIR ITEM_NONE 0 0 1 0 0
|
||||
I 10 10 短刀+0 ITEM_WEAPON WEAPON_SWORD 0 2 11 1
|
||||
I 11 11 短刀+1 ITEM_WEAPON WEAPON_SWORD 0 2 12 2
|
||||
@@ -5552,9 +5552,9 @@ I 80006 80006 金砖(100万两) ITEM_SPECIAL SPECIAL_MAP 0 1 0 0
|
||||
I 80007 80007 金砖(200万两) ITEM_SPECIAL SPECIAL_MAP 0 1 0 0
|
||||
I 80008 80008 黄金锭 ITEM_SPECIAL SPECIAL_MAP 0 1 0 0
|
||||
I 80014 80014 超级宝石合成秘籍 ITEM_QUEST 0 0 1 0 0
|
||||
I 80015 80015 龙币兑换券(500) ITEM_QUEST 0 0 1 0 0
|
||||
I 80016 80016 龙币兑换券(1000) ITEM_QUEST 0 0 1 0 0
|
||||
I 80017 80017 龙币兑换券(50) ITEM_QUEST 0 0 1 0 0
|
||||
I 80015 80015 点券兑换券(500) ITEM_QUEST 0 0 1 0 0
|
||||
I 80016 80016 点券兑换券(1000) ITEM_QUEST 0 0 1 0 0
|
||||
I 80017 80017 点券兑换券(50) ITEM_QUEST 0 0 1 0 0
|
||||
I 90001 90001 1000点卡 ITEM_USE USE_BUCKET 0 1 0 0
|
||||
I 90002 90002 水桶 ITEM_RESOURCE RESOURCE_BUCKET 0 1 0 0
|
||||
I 90003 90003 水晶 ITEM_RESOURCE RESOURCE_CRYSTAL 0 1 0 0
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"schema": 1,
|
||||
"catalogue_sha256": "638070c02e0ce213ff2616a733d241b3c7b32c9a483eaab4bdcde633fbaecc20",
|
||||
"catalogue_sha256": "27b35188d2f5c96dd51f62c5f11689b15dfc1a6efcd96c03e26bd1b39c2b0d71",
|
||||
"source_sha256": {
|
||||
"item_proto.txt": "7d4f5c54983d5ccb5b1db59a734e0c60d7ab6480e807c48c881be39d5769cbd1",
|
||||
"item_names.txt": "7a616550ec56206dcdc540f20f30ed3725fb6c9d6475dbd1a3b6eaddaa29a4d5",
|
||||
@@ -15,7 +15,7 @@
|
||||
"generator_sha256": "9c4e1b6069179c36c080a1136d65cbe52a8e44b3577fb8391e8404f5162ef40b",
|
||||
"localization_sha256": {
|
||||
"item_names_zh.txt": "5604985d7f11039f3d3e38d4e2c07995e80ca3e4f6deb01fe57cd772e9cd0f70",
|
||||
"item_names_zh_overlay.txt": "dcaee419bcc23e72e6dcce1c521a48501b3bbd6b1fd26fa925a213d53515df7e",
|
||||
"item_names_zh_overlay.txt": "a4660f7b20e15beaa05220bf23f4df5a4ef64f474bc03a754e2338ce144c0e36",
|
||||
"mob_names_zh.txt": "fdbfe4b3f3367d5842c0e9bbe0b5e5ea2dbe99fb6e566ef5789f65d3794eab5c",
|
||||
"mob_names_zh_overlay.txt": "7c44a5f6cff5c3c27c13cc4c7be91d619c20c67a8e091222e13ed392ea18d00b"
|
||||
},
|
||||
|
||||
@@ -1430,9 +1430,9 @@ VNUM LOCALE_NAME
|
||||
76022 红龙的祝福(中)
|
||||
76023 初级物品属性转换秘笈
|
||||
76024 初级追加物品属性秘笈
|
||||
80015 龙币兑换券(500)
|
||||
80016 龙币兑换券(1000)
|
||||
80017 龙币兑换券(50)
|
||||
80015 点券兑换券(500)
|
||||
80016 点券兑换券(1000)
|
||||
80017 点券兑换券(50)
|
||||
100000 时间灵药(小)
|
||||
100001 时间灵药(中)
|
||||
100002 时间灵药(大)
|
||||
|
||||
@@ -1774,10 +1774,10 @@ Automatically refills your HP. Contains 3,000,000 HP. Not tradeable. 自动补
|
||||
A dark and already worn out pouch sewed from leather. 一个用皮革缝制、颜色暗沉且已破旧的小袋。
|
||||
An unused parchment of good quality. 一张未使用的优质羊皮纸。
|
||||
A lump of gold that has never been crafted. It is being sold in a shop for a high price. 一块未经加工的金块,在商店能卖出高价。
|
||||
Voucher to the value of 100 Dragon Coins. Item is tradeable. 面值100龙币的兑换券。此物品可交易。
|
||||
Voucher to the value of 500 Dragon Coins. Item is tradeable. 面值500龙币的兑换券。此物品可交易。
|
||||
Voucher to the value of 1000 Dragon Coins. Item is tradeable. 面值1000龙币的兑换券。此物品可交易。
|
||||
Voucher to the value of 50 Dragon Coins. Item is tradeable. 面值50龙币的兑换券。此物品可交易。
|
||||
Voucher to the value of 100 Dragon Coins. Item is tradeable. 面值100点券的兑换券。此物品可交易。
|
||||
Voucher to the value of 500 Dragon Coins. Item is tradeable. 面值500点券的兑换券。此物品可交易。
|
||||
Voucher to the value of 1000 Dragon Coins. Item is tradeable. 面值1000点券的兑换券。此物品可交易。
|
||||
Voucher to the value of 50 Dragon Coins. Item is tradeable. 面值50点券的兑换券。此物品可交易。
|
||||
A stable travel case to transport water - sadly it is empty right now. 一个坚固的旅行水囊,可惜现在是空的。
|
||||
A stable travel case to transport water. 一个坚固的旅行水囊。
|
||||
An especially nice and clear gemstone which shines fascinatingly in the sunlight. 一颗格外美丽剔透的宝石,在阳光下闪耀迷人。
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 38 and column 21.
|
@@ -88,7 +88,7 @@ change_guild_master._60_say 完成了!
|
||||
change_guild_master._70_say 你不在帮会里。
|
||||
change_guild_master._80_say 你已经是帮主了。
|
||||
change_guild_master._90_say 未来的帮主必须在线才能接任!
|
||||
charge_cash_by_voucher._010_syschat %s个龙币已充入你的账户。
|
||||
charge_cash_by_voucher._010_syschat %s个点券已充入你的账户。
|
||||
check_collect_reward._010_npcChat 生物学者无效的秘方
|
||||
check_collect_reward._020_say_title 医生:
|
||||
check_collect_reward._030_say 你好!有什么我能帮你的吗?
|
||||
@@ -5445,7 +5445,7 @@ new_quest_premium_lv4._140_notice 齐了!现在赶快回武器商人那里。
|
||||
new_quest_premium_lv4._150_notice 可惜这枝石菖蒲已经枯萎了。
|
||||
new_quest_premium_lv4._160_say 你需要的石菖蒲数量:[ENTER]%s
|
||||
new_quest_premium_lv4._170_say 这不够。这点石菖蒲只够做几滴!
|
||||
new_quest_premium_lv4._180_say 啊,石菖蒲!现在我只需要一些特别的麝香油了。它只能在一家非常特别的商店订购。旋转的金币会给你指路。你需要一些龙币,不过我相信你肯定存了一些,对吧?我会永远感激你的!之后你可以去仓库保管员那里取货。那样我的材料就终于齐了!
|
||||
new_quest_premium_lv4._180_say 啊,石菖蒲!现在我只需要一些特别的麝香油了。它只能在一家非常特别的商店订购。旋转的金币会给你指路。你需要一些点券,不过我相信你肯定存了一些,对吧?我会永远感激你的!之后你可以去仓库保管员那里取货。那样我的材料就终于齐了!
|
||||
new_quest_premium_lv4._190_say 请快点把麝香油带给我。你会因此得到奖励的!
|
||||
new_quest_premium_lv4._200_say_reward 继续打猎,直到你能带回%s枝石菖蒲!
|
||||
new_quest_premium_lv4._20_sayTitle 我的心上人
|
||||
|
||||
|
Can't render this file because it is too large.
|
@@ -48,3 +48,35 @@ ANDROID_SERIAL=<serial> python3 tools/perf/run_render_isolation.py build/qa/devi
|
||||
```
|
||||
|
||||
每段排除首个加载后的采样窗口,记录 6 个 2 秒窗口;输出 CSV、截图、内存快照和汇总 JSON,结束后恢复正常登录启动。
|
||||
|
||||
## 手机操作与布局(2026-10-19)
|
||||
|
||||
根据本轮用户反馈,六个技能保留围绕右下攻击键的弧形排列;自动狩猎放在外侧,底部7/8两个额外快捷按钮已移除。
|
||||
菜单和自动狩猎按钮图形缩小28%,同时保留至少48dp触摸区域;头像和技能按钮保持原尺寸。
|
||||
六个技能的弧半径从140缩到120(约14%),角间距从20°调整为25°,按原顺序排列,含15%扩展点击区也不重叠。
|
||||
顶部仅保留带名称的背包、商城、更多。角色、好友、设置、任务、挂机设置、帮助和聊天在“更多”的三列面板中展开,点击功能后自动收起;HUD隐藏时也收起。
|
||||
左侧保留移动摇杆和主要视野,副本/战令/生物学家入口继续在小地图外环。
|
||||
自动狩猎移到战斗区下缘,未开启时淡化底色和边框,技能弧形、按钮大小和顺序保持。
|
||||
生命/法力只显示原生状态条,不显示具体数值或数字底板;组网提示放在状态/增益下方,成功6秒后消失,重复状态不延长提示。
|
||||
聊天预览最多显示三行并限制宽度,消息按原方式渐隐;打开输入或完整聊天记录沿用原界面。
|
||||
裁剪通过 `chat.RenderPreview` 的平台绘制剪裁完成,消息和历史列表不做删减,绘制后恢复剪裁范围。
|
||||
|
||||
场景空白处双指张开拉近、收拢拉远;左右手先后落下均可,界面和战斗按钮优先接收各自手势。
|
||||
已经推动的摇杆不会被新落下的右手抢作缩放。缩放直接按指距比例改变镜头距离,原镜头距离上限和地形碰撞仍有效。
|
||||
系统取消触摸或应用失去焦点时清掉残留手势;摇杆停在中心时不再误发送移动。
|
||||
|
||||
可重复的离线手势检查(真实TouchController和镜头,未连接正式服):
|
||||
|
||||
```sh
|
||||
cmake --build build/native --target port_login_flow_test -j4
|
||||
MT_TEST_MOBILE=1 MT_TEST_PINCH=1 MT_TEST_WIKI=1 \
|
||||
build/native/src/port/port_login_flow_test "$PWD/build/ava2-parity-20261018/Client" "$PWD/build/native/python27.zip"
|
||||
```
|
||||
|
||||
`MT_TEST_PINCH`只运行加载及移动端镜头/折叠菜单验收,跳过无关的频道状态探测和后续经典交互测试。
|
||||
布局边界和按钮不重叠由 `tests/host/touch_layout_test.cpp` 覆盖不同屏宽、刘海留白和最小触摸尺寸。
|
||||
|
||||
本轮布局验收包含640×360、800×600、1169×600下的常驻入口/完整菜单/聊天编辑区边界,
|
||||
以及聊天预览剪裁、完整历史保留、绘制剪裁恢复、菜单点击后收起和原双指缩放。
|
||||
2026-10-19本轮新版APK已安装到Mi 8 Lite;安装时手机锁屏,当前视觉证据为macOS宿主的移动布局离线预览,
|
||||
手机新版实机视觉与手指操作验收待解锁补做,不计为已通过。
|
||||
|
||||
@@ -0,0 +1,460 @@
|
||||
# AVA2 原生功能全量对齐实施规格书(审查修订版)
|
||||
|
||||
修订日期:2026-10-19(America/Los_Angeles)。本文规定后续实现和验收,不代表功能已完成或已上线;日期型版本标识及既有证据文件名不作为本地日历日期解释。
|
||||
|
||||
## 文档分工与效力
|
||||
|
||||
本文是协议、槽位、状态布局、经济规则、迁移、验收和兼容回退的唯一技术契约。[方案 B 路线图](AVA2_PARITY_ROADMAP_PLAN_B.md)只描述阶段顺序、依赖和交付物,不再单独维护结构体、包号、DDL或槽位编号。两份文档的修订日期不替代发布版本;遇到冲突先停止受影响实施,以核实的活动源码及本契约同步修订后再继续。
|
||||
|
||||
本次只修订计划,未修改运行代码或工具。下文标为“待实现”的工具加固和恢复机制必须有实现与测试证据后才能通过门槛;当前两个基线提交不因此获得生产可用认证。
|
||||
|
||||
<a id="baseline"></a>
|
||||
|
||||
## 1. 基线、范围和事实来源
|
||||
|
||||
### 1.1 代码与部署基线
|
||||
|
||||
| 项目 | 审查基线 | 状态 |
|
||||
|---|---|---|
|
||||
| 客户端 | `feature/ava2-unlock` / `6661b170`,标识 `mt20261022`;macOS arm64 / Android arm64,SDL3 + Vulkan | 已提交;本轮扩展未发布 |
|
||||
| 服务端 | `feature/ava2-unlock` / `65db9fc` | 点券、wear40、扩展道具状态及迁移工具已提交;对应构建未正式部署 |
|
||||
| 正式服商品 | 原 AVA2 217 条目录,49 条启用、168 条停用 | 本文基线;发布前重新读取核对 |
|
||||
| 16 条新增商品 | 8 件限时坐骑、4 件服装、4 件发型 | 数据和资源已构建;仍待真实使用和外观验收 |
|
||||
| 点券掉落 | 已通过 sbtest 等级限制、重复回复、每日上限、重启重登验收 | 未正式启用 |
|
||||
| 道具扩展 | game/db 隔离构建、macOS 构建、序列化及独立 MySQL 迁移样例通过 | 不等于角色实际道具保存链路和 Android 联机验收通过 |
|
||||
|
||||
正式二进制、备份和验收记录见 [商城说明](AVA2-ITEMSHOP.md)、[当前实施记录](AVA2-SHOP-COMPLETION.md) 与 `audit/evidence/itemshop/`。每次实施必须记录新的两端提交 SHA、资源散列、数据库迁移版本及运行二进制散列,不能只写 `mt20261022`。
|
||||
|
||||
### 1.2 原生参考与适配边界
|
||||
|
||||
- 原客户端:`../../AVA2/3. Source BIN/Client`。
|
||||
- 原脚本、布局和资源:`../../AVA2/1. Client DEV/pack_maker`。
|
||||
- 原服务端:`../../AVA2/2. Backup SF+SRC and SQL/FILES+SRC.tgz` 中 `home/Ava2_src/Srcs/Server`;当前只读解包参考在 `../build/shop-completion-reference`,该临时路径不能成为构建依赖。
|
||||
- 每个系统必须记录实际启用宏、入口、源文件、协议、数据表或道具字段、资源和测试证据;目录中的旧版、备份版或未启用分支不能作为活动实现。
|
||||
- 原生界面和玩法语义以启用的 AVA2 源码为依据。当前底座保留 225 格背包、120 级和现有基础加密;必要的包号、槽位、定宽类型及持久化适配须明确登记。
|
||||
- 用户确认的点券掉落、移动端触控和布局属于本项目扩展,单独标注,不能当作 AVA2 原生行为。原源码中的越界、重复扣款等缺陷应修复并记录差异。
|
||||
- 本文扩展旧 [对齐计划](AVA2-PARITY-PLAN.md) 中排除的金币和道具存储范围;这些基础改造按下述独立阶段交付,不能据此把全部原版角色结构和玩法默认纳入本轮。
|
||||
|
||||
### 1.3 “全量”交付清单
|
||||
|
||||
全量是最终目标,不能只依据下列专项名称宣布完成。先交付剩余 168 条商城商品及其真实依赖,再按系统清单逐项收尾。
|
||||
|
||||
1. 商品事实清单:服务端 `data/ava2-itemshop/original-products.tsv`、`completion-168.json`、`compatibility.json`、`verified-products.json`。
|
||||
2. 每条商品补齐:商品 ID、vnum、原价和分类、依赖系统、原始启用实现、产物链、图标/模型/动作/特效、消耗和有效期、持久化与转移行为、测试证据、可售状态。
|
||||
3. 状态依次为待实现、数据/资源已准备、联机验收通过、允许上架、正式服验收通过。模板存在或图标可见不能跳级;已上架 49 条也需回归。
|
||||
4. 原有洗练、锁定、批量开箱/拾取、追踪、战令、百科/掉落查询、活动日历、换线、肩带、坐骑、护符、戒指及新系统均登记在系统清单中。旧文档状态与当前运行证据冲突时,以可核验的新证据更新状态。
|
||||
5. 未纳入本期排程的其他 AVA2 系统明确标为待排期,不能省略后计为全量完成;狼人、征服者等扩展不因资源存在而自动启用。
|
||||
|
||||
<a id="contract"></a>
|
||||
|
||||
## 2. 基础协议、版本及数据约束
|
||||
|
||||
### 2.1 定宽、布局与分帧
|
||||
|
||||
新增或修改的网络和 game/db 序列化字段使用定宽整数;不能假定原生 `long` 在 FreeBSD i386 与 arm64 等宽。保留既有 wire 布局需要按实际字段逐项核对,不能全局替换类型或全局改打包方式。
|
||||
|
||||
有符号64位金额和增量显式使用 `int64_t`,无符号64位计数显式使用 `uint64_t`。`QWORD` 名称不构成宽度保证:当前服务端 `libthecore/include/typedef.h` 将其定义为 `unsigned long`,在32位目标上只有4字节;新增协议不得直接使用该别名。任何已有别名的修改都须审计调用方与ABI,不能直接全局替换。
|
||||
|
||||
- 新增打包结构使用配对的 `#pragma pack(push, 1)` / `#pragma pack(pop)`,两端加 `sizeof` 和关键 `offsetof` 断言,记录字节序、符号、长度与子包布局。
|
||||
- 固定包登记实际长度;变长包先验证头长、总长、上限、记录数和乘法溢出,完整收齐后才更新状态。
|
||||
- 金币、点券、物品数量、位置和时间分别检查合法范围,不能通过整数截断完成类型转换。
|
||||
- 覆盖半包、粘包、未知子包、重复帧、越界数量、断线和旧会话回复;旧角色/旧窗口的回复不得修改新会话状态。
|
||||
|
||||
### 2.2 按方向维护协议登记表
|
||||
|
||||
| 功能 | AVA2 已核实入口或编号 | 本项目处理要求 |
|
||||
|---|---|---|
|
||||
| 离线商店 | CG57/58,GC47/48 | 分方向核对现有处理表、子包和长度;不能写成双向 57/58 |
|
||||
| 商店搜索 | CG143,GC156 | 分页、错误响应和购买结果分别按源结构核对 |
|
||||
| 成长宠物 | 活动 `ENABLE_NEW_PET_SYSTEM` 分支及原命令/状态同步 | 不臆造双向 221;登记实际调用后确定适配 |
|
||||
| 第 6/7 属性 | `__BL_67_ATTR__` 的原请求及处理 | 包号、长度以两端活动源码和当前占用审查结果为准,不预留双向 222 |
|
||||
| 特殊背包 | 原窗口类型和物品操作路径 | 不默认另需 CG/GC219;先核对原原生数据流 |
|
||||
| 商城/道具扩展 | 本项目 GC93;game/db GD/DG76 | 保留当前契约;道具扩展为 GC93 子操作 10,不能与新子包重复 |
|
||||
| 64 位金币 | 待独立阶段确定 | 218 不在本文分配给金币;AVA2 GC218 用于帝国战争,CG221/222 也已有其他定义 |
|
||||
|
||||
此表是审查起点,不代替完整协议清单。新增功能合入前必须生成“方向、编号、宏、结构长度、处理函数、能力版本”登记,核对启用宏后不得重号;与原版映射不同的编号同时更新发送、长度表、分发和接收处理。
|
||||
|
||||
### 2.3 兼容性与版本门禁
|
||||
|
||||
- `mt20261022` 仅代表现有 wear40/扩展道具能力,不代表已支持本文所有后续包。现有客户端没有实现的金币、离线商店等包不能仅凭此标识下发。
|
||||
- 新功能使用明确的协议版本或能力协商;若基础布局不兼容,提升最低版本。新版本值在发布清单中确定,两端同时落地;不能只比较发布日期字符串。
|
||||
- 审计从登录加载、物品加载到进入游戏的全部发送时点,在首个不兼容数据下发前完成门禁。旧客户端应得到可理解的更新提示。
|
||||
- game、db、auth 和所有会使用变更内部结构的核心作为同一兼容发布单元部署,禁止新旧 game/db ABI 混跑。
|
||||
|
||||
<a id="phase-0"></a>
|
||||
|
||||
## 3. 阶段 0:冻结事实和依赖(后续实施前完成)
|
||||
|
||||
- 固定两端代码及源资源散列,记录实际启用宏。宠物明确 `ENABLE_NEW_PET_SYSTEM` 已启用、`__NEWPET_SYSTEM__` 未启用;金币原宏为 `FULL_MAX_YANG`,特效参考 `__ITEM_SHINING__`。
|
||||
- 固定原生道具/技能/稀有属性/掉落/任务数据来源,完成商品到系统、系统到协议和存储的依赖表。
|
||||
- 生成版本化发布清单,绑定两端提交、原生源/资源散列、工具链/依赖库散列、协议和数据布局版本、迁移与备份标识、逐项商品开关及销售排期。本清单属于阶段0交付物,目前不能将文中的要求当作已存在的验证工具。
|
||||
- 将旧计划中 `72319/72320`、宠物分支等已证实错误注明为历史描述,后续实施以本规格及原始证据为准。
|
||||
- 出口:协议登记、物品状态布局、迁移清单、系统清单和可执行构建步骤齐全。尚未核实的契约必须标为阻塞项,不能用猜测填充。
|
||||
|
||||
<a id="phase-1"></a>
|
||||
|
||||
## 4. 阶段 1:wear40 与道具扩展持久化
|
||||
|
||||
### 4.1 槽位映射
|
||||
|
||||
保留经典 0~18;19/20 继续为服装/发型。下表是当前项目编号,不直接照搬 AVA2 的数字。
|
||||
|
||||
| 相对装备位置 | 当前定义 |
|
||||
|---|---|
|
||||
| 21、22 | `WEAR_RING1`、`WEAR_RING2` |
|
||||
| 23 | `WEAR_BELT` |
|
||||
| 24 | `WEAR_COSTUME_SASH` |
|
||||
| 25、26 | `WEAR_COSTUME_MOUNT`、`WEAR_COSTUME_MOUNT_SKIN` |
|
||||
| 27 | `WEAR_PENDANT` |
|
||||
| 28、29 | `WEAR_RINGS_1`、`WEAR_RINGS_2` |
|
||||
| 30 | `WEAR_COSTUME_WEAPON` |
|
||||
| 31、32 | `WEAR_COSTUME_PET`、`WEAR_PET` |
|
||||
| 33 | `WEAR_COSTUME_NEW_SASH` |
|
||||
| 34、35、36 | `WEAR_SHINING_WEAPON`、`WEAR_SHINING_ARMOR`、`WEAR_SHINING_SPECIAL` |
|
||||
| 37~39 | 保留,不能自行加入手套等其他装备 |
|
||||
|
||||
`WEAR_MAX_NUM = 40`。双端槽位、Python 常量、UI 和位置校验同时对应;实际渲染和玩法未完成的槽位不等于可出售对应商品。
|
||||
|
||||
### 4.2 额外道具状态
|
||||
|
||||
保留经典客户端物品封包 3 个 socket / 7 个属性;用已提交的 `PortItemExtra` 补充 5 个 socket、8 个属性和 25 字节名称,总计 69 字节。持久化在 `player.item.port_extra VARBINARY(69)`,内部 `TPlayerItem` 的 ABI 同步变更。
|
||||
|
||||
- 逻辑 socket 为 0~7、属性为 0~14;每类道具单独规定索引含义,宠物技能不能作为角色普通 apply 处理。
|
||||
- 客户端额外信息通过 GC93 子操作 10 同步,包含窗口、位置、vnum、道具 ID 和 extra;必须核对身份,避免迟到状态贴到其他道具。加载、清空、移动和重连时的身份关联须有明确契约,不能仅因同槽位vnum相同而附着旧状态。
|
||||
- 名称最长 24 字节并保证结尾为零;按原生输入、合法字符和现有编码链路处理,多字节字符不能截成非法名称。
|
||||
- 审计背包、装备、仓库、商城仓库、交易、摆摊、邮寄/发货(若存在)、拍卖(若启用)、分堆、合成、精炼和掉落的保存/复制/清空路径。状态不同的物品不得错误堆叠。
|
||||
- `port_extra` 的当前合法存储长度只允许0或69字节;0仅可用于允许采用旧默认状态的道具。成长宠物等必需状态缺失、非预期长度、非法名称/技能/数值范围必须报错,不能解释为正常空状态。
|
||||
- 读取失败时保留原始二进制与道具ID、所有者和错误原因,阻止受影响角色/仓库继续加载及写回,进入隔离修复流程;客户端拒绝非法帧且不部分更新。禁止把失败时清零的临时结构写回数据库。
|
||||
- 当前 `PortItemExtraRead` 返回失败后,DB加载调用方尚未检查返回值;这是待修复的发布阻断项,不因序列化单测通过而视为已解决。
|
||||
- 先完成实际加载→移动→保存→冷重启往返验收,再开发依赖扩展状态的付费宠物。补充空旧状态、1/68/70字节、完整长度但语义非法等用例,验证异常期间原始数据不变。
|
||||
|
||||
### 4.3 存量位置迁移
|
||||
|
||||
采用服务端 `tools/ava2-itemshop/migrate_extended_items.py` 的保存计划,不另写无记录的整体偏移 SQL。现有工具只通过隔离样例验证,执行前还须完成本节的前置校验加固;不能直接作为生产迁移工具使用。
|
||||
|
||||
| 原数据 | 新数据 |
|
||||
|---|---|
|
||||
| EQUIPMENT 相对龙魂位置 32~43 | 40~51 |
|
||||
| INVENTORY 绝对腰带位置 287~302 | 295~310 |
|
||||
| 物品快捷栏引用:龙魂 257~268、腰带 287~302 | 分别增加 8 |
|
||||
|
||||
覆盖 `player` 和 `player_deleted` 的快捷栏;发现异常已占用位置、未知模板或非预期窗口立即停止。脚本目前不自动停止服务,且计划模式会创建迁移记录表,不能称为完全只读。
|
||||
|
||||
迁移前停止所有目标库写入者并备份;先生成精确 ID/旧值/新值计划、审阅,再应用。中断恢复必须重用同一计划,不得从半迁移数据重新生成。保留计划、日志、校验结果和备份,验证重放不再移动。
|
||||
|
||||
执行前置校验与恢复必须达到以下要求,当前工具未完整实现,需先加固并测试:
|
||||
|
||||
1. 计划绑定连接目标host/port/schema、备份标识、源数据及schema指纹、迁移/计划格式版本、对应两端提交;同名数据库不代表同一目标。涉及依赖也须保存散列,不将账号密码写入计划。
|
||||
2. 在第一次修改前验证全部记录的ID、所有者、窗口、vnum、旧位置及迁移集合,检查目标格异常占用;同一计划内按顺序移走的源记录不误判为冲突。仅核对ID和pos不足以确认旧计划仍适用。
|
||||
3. 确认 `port_extra` 是69字节VARBINARY、NOT NULL、默认空字节串;如列已存在但结构不符,立即停止并提供单独的审阅迁移,不能只检查列名后继续。应用前统计并隔离不合法长度/状态。
|
||||
4. 保存进度后逐行按完整身份及旧值条件更新;中断后只接受同一计划的原状态或已完成状态,发现其他变化即停止。迁移完成标记不能跳过目标新布局、列结构和资产摘要复核。
|
||||
5. MySQL DDL可能隐式提交,不能宣称包含ALTER的整个迁移可由单次ROLLBACK撤销。演练在每类位置移动、快捷栏更新和建列前后中断并重放;部分迁移时禁止启动业务核心。
|
||||
6. 复核item ID/所有者/数量/额外状态及角色金币、点券、订单、发货和锁定记录未非预期变化。失败不通过恢复旧全库覆盖新交易,按保存计划和已演练的停写恢复步骤处理。
|
||||
|
||||
出口:新旧位置、额外状态、锁定状态和角色资产总量一致,旧客户端门禁及兼容回退演练通过。
|
||||
|
||||
<a id="phase-2"></a>
|
||||
|
||||
## 5. 阶段 2:外观、限时坐骑及强化石
|
||||
|
||||
- 先验收已准备的 16 件:`71500/1、71503/4、71506/7、71509/10、41119~41122、45005/6、45057/8`。核对 7 天/30 天从原规定的首次使用时点开始、重登和到期处理、性别限制、模型贴图和实际属性。
|
||||
- 武器时装按原 `CItem::ModifyPoints`、武器类型和客户端模型附着链移植;校验真实武器与外观 value3 类型匹配。更换、卸下、精炼或销毁真实武器时处理外观依赖,背包满时不得丢物;不能仅新增一个未有源契约的 `PART_WEAPON_COSTUME`。
|
||||
- 披风外观独立于基础披风;核对覆盖优先级、属性吸收、卸下恢复、等级/比例限制、模型尺度及动作。
|
||||
- 特效按 `__ITEM_SHINING__` 的类型、部位、资源配置和生命周期移植,不假定 proto 已有 `shining_table` 字段。覆盖换装、传送、重登、死亡、隐藏显示和资源卸载,防止残留/重复附着。
|
||||
- 强化石沿用 `port_costume_attr.cpp` 和 AVA2 固定规则:value0=apply、value1=值、value2=目标掩码;目标 flag 为服装1、发型2、武器3、坐骑外观4、披风外观5、特效6,判断 `value2 & (1 << flag)`。
|
||||
- 追加固定属性,保留原最大条数、禁止重复、未装备/未交易/未锁定条件、失败不错误消耗等约束;不改成从 `item_attr` 随机抽取。基线 `verified-products.json` 中已有42件强化石;`completion-168.json` 中另有46件武器/披风/特效强化石商品待完成,不能重新把已启用42件计作待解锁成果。发布时从清单重新计算数量并附结果。
|
||||
|
||||
出口:每类至少覆盖装备、卸下、真实属性增减、资源目视、所有适用职业性别、到期、重登和失败路径;通过后才允许相关商品上架。
|
||||
|
||||
<a id="phase-3"></a>
|
||||
|
||||
## 6. 阶段 3:活动分支宠物系统
|
||||
|
||||
采用 `ENABLE_NEW_PET_SYSTEM`:原 `PetSystem.cpp/.h`、`cmd_general.cpp` 的 `pet_egg/pet_evolve/pet_add_slot` 等入口、`uipetsystemnew.py` 及对应 interfacemodule/game 接线。`__NEWPET_SYSTEM__` 下的 `New_PetSystem.cpp`、`new_petsystem` 表和孵化/喂养窗口不能混入,除非单独记录并完成整套替代设计。
|
||||
|
||||
- 先区分普通宠物时装与成长宠物;道具为成长状态唯一权威来源,复用上述 extra 存储,不另建只有三技能槽的第二份状态表。
|
||||
- 逐项登记原 socket 的寿命、等级、经验、进化和加成含义,属性槽的技能 ID/等级及锁定值,名称及对应宠物种族。复用现有跟随实体时避免重复施加道具加成。
|
||||
- 保留原进化等级 40/75/100、各阶段上限、材料表和最多15个逻辑技能槽;115级扩槽、技能书、遗忘、改名、寿命补充等均按实际源码及道具配置验证。
|
||||
- 原孵化代码存在参数数量检查不足等缺陷,必须修复;孵化费用实际扣款行为需要核对原数据与界面并形成明确决策记录,不能照抄漏扣或创造隐性收费。
|
||||
- 客户端只补活动脚本实际需要的接口(含 `GetItemID/GetItemNewName`);`skillpet` 是否需要、接口及资源均以活动调用为依据,不因文件存在而加入。
|
||||
- 召唤/收回、下线/换线/传送、离线寿命、死亡/到期、转移、容器、喂养和进化的扣物与保存须一致。重复请求、背包满和断线不得多产宠物或重复扣材料。
|
||||
|
||||
出口:普通宠物和成长宠物分别完成全生命周期、实际加成、冷重启和资产一致性验收;所有相关商品/宝箱产物链都有真实可用路径。
|
||||
|
||||
<a id="phase-4"></a>
|
||||
|
||||
## 7. 阶段 4:稀有属性与技能映射
|
||||
|
||||
### 7.1 第 6/7 条属性
|
||||
|
||||
- `72319` 是离线商店相关钥匙;`72320` 是背包解锁材料,禁止作为属性添加/洗练道具使用。
|
||||
- 原 `Get67MaterialVnum`:等级0~45用39070、46~75用39071、76~105用39072、106~120用39073;范围外按原规则拒绝。
|
||||
- 原辅助材料72064/65/66/67/68每件增加成功率1/2/4/10/100;材料数上限、基础成功率、适用道具及完整消耗顺序继续从原处理函数逐项移植,不能仅按此表开放请求。
|
||||
- 使用原 `AddRareAttribute`/稀有属性表和实际稀有洗练入口。经典7属性中的第6/7条(索引5/6)与属性锁定记录是不同数据;禁止借用 `mt_item_attr_lock` 保存稀有属性。
|
||||
- 原生 `uiAttr67Add.py` 的入口、材料槽、成功率与提示接线完成;装备所有权、交易/锁定状态、材料位置/数量、失败、重复请求和已有稀有条目均由服务端校验。
|
||||
- 稀有度6884与第6/7属性分开核对;戒指稀有属性表也独立登记,不能因为共用“稀有”名称合并实现。
|
||||
|
||||
### 7.2 技能书和 7/8 技能分别核对
|
||||
|
||||
已核实原 proto:50569~50575 的 value0 依次是技能176~182。它们不等同于 `ENABLE_78_SKILLS` 下的221~228、236~243;狼人分支另有229/244,不在本轮自动启用。
|
||||
|
||||
建立“书vnum、技能ID、职业/分支、等级前提、学习材料/冷却、进阶算法、伤害/效果、图标、动作/特效、UI位置”的逐项清单。名称从原 locale 和当前中文规范翻译,删除无源依据的“守御壁垒”等设定;不默认所有书都走同一 M→G→P 算法。
|
||||
|
||||
出口:学习/拒绝、消耗、冷却、技能实际效果、重登、洗点及快捷栏测试通过。保留用户既定移动端6技能布局和不显示7/8按钮的要求,新增可学技能不自动增加两个战斗按钮。
|
||||
|
||||
<a id="phase-5"></a>
|
||||
|
||||
## 8. 阶段 5:特殊背包、解锁及离线交易
|
||||
|
||||
### 8.1 特殊背包与解锁
|
||||
|
||||
原 `ENABLE_SPECIAL_STORAGE` 包含五类窗口:`UPGRADE_INVENTORY`、`BOOK_INVENTORY`、`STONE_INVENTORY`、`CHANGE_INVENTORY`、`COSTUME_INVENTORY`。原每类4页、5×9格,共180格;物品分类依据原实际判断,不增加无源依据的宝箱库。
|
||||
|
||||
- 保留现有窗口编号,特别是 SWITCHBOT=7;新增窗口追加映射,不按原 enum 顺序直接插入,也不统一写死 window=10。
|
||||
- 审查 `item.window` SQL ENUM 的实际顺序、数值读取和字符写入,提供显式追加迁移、双端枚举/容量及 UI 页签映射;覆盖加载 SQL、保存、位置校验、堆叠、分堆、拾取和交换路径。
|
||||
- 复用原物品操作封包前先验证位置字段能表达新窗口;只有原生流程确需新消息时才分配协议。
|
||||
- 72320 按原解锁类型、数量和持久字段实现。现有225格主背包不能重新锁住后向玩家收费;与特殊背包解锁的适配必须先明确,未完成前保持该商品停用。
|
||||
|
||||
### 8.2 离线商店与搜索
|
||||
|
||||
按原 `offlineshop_manager`、相关 game/db/P2P 处理、数据定义和客户端实际窗口移植。先登记源表及现有 item/订单的所有权关系,再设计迁移;本文不预先创建臆造的三张表或把虚拟 NPC 当作唯一状态来源。
|
||||
|
||||
必须明确并验收以下状态转换:
|
||||
|
||||
1. 建店/上架:确认所有权、未装备/未交易/未锁定、价格币种合法;交付商店托管后角色不能再次使用同一物品。
|
||||
2. 购买:跨频道只能成交一次;商品状态、买家扣款、卖家应收、买家发货与订单记录具有一致的提交/恢复语义。单独锁商品行不代表整个流程已原子化。
|
||||
3. 收益领取:幂等请求、余额扣除与实际入账一致;余额上限、断线、重复响应及 COMMIT结果不明确时可恢复。
|
||||
4. 取消/关闭/到期/管理员关闭:未售物品恰好退回一次,背包满走可靠保管/发货;已成交物品不能重复退回。
|
||||
5. game/db重启、崩溃、换线和摊位重建:从持久状态恢复,不依赖仅存于某个频道的内存表。
|
||||
6. 搜索:CG143/GC156原契约,分页/数量/频率限制,展示频道和成交前重新核价;远程购买权限与原实现一致,不能只凭搜索结果直接扣款。
|
||||
|
||||
72319 的用途、消耗和持续效果按原源码实现。金币阶段完成前,离线交易仍受现有金币范围约束;是否支持点券交易须有原源码依据或单独业务决策,不自动把商城点券变为玩家交易货币。
|
||||
|
||||
<a id="phase-6"></a>
|
||||
|
||||
## 9. 阶段 6:剩余商品与已有系统收尾
|
||||
|
||||
以下全部绑定到168件清单,缺任一依赖则保持对应商品停用:
|
||||
|
||||
| 依赖组 | 必须核实并完成的范围 |
|
||||
|---|---|
|
||||
| 稀有度/洗练 | 6884、53998/53999、71097及相关属性、精炼/交易保存;与普通洗练、属性锁定互操作 |
|
||||
| 龙魂/炼金 | 100001/100002补时、100500材料、对应强化/附魔流程,实际扣物与属性恢复 |
|
||||
| Gaya | 39063/39064原刷新和恢复语义、费用、次数、列表持久化;不能只消费道具不改变市场 |
|
||||
| 月份票券/任务 | 25159及其他月份战令票、20059外观券、其余任务物品的真实入口、月份校验、奖励和重复领取保护 |
|
||||
| 宝箱/钥匙 | 所有商城宝箱及77921/22/23等钥匙;完整产物模板、资源、概率与数量、稀有状态、背包满和批量打开 |
|
||||
| 坐骑/宠物/外观 | 全部限时/永久款、普通/成长宠物、补给和强化道具;16件已准备不等于该组全部完成 |
|
||||
| 原有系统 | 战令、百科/掉落、活动、追踪/副本、护符、戒指、拾取、换线等已知差异逐项收尾;基础单堆200与原生开箱请求1000等边界不得遗漏 |
|
||||
|
||||
<a id="points"></a>
|
||||
|
||||
### 9.1 点券结算、故障恢复与日期边界
|
||||
|
||||
点券规则保持用户已确认设置:怪物5%得1点、石头100%得3~8点、目标最多低15级、每账号所有角色/频道每天合计500点。临近上限时仅发剩余额度,花费点券不恢复当天额度;最高伤害归属和自动狩猎规则不变。发布前核对服务端实际时区和生产开关,不能将测试用怪物100%概率上线。
|
||||
|
||||
**待实现:耐久待发队列。** 当前game仅用内存map保存请求,最多重试12次后删除,队列满也会拒绝新记录。已通过的正常重试/结算后重启测试不能证明“DB中断期间game崩溃仍不漏发”。上线前完成下列契约:
|
||||
|
||||
- 命中奖励后,以原token持久化待发意图,再排队发送;记录格式版本、token、账号/角色、目标vnum与资格数据、已抽定数量、来源核心、创建时间和校验信息。采用game侧磁盘日志,明确落盘完成点、原子更新/恢复和磁盘故障处理;未落盘或磁盘满时禁止宣称奖励已到账,记录故障并暂停受影响发奖入口。
|
||||
- 待发记录从落盘成功起必须可恢复;队列满不得静默丢弃已形成的待发记录。重试耗尽只转为降频重试/待处理并报警,不删除未确认记录;不能重新抽奖或生成新token。
|
||||
- DB继续使用全局token去重及账号锁,在同一事务中检查额度、更新余额和写流水;0点结果也保存。game收到明确结果后标记待发记录已完成;落盘、发送、提交、回复和完成标记的任一间隙崩溃,重启均以同token重放。
|
||||
- 每个待发日志只由一个恢复执行者处理;角色下线/换线不转成一次新发奖。记录拒绝原因,区分可重试故障与所有权变更等终止结果,原始意图和流水供核对。界面通知仅在实际提交成功后发出,离线时余额仍持久存在。
|
||||
- 对“击杀处理尚未形成耐久意图就崩溃”的边界单独记录并测试,不能把结算后重启通过扩大为任意时点零损失保证;无法持久化时的运维处置和玩家补偿需要可审计事件,不能仅丢弃日志。
|
||||
|
||||
日期统一采用**结算日而非击杀日**:首次成功结算事务取得账号锁后,从数据库读取一次日期并固定为该事务的 `reward_day`;额度查询与流水写入使用同一日期。该事务回滚后重试可进入新的一天;一旦已提交,任何跨日重放只返回原结果,不重新计算或占用新日额度。game创建时间只用于审计,不由客户端决定额度日期。当前多次直接调用CURDATE的实现须按此约束统一,测试数据库时区和跨零点等待账号锁的情况。
|
||||
|
||||
出口:DB长时间中断、12次重试耗尽、待发积压/磁盘失败、game在落盘前后及提交回复各间隙强制退出、跨频道/角色重登和跨零点重放均有明确结果;可恢复记录不漏发、不重复,账本与余额一致。
|
||||
|
||||
<a id="release-policy"></a>
|
||||
|
||||
### 9.2 月份商品的销售排期与赛季规则
|
||||
|
||||
原目录商品236(25159)截止时间为2022-10-25 23:59:59,商品237(20059)为2022-10-31 23:59:59。原目录作为来源证据保留,不直接把2022年销售期限用于新发布,也不自动删除期限来永久销售。
|
||||
|
||||
- 阶段0发布清单为这两条及其他限时商品分别记录当前销售开始/截止时间、时区、月份/年份或赛季规则、激活条件、奖励配置版本及排期依据。缺少可核验的当前排期时继续停用。
|
||||
- 销售有效期、道具使用有效期及任务赛季是三个不同条件。按活动原生逻辑确定票券是否每年同月可复用、是否绑定年份/赛季以及跨期购买后的使用规则,未确定时标为待决且禁止上架,不能擅自增加年份限制或默认为任意赛季有效。
|
||||
- 使用独立、可审阅的发布SQL更新已确认排期并保留原价及现有订单/限购记录;重复迁移不重置余额、库存、销量或购买记录,不覆盖原始来源TSV。先通过实际报价/购买/激活测试,再加入可售清单。
|
||||
- 覆盖开始前、开始时、截止前、截止后、跨月/跨年、确认框打开后过期、时区变化及重放请求;消费和领取均须对应正确的奖励版本,不允许改客户端时间绕过。
|
||||
|
||||
出口:217条原目录逐项有状态、原价和证据;仅将实际通过商品加入 `verified-products.json`,审阅上架 SQL 后启用。未完成项明确列出,不能“全部启用”代替验收。
|
||||
|
||||
<a id="phase-7"></a>
|
||||
|
||||
## 10. 阶段 7:独立实施64位金币
|
||||
|
||||
本阶段不作为补齐剩余商城商品的统一前置。当前金币上限20亿;目标沿用 AVA2 的 `GOLD_MAX = 2000000000000000LL`,但只有以下全链路完成后才能提高生产上限。金币与 `account.coins` 点券分开存储、记录和验证。
|
||||
|
||||
### 10.1 端到端改造清单
|
||||
|
||||
| 路径 | 审计与实现范围 |
|
||||
|---|---|
|
||||
| game内存 | 角色金币字段、GetGold/PointChange、加减/乘法、中间结果、GOLD_MAX引用和所有调用方;其他point不因金额扩展改变语义 |
|
||||
| CG/GC | 金币初始化/变化、交易金额、商店价格/购买、仓库存取、丢钱/给钱、公会存取、摆摊/离线商店及相关结果;完整方向/长度登记 |
|
||||
| game/db/P2P | TPlayerTable、仓库、公会、商店与金额日志等结构和缓存/转发;不能只加一个GC显示包 |
|
||||
| SQL | 活动/删除角色、仓库、公会、商店/收益及实际金额日志列;逐表以SHOW CREATE TABLE和代码读写确定,金额列与有符号增量分开 |
|
||||
| 玩法接口 | Lua/GM、掉落、任务奖励、手续费、拍卖/邮件(若启用)、购买总价和退货;避免atoi/32位格式截断 |
|
||||
| 客户端 | 网络接收/发送、C++金额字段、Python 2 long、输入框上限、交易/购买确认、Tooltip与日志展示 |
|
||||
|
||||
当前金额日志写入 `money_log`,`goldlog` 是金条相关记录;删除旧稿对不存在的 `goldlog.current_gold/change_gold` 的 ALTER。正式 DDL 必须由真实库结构生成、保存并先在sbtest验证,不用示意 SQL 直接改生产。
|
||||
|
||||
### 10.2 算术与显示
|
||||
|
||||
- 所有余额维持 `0 <= balance <= GOLD_MAX`;扣款余额不足则整笔拒绝,不把余额直接归零;交易入账超过业务上限也须按明确的原生规则拒绝或处理,不能仅检查LLONG_MAX。
|
||||
- 运算前检查范围,拒绝INT64_MIN等非法金额;不得直接计算其负值。价格×数量、手续费和折扣使用已检查的整数中间结果,失败不得部分扣款/发货。
|
||||
- 掉落到达金币上限时,未领取/溢出金币的处理按核实的原生语义明确记录,不能通过静默删除资产完成。
|
||||
- Python桥接使用64位整数接口;缩写只用于展示,付款确认和输入解析保留精确整数,中文单位按本客户端规范实现;格式化不能改变实际金额或原版全局脚本的无关行为。
|
||||
- 协议另行分配版本与消息,不能把GC218或现有mt20261022当作已具备的金币能力。
|
||||
|
||||
出口:20亿边界、50亿交易、100亿保存、上限/上限+1、负数/INT64_MIN、乘法溢出、公会/仓库/商店、跨频道、冷重启、重复请求和日志总量守恒全部通过。准备保留大额余额的兼容回退版本后才允许提高生产上限。
|
||||
|
||||
<a id="build-gates"></a>
|
||||
|
||||
## 11. 构建、验收与发布门槛
|
||||
|
||||
### 11.1 构建与工具状态
|
||||
|
||||
#### 11.1.1 FreeBSD隔离、全新对象与依赖
|
||||
|
||||
从包含tools的服务端仓库根运行。每次发布或重建使用新的完整输出目录;不能只换源码目录却复用obj。基线Makefile的Depend仍指向旧 `.obj/` 或 `OBJDIR/`,现有隔离工具不会自动修正依赖,因此不能以增量编译成功证明公共头文件变更已覆盖。
|
||||
|
||||
源码快照必须包含指定提交的server/extern,并核验导出散列;内部库需从匹配源码重建或有依赖未变的明确证据及散列。不能复制未知来源的旧静态库来满足链接。以下只示例已核验快照的普通构建,不执行部署,也不代替后述警告验证。以POSIX sh执行;`AVA2_RELEASE_SOURCE`由发布清单指定,必须位于生产树之外。
|
||||
|
||||
```sh
|
||||
set -eu
|
||||
release_rev=$(git rev-parse --verify HEAD)
|
||||
test -z "$(git status --porcelain)"
|
||||
release_source=${AVA2_RELEASE_SOURCE:?请指定已核验的独立server/extern源码快照}
|
||||
build_parent=/root/deploy-features/ava2-builds
|
||||
mkdir -p "$build_parent"
|
||||
release_build=$(mktemp -d "$build_parent/${release_rev}.XXXXXXXX")
|
||||
/usr/local/bin/python3.9 tools/ava2-itemshop/build_isolated.py --source "$release_source" --output "$release_build" --target game --jobs 2
|
||||
/usr/local/bin/python3.9 tools/ava2-itemshop/build_isolated.py --source "$release_source" --output "$release_build" --target db --jobs 2
|
||||
```
|
||||
|
||||
现有工具只支持game/db且要求source/output,不支持 `--target all` 或 `--strict-types`;它负责隔离BINDIR/GAMEDIR/DBDIR/OBJDIR,不负责源码真实性、内部库重建、schema校验和生产门禁。工具当前也不拒绝重复使用输出目录,需由发布包装程序验证目录首次创建并记录实际解析路径;公共头文件/结构变化后的全量重建是硬要求。
|
||||
|
||||
**待完成:启用警告的独立验证构建。** 基线game/db Makefile都含 `-w`,普通日志没有警告不能证明类型安全。验证构建须移除 `-w`,在独立源码/对象目录保留目标ABI选项,启用实际编译器支持的格式化和转换诊断(至少 `-Wall -Wextra -Wformat=2`;金额/协议变更加窄化与符号转换审查)。完整保存编译器版本、命令、开关差异及日志,与基线比较;新增格式化/金额截断问题不得通过。不能在静默构建后仅搜索日志判定通过,也不能假装当前工具已有strict选项。诊断修复若改变代码,普通发布构建必须重新生成并复验。
|
||||
|
||||
#### 11.1.2 macOS、Android及自动化测试
|
||||
|
||||
客户端从 `metin2-client` 根运行;按README先满足Rust/protoc、SDL3、Vulkan/MoltenVK和glslc依赖。CMake默认 `MT_BUILD_NATIVE_RENDER=OFF`,新目录必须显式启用,不能依赖本机旧缓存。
|
||||
|
||||
```sh
|
||||
set -eu
|
||||
./scripts/build_meshport.sh macos
|
||||
mkdir -p build
|
||||
client_rev=$(git rev-parse --verify HEAD)
|
||||
client_build=$(mktemp -d "$PWD/build/ava2-macos.${client_rev}.XXXXXXXX")
|
||||
cmake -S . -B "$client_build" -DCMAKE_BUILD_TYPE=Release -DMT_BUILD_NATIVE_RENDER=ON -DCMAKE_PREFIX_PATH=/opt/homebrew
|
||||
cmake --build "$client_build" --target mt_native_render -j4
|
||||
python3 -m unittest discover -s tests/wiki
|
||||
python3 -m unittest discover -s tools/server/ava2-items/tests
|
||||
```
|
||||
|
||||
Homebrew或SDK安装在其他位置时按该机依赖清单调整CMAKE_PREFIX_PATH,记录配置;构建目录与二进制必须属于同一提交。Android port gate只验证指定库,当前脚本遇到BLOCKED/UNKNOWN仍可能返回0,**不能只检查退出码**。在修复脚本前,采用以下状态校验,保留日志;PASS之外均阻断发布:
|
||||
|
||||
```sh
|
||||
set -eu
|
||||
gate_log=$(mktemp "${TMPDIR:-/tmp}/ava2-android-gate.XXXXXXXX")
|
||||
if ./scripts/port_gate.sh android >"$gate_log" 2>&1; then
|
||||
cat "$gate_log"
|
||||
else
|
||||
cat "$gate_log"
|
||||
exit 1
|
||||
fi
|
||||
python3 - "$gate_log" <<'PY_GATE'
|
||||
from pathlib import Path
|
||||
import sys
|
||||
states=[line.strip() for line in Path(sys.argv[1]).read_text().splitlines() if line.startswith('android ')]
|
||||
if states != ['android PASS']:
|
||||
raise SystemExit('Android gate requires exactly one explicit PASS; got '+repr(states))
|
||||
PY_GATE
|
||||
./android/build.sh Release --no-deploy
|
||||
```
|
||||
|
||||
仍须完成APK构建、资源生成和真机联机;port gate或APK编译不能替代触控/布局/输入/性能验收。用户暂停真机测试时标为待测,不计通过;安装步骤见 [Android说明](ANDROID-TESTING.md)。基线 `--no-deploy` 不安装设备,资源须另从相同提交生成并记录散列。
|
||||
|
||||
服务端从 `metin2-server` 根运行现有相关测试;新增功能须有实际行为测试,单元测试数量不能代替上线条件:
|
||||
|
||||
```sh
|
||||
set -eu
|
||||
python3 -m unittest discover -s tests/features -p 'test_point_drop.py'
|
||||
python3 -m unittest discover -s tests/features -p 'test_extended_items.py'
|
||||
python3 -m unittest discover -s tests/features -p 'test_itemshop.py'
|
||||
```
|
||||
|
||||
#### 11.1.3 迁移执行门槛
|
||||
|
||||
当前迁移工具的列结构/数据身份/完成后复核尚不满足§4.3加固要求,**在补齐实现和故障演练前,不执行生产迁移**。先在独立数据库验证正常、异常和中断恢复,再用于停服后的sbtest实际角色测试。禁止仅按现有样例测试结果跳过这些前置条件。
|
||||
|
||||
工具加固通过后,从服务端仓库根在已停写、备份和预检通过的目标上生成计划,再单独审阅并应用。使用当前已存在的参数,不假设已有未实现的validate选项。计划目录每次迁移首次创建,中断恢复时重用原目录和计划;以下命令模板仅用于sbtest,不能直接替换成生产库后运行:
|
||||
|
||||
```sh
|
||||
set -eu
|
||||
migration_parent=/root/deploy-features/ava2-migrations
|
||||
mkdir -p "$migration_parent"
|
||||
migration_run=$(mktemp -d "$migration_parent/sbtest.XXXXXXXX")
|
||||
/usr/local/bin/python3.9 tools/ava2-itemshop/migrate_extended_items.py --player player_sb --plan "$migration_run/wear40-plan.json"
|
||||
```
|
||||
|
||||
计划及其目标指纹审阅通过后,在同一目标、同一保存目录执行(若换shell,先从执行记录恢复migration_run的实际值,不新建计划):
|
||||
|
||||
```sh
|
||||
set -eu
|
||||
: "${migration_run:?请恢复已审阅计划所在目录}"
|
||||
test -f "$migration_run/wear40-plan.json"
|
||||
/usr/local/bin/python3.9 tools/ava2-itemshop/migrate_extended_items.py --player player_sb --plan "$migration_run/wear40-plan.json" --apply
|
||||
```
|
||||
|
||||
<a id="acceptance"></a>
|
||||
|
||||
### 11.2 每个系统的共同验收
|
||||
|
||||
- 原生入口、实际请求、真实消耗/效果、资源目视与中文提示,而非只打开窗口。
|
||||
- 同账号多角色、跨核心/频道、传送、断线、重新登录及game/db冷重启。
|
||||
- 背包/仓库满、交易/锁定/装备中、错误材料、过期道具、余额不足、超范围数量和位置。
|
||||
- 重复请求、并发购买、超时重试、COMMIT结果不明确和回复迟到;在扣款/托管/发货/待发落盘/提交/回复等边界注入进程退出与数据库故障,验证物品、货币和收益守恒;只在完成结算后重启不算故障恢复通过。
|
||||
- 扩展道具完整状态在精炼、交换、寄存、购买和退回后保持;新增系统与属性锁定/洗练/拾取/开箱互操作。
|
||||
- 构建门禁覆盖缺NDK、未知平台、编译失败、正常成功和仅修改公共头文件的重建;检查工具返回状态与真实产物一致。迁移覆盖错误列定义、同名异库/过期计划、损坏extra和完成标记与数据不一致;月份商品覆盖当前销售期限和激活规则。
|
||||
- 每个阶段出具代码/资源散列、迁移计划、通过与未通过项、macOS/Android记录;测试账号和临时权限、测试发奖配置在验收后清理。
|
||||
|
||||
### 11.3 数据库及生产发布
|
||||
|
||||
1. 预检:重新读取正式与测试服务的CONFIG、数据库名、进程和监听端口、商品开关、SQL引擎、版本及资源;禁止假设它们与文档时间点相同。
|
||||
2. 备份:暂停交易/购买入口,停止所有目标库写入者并完成缓存落盘,再备份受影响的account/player/common/log库、二进制、配置、proto和资源。核查引擎;`--single-transaction`不能单独保证MyISAM或跨外部写入的一致备份。
|
||||
3. 演练:sbtest完成迁移、实际角色加载和资产往返、兼容版本启动及恢复;保存恢复耗时。需要多表事务的经济路径必须确认相关表为InnoDB并在同一事务连接范围内。
|
||||
4. 发布:使用已验证的同批game/db/auth/相关核心、迁移和客户端资源;执行前通过现有会话授权与发布流程核对目标和影响,不能以更新文档代替执行发布。
|
||||
5. 小范围验收:限定账号验证进入游戏、物品/货币一致性、购买和领货,再按逐项清单开放商品;保留生产资产核对及订单记录。
|
||||
6. 观察:进程/端口、syserr、订单与发货、金额差异、数据库锁等待、资源和移动端表现有异常即关闭对应经济入口并进入兼容回退。
|
||||
|
||||
<a id="rollback"></a>
|
||||
|
||||
### 11.4 保留资产的回退
|
||||
|
||||
- 上线前准备使用新schema、wear40和完整extra字段的兼容回退二进制,可关闭新增功能但继续读取/保存既有资产;不得在已产生新道具状态后直接换回旧game/db。
|
||||
- 旧DB的REPLACE可能清空extra,旧槽位无法表示新装备;旧金币字段不能保存大额余额。不能靠封顶、截断、删掉新道具或清空状态来恢复兼容。
|
||||
- 回退优先关闭购买、领取及受影响操作,停止必要写入,切换兼容版本,保留新结构、点券、订单、发货和收益流水;按核对结果恢复入口。
|
||||
- 只有确认未产生新资产/订单、数据可完整逆变换且已演练时,才允许专用逆迁移。恢复旧全库只适用于隔离测试或停写后明确确认的灾难恢复,不能覆盖上线期间玩家购买。
|
||||
- 删除“60秒切回旧二进制+安全SQL”的硬承诺。先定义暂停入口、兼容恢复和完整恢复各自目标,并以真实演练耗时验收;资产安全优先于未经验证的时间指标。
|
||||
|
||||
<a id="completion"></a>
|
||||
|
||||
## 12. 完成判定与后续顺序
|
||||
|
||||
执行顺序:事实/协议冻结 → 扩展存储和迁移 → 外观/坐骑 → 活动宠物 → 稀有属性与技能映射 → 特殊背包/离线交易 → 剩余商品及已有系统收尾 → 独立64位金币阶段。
|
||||
|
||||
各阶段可以继续梳理无依赖的资料和资源,但不得绕过存储、经济一致性或原生分支契约。每次只发布已完成验收且可兼容回退的集合。全部条目都有明确状态和证据、相应平台验收完成、生产验证通过,才能将对应范围标为完成;仍有待排期/待测项时,整体保持PARTIAL。
|
||||
|
||||
|
||||
### 12.1 当前发布阻断清单
|
||||
|
||||
以下为计划要求,尚未因本次文档修订完成;涉及哪些功能,就阻断哪些发布集合,不能绕过基础数据依赖。
|
||||
|
||||
| 编号 | 待完成交付 | 通过依据 |
|
||||
|---|---|---|
|
||||
| G1 | 全新对象目录、内部库/源码绑定、启用警告的验证构建 | 头文件变更重建记录、ABI及两类构建日志 |
|
||||
| G2 | 迁移前置/完成校验与损坏状态隔离 | 错误结构/身份/数据与多处中断恢复测试,原资产不被覆盖 |
|
||||
| G3 | 点券耐久待发与固定结算日 | DB中断/进程退出/重试耗尽/跨零点测试与账本核对 |
|
||||
| G4 | 限时商品当前销售排期和赛季决策 | 商品236/237及其他限时项的发布清单、实际购买/激活证据 |
|
||||
| G5 | Android状态门禁、APK与平台验收 | 只有显式PASS计通过;完整APK、同版资源和真机记录 |
|
||||
|
||||
阶段0的协议、状态及商品依赖清单仍须实际生成。范围明确、工具已加固且验证完成后,才能将对应阶段从待实施改为通过;文档中的命令和架构要求本身不是完成证据。
|
||||
@@ -0,0 +1,117 @@
|
||||
# AVA2 原生商城移植
|
||||
|
||||
## 范围与入口
|
||||
|
||||
活动版本为 AVA2 `uiitemshopnew.py`,不是旧 `uiitemshop.py` / `uiitemshop_v2.py`。
|
||||
原始 Python 源码由 `tools/ava2-native/import_sources.py` 转码后原样嵌入,SHA256 记录在
|
||||
`tools/ava2-native/sources.json`。兼容、汉化及服务端接入位于 `Ava2ItemShopScript.inc`。
|
||||
|
||||
桌面入口:**F9**,以及与 AVA2 相同的任务栏圆形商城入口。经典商城仓库入口保留用于领货。
|
||||
包含八个主分类、17 个子分类、名称搜索、热销、折扣、数量 1–20、购买确认、余额、库存、最近100笔购买记录、可支持道具的模型预览。
|
||||
鼠标滚轮在商城列表中滚动,指针在商城窗口内时不改变游戏镜头。
|
||||
|
||||
充值按钮和幸运转盘保留“尚未开放”提示;不访问 AVA2 提供者的网站,不显示随机假奖励。
|
||||
它们需要各自的支付服务/奖励池和玩法验收,不能由商城窗口本身代替。
|
||||
|
||||
## 协议与经济规则
|
||||
|
||||
- 客户端 GC93:5字节头(BYTE + DWORD 长度),总长 6–32768;完整收齐后再分发。
|
||||
- 原生目录 `TIShopData` 49字节、记录 `TIShopLogData` 90字节。目录/记录整帧验证成功后才替换界面状态。
|
||||
- game/db 使用空闲 GD/DG76。请求为固定103字节;响应封套包含 account、player、payload size。
|
||||
- `/ishop data -1`、`/ishop log`,购买扩展为 `/ishop buy id count token quoted_total quoted_vnum`。
|
||||
token为32位随机十六进制串,绑定一次确认;超时最多重发3次,保持同一token。
|
||||
- 新客户端标识 `mt20261020`。game 仅接受这个版本及之后的商城请求,避免旧客户端收到未知GC93。
|
||||
- game按账号/角色构建请求,db再次检查在线账号所属peer和角色归属;返回时校验账号、角色和game阶段。
|
||||
- db按配置的SQL_ACCOUNT定位龙币,使用配置的SQL_PLAYER连接执行跨库InnoDB事务,禁止硬编码正式库名。
|
||||
SQL_ACCOUNT/SQL_PLAYER必须指向同一MySQL主机和端口;否则商城拒绝购买。
|
||||
- 同一事务锁定账号和商品,检查余额、有效期、数量、库存、周/月按件数限购及报价,再扣币、更新库存、写订单和商城发货记录。
|
||||
- 订单唯一键 `(account_id,token)`。重放同一订单不会再次扣币;更换数量、商品或报价的重放被拒绝。
|
||||
- 总价统一使用整数:`unit * count * (100-discount) / 100` 向下取整。
|
||||
修复原版浮点误差(58龙币、五折应为29)以及折扣数量计算不一致。
|
||||
- 确认框打开后若商品或售价变化,拒绝付款并刷新,不按新价格直接扣款。
|
||||
- SQL连接在事务期间禁用自动重连,锁等待上限3秒。COMMIT结果不明确时保留原token重试。
|
||||
- 周期边界采用数据库时区的周一零点/每月一日零点。
|
||||
- 修复旧db在排序前建立道具指针索引的问题:排序完成后再建立映射,保证目录、堆叠属性和仓库发货使用正确模板。
|
||||
- 发货插入现有 `item_award`、`mall=1`,沿用商城仓库领取链路;非堆叠物品逐件发放。
|
||||
背包满、掉线和关闭窗口不删除已付款的发货记录。
|
||||
|
||||
未改变经典物品7条属性/3个socket及CWindow算法。当前AVA2对齐整体仍为PARTIAL。
|
||||
|
||||
## 商品数据
|
||||
|
||||
从 `AVA2/2. Backup SF+SRC and SQL/MYSQL56.tgz` 恢复出 **217条** `player.ishop_data`。
|
||||
原价、分类、折扣、时间、销量、限购和限量字段保存在服务端
|
||||
`data/ava2-itemshop/original-products.tsv`,来源散列另见该目录的 `source.json`。
|
||||
|
||||
当前服务端模板核对:**55条缺模板,55条对应ITEM_NONE占位物品,107条有实际类型但仍须逐项确认玩法和资源**。
|
||||
这些数量不能理解为217条商品均可售卖。兼容清单见服务端 `compatibility.json`。
|
||||
迁移默认将217条全设为停用。已依据现有坐骑、外观强化和拾取实现整理 `verified-products.json`:
|
||||
**49件原版商品**已在sbtest启用,全部通过当前客户端模板、图标和目录接收验证,售价保持AVA2原价。
|
||||
包括4件永久坐骑、2件坐骑外观、42件时装/发型/坐骑外观强化石、1件第三只手。
|
||||
其余168条继续保持停用;实际类型存在不代表对应玩法和模型已经完整。
|
||||
测试商品900001在验收后撤下。没有给正式玩家发币或上架未完成道具。
|
||||
|
||||
## 构建、测试与交付状态
|
||||
|
||||
正式客户端:`dist/Metin2.app`、`dist/Metin2-Android.apk`。Android已安装到当前连接的PJZ110手机并同步完整资源;本轮商城购买验收使用macOS客户端。
|
||||
自动化测试覆盖原生布局、截断/重复/越界帧、整数折扣、冻结报价、双击保护、重试和节流。
|
||||
真实sbtest验收结果及二进制散列见本文件的验收记录。
|
||||
|
||||
**203正式服已于2026-10-20(服务器CEST)更新商城game/db,保留此前原生战令/百科/日历能力。**
|
||||
正式服目录启用49件已验证原版商品;其他168条继续停用,充值与幸运转盘仍未开放。详情见下方正式发布记录。
|
||||
|
||||
## 数据库迁移
|
||||
|
||||
服务端运行:
|
||||
|
||||
```
|
||||
python3 tools/ava2-itemshop/migrate.py --player player_sb --account account_sb --output /tmp/itemshop.sql
|
||||
```
|
||||
|
||||
先审阅SQL和备份,再用MySQL执行。正式服使用实际配置的库名,不能照抄sbtest库名。
|
||||
对已确认实现的49件商品,可另生成并审阅:
|
||||
|
||||
```
|
||||
python3 tools/ava2-itemshop/enable_verified.py --player player_sb --output /tmp/itemshop-enable.sql
|
||||
```
|
||||
|
||||
该脚本核对原商品ID、vnum和实际模板类型,只改开关,不改售价。
|
||||
迁移将目录、订单、账号和发货表转为InnoDB,并在必要时添加龙币列;重复执行不重置余额、库存、订单或已有商品开关。
|
||||
回滚二进制时保留订单和发货记录,避免抹掉玩家已付款的物品。不要把账号表改回MyISAM。
|
||||
|
||||
## 本轮验收记录(2026-10-19)
|
||||
|
||||
158项客户端Python测试和31个服务端功能脚本通过。sbtest确认49件原商品目录、原价、图标、原型一致;
|
||||
购买、商城仓库领货、非堆叠逐件发货、重复请求、报价改变、余额/库存/限购/过期拒绝、SQL回滚、锁等待和断线恢复均已验证。
|
||||
故意丢弃一次成功响应后,客户端用同一token重试,数据库只产生一笔扣币及发货。
|
||||
测试币、订单、发货、道具及触发器已清理;sbtest game/db已重启,正式服二进制保持不变。
|
||||
具体结果及最新sbtest game/db SHA256见 `audit/evidence/itemshop/`。
|
||||
|
||||
小地图F5/F6/F7/F8、扩展栏自动洗练/百科提示统一通过本地代码页桥接。
|
||||
已在实际客户端确认F7“生物学家”正常显示,修复并非只改源文字。
|
||||
|
||||
候选Android包 `dist/itemshop/Metin2-Android.apk`;外置资源增量位于 `dist/itemshop/Client-patch/pack/`。
|
||||
APK不内含全部游戏地图包,手机安装时另行同步完整的候选Client资源。
|
||||
|
||||
## 正式发布与回滚(2026-10-20 CEST / 2026-10-19 PDT)
|
||||
|
||||
正式服game SHA256为`56975b48aa2fd40389c57eab84d017b0a2518cf6e1b573d967bf239f4ae04aba`,
|
||||
db为`dc940401fe6ccc3410c8d90ce98d2a5bad2e2c023279665bcd664c008d011699`,与sbtest验收版本一致。
|
||||
账号、目录、订单和发货表已使用InnoDB;新增龙币列不改原有cash/mileage。
|
||||
正式服70002原为占位类型,已同步为验证过的ITEM_USE/USE_SPECIAL;没有整体复制测试库或玩家数据。
|
||||
|
||||
CH1临时普通账号实测:49件目录及图标、余额不足拒绝、购买一件70002扣99龙币、同token重放不重复扣款、
|
||||
购买记录、商城仓库领取到背包全部通过。测试账号、角色、测试币、订单、发货和道具均已清理;
|
||||
仅扣回本次一笔测试销量,其他销量保持。验收证据:`audit/evidence/itemshop/production-20261020.json`。
|
||||
|
||||
备份:`/root/backup-itemshop/20261020-014955`,含旧game/db、70002修改前原型及完整account/player SQL。
|
||||
部署包:`/root/deploy-features/20261020-itemshop`。回滚命令:
|
||||
|
||||
```
|
||||
/usr/local/bin/python3.9 /root/deploy-features/20261020-itemshop/deploy.py rollback --backup /root/backup-itemshop/20261020-014955
|
||||
```
|
||||
|
||||
回滚保留订单、发货、余额、InnoDB及兼容的70002原型,避免抹除已经发生的玩家交易。
|
||||
正式macOS包已更新并通过签名检查;PJZ110已覆盖安装最新版APK并同步1282个资源文件。
|
||||
两端客户端包含最新触控布局和血条/法力条不显示数值的调整。Android商城内购买尚未做本轮真机验收。
|
||||
本地发布散列:`dist/SHA256-production-itemshop.json`。
|
||||
@@ -162,3 +162,10 @@ AVA2 功能包头号在当前服务端基本空闲,可以直接沿用:
|
||||
战令沿用现有赛季与进度/领取主键;百科模板和掉落来自当前203数据,日历展示实际已接入的月光宝箱/圣诞袜排期。
|
||||
其他活动的服务端玩法、宠物等不因迁移窗口自动完成,整体 AVA2 对齐仍为 PARTIAL。
|
||||
详见 [AVA2-NATIVE-SYSTEMS.md](AVA2-NATIVE-SYSTEMS.md),生产部署证据在同文档中单列。
|
||||
|
||||
### 2026-10-19:原生商城
|
||||
|
||||
AVA2活动版本 `uiitemshopnew.py` 已接入原生GC93和GD/DG76,事务扣币、限购、库存、订单去重与商城仓库发货;
|
||||
新增确认报价校验,修复原版折扣数量/浮点误差和失效的目录更新。
|
||||
原217条商品配置已恢复,sbtest先开放49件已有玩法和资源的原版商品;其他168条依赖未闭合,充值/转盘未开放。
|
||||
正式服本轮未更新。详见 [AVA2-ITEMSHOP.md](AVA2-ITEMSHOP.md)。
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
# 商城剩余商品与点券掉落(实施中)
|
||||
|
||||
用户要求补齐剩余168件商品的实际用途及资源,商城货币中文改为点券,并增加击杀怪物、石头奖励。
|
||||
|
||||
已确认参数:怪物5%获得1点,石头100%获得3~8点;同账号所有角色和频道每日合计500点,目标最多低15级。每日按数据库服务器自然日重置;Boss使用怪物规则,组队沿用最高伤害归属,不重复发放,自动狩猎有效。
|
||||
|
||||
当前工作:
|
||||
|
||||
- 中文名称已修改商城和道具/描述/任务翻译源文件,尚未发布。
|
||||
- 点券接入内部GD76 operation3,使用商城相同的InnoDB账号锁、独立幂等奖励流水和每日上限;客户端标识mt20261021。
|
||||
- 击杀入口仅在Reward(true)且同一实体首次处理时执行;内部重试保留同一token。
|
||||
- 正式服仍只有49件商品启用,运行版本保持基线。
|
||||
- 剩余168件逐项清单:服务端`data/ava2-itemshop/completion-168.json`。其中16件限时坐骑/服装/发型已补入数据与资源,待联机验收;其余依赖继续实现。
|
||||
- AVA2原服务端参考:本机`build/shop-completion-reference`(来自FILES+SRC.tgz)。
|
||||
- FreeBSD隔离构建:`/root/deploy-features/20261020-shop-completion`。源码、obj-game和bin均独立,禁止使用默认正式GAMEDIR。
|
||||
- 正式基线备份:`/root/backup-itemshop/20261020-014955`;game为56975b48…,db为dc940401…。
|
||||
|
||||
隔离点券版game/db已编译完成。db首次构建误用了Makefile的默认DBDIR,短暂覆盖正式db磁盘文件;已立即从已验收商城候选恢复dc940401…,生产db PID53754及所有核心未重启。事件记录在服务器`db-build-output-correction.json`。后续使用服务端`tools/ava2-itemshop/build_isolated.py`,同时覆写GAMEDIR/DBDIR/BINDIR/OBJDIR,拒绝生产目录。
|
||||
|
||||
当前正在补充装备40栏位、道具额外状态(保留经典3socket/7属性客户端封包,以GC93独立扩展同步)和内部game/db物品持久化。此部分尚未构建/部署。扩展存储及位置迁移必须先备份、停止服务,并使用保存的精确行迁移计划;不能用未完成的工作区构建覆盖现有发布包。
|
||||
|
||||
剩余依赖包括限时坐骑和缺失模型、普通/养成宠物及消耗品、时装/发型/武器/披风外观及强化、发光特效、稀有度、炼金附魔/补时/材料、离线商店钥匙和扩充、Gaya市场恢复、月份战令/外观兑换券,以及宝箱的完整产物链。逐项验收后更新verified-products和上架清单。
|
||||
|
||||
## 2026-10-20 测试服点券验收
|
||||
|
||||
证据:`audit/evidence/itemshop/point-drops-sbtest-20261020.json`。
|
||||
|
||||
- 120级角色击杀105级8055石头,随机获得6点;3705怪物获得1点。
|
||||
- 低等级8001石头未发奖;资格边界105/104由真实共用规则的C++测试验证。
|
||||
- 代理故意丢弃第一次成功回复;10秒后同token重试,流水及余额均未重复增加。
|
||||
- 用明确标记的491点测试流水将当日累计从7补到498。下一块石头抽中5点、实际只发2点,累计500;之后两次石头分别请求7点/8点,均发0点并留有流水。
|
||||
- 第二次0点发生在测试服game/db重启及角色重新登录后,上限没有重置。
|
||||
- 怪物概率在确定性验收中临时改为100%;正式配置仍为500基点(5%),未改正式服。
|
||||
- 验收后恢复sbtest的测试前数据、余额0、奖励流水0、原始点券开关、GM名单、game/db、CONFIG;停止丢包代理,原sbtest重新启动。正式服db仍为dc940401…、PID53754。
|
||||
|
||||
## 扩展物品与外观验证
|
||||
|
||||
- 额外5个socket、8个属性、自定义名称共69字节,已验证数值边界、完整往返、空旧数据和损坏输入。
|
||||
- 独立MySQL临时库验证了龙魂/腰带位置、在用和已删除角色快捷栏迁移,重复执行不再移动;临时库已删除,正式及sbtest均未执行wear40迁移。
|
||||
- 新增16件:71500/1、71503/4、71506/7、71509/10、41119~41122、45005/6、45057/8。
|
||||
- 原AVA2八个职业性别定义与运行时注册的服装/发型路径逐项一致;104个服装/发型依赖文件全部存在,资源包构建成功。
|
||||
- 道具导入22项测试、客户端全部160项wiki/系统测试(含商城12项)通过;百科兑换券名称也同步改成点券。外观仍需联机目视验收,不能据此上架。
|
||||
- macOS原生客户端构建、FreeBSD隔离wear40 game/db构建成功,见`audit/evidence/itemshop/extended-item-build-20261020.json`;未部署到sbtest或正式服。
|
||||
- wear40构建只在独立目录中验证;原生产客户端发布包没有替换。新服务端要求mt20261022及以上客户端进入游戏,避免旧龙魂/腰带位置误用。
|
||||
|
||||
扩展版本回滚不能直接还原旧game/db:旧DB的REPLACE会丢弃新增属性,新装备栏也不能由旧客户端表示。上线前必须准备保留点券和购买记录的兼容回退;存在新栏位道具或额外状态时,应保留兼容二进制并关闭新增商品,禁止恢复旧全库备份覆盖玩家购买。
|
||||
@@ -0,0 +1,57 @@
|
||||
# AVA2 原生功能全量对齐实施路线图(方案 B)
|
||||
|
||||
修订日期:2026-10-19(America/Los_Angeles)。原题为《AVA2 原生功能全量对齐实施规格书(方案 B 精准实现版)》。本次将本文统一为执行路线图;协议、槽位、存储、经济规则、命令及验收的唯一技术契约为 [AVA2-IMPLEMENTATION-SPEC.md](AVA2-IMPLEMENTATION-SPEC.md)。
|
||||
|
||||
本文继续有效,但不另行定义包号、结构体、DDL或槽位枚举。旧版相关代码示意、宠物三槽表、属性道具误用及固定回滚时限均不再构成实施依据。若与技术规格冲突,暂停受影响实施并先同步两份文档;不能选择较宽松的一份继续执行。
|
||||
|
||||
## 1. 目标、范围与适配原则
|
||||
|
||||
- 完成原生界面、实际玩法、协议/状态、持久化、资源及故障恢复,逐项补齐剩余商城商品和已知系统差异。
|
||||
- 原生参考以实际启用分支为准;界面能打开、模板有类型或图标可见均不代表功能完成。代码与部署基线、商品事实清单和范围边界统一见 [规格§1](AVA2-IMPLEMENTATION-SPEC.md#baseline)。
|
||||
- 保留现有基础移动、攻击、加密及用户已确认的移动端交互;装备布局、道具额外状态和金币属于需要显式迁移的基础改造,不能笼统称为“底座不动”。
|
||||
- 新通信数据使用定宽类型与明确布局,不依赖 `long` 或 `QWORD` 等旧别名推断宽度;只按核实契约适配既有结构,具体见 [规格§2](AVA2-IMPLEMENTATION-SPEC.md#contract)。
|
||||
- 用户确认的点券掉落和手机布局作为项目扩展单独记录。保持原价和原生用途;调整销售时间、赛季或适配规则须有发布清单及验收依据。
|
||||
|
||||
## 2. 实施顺序与阶段出口
|
||||
|
||||
下表给出主线顺序。无依赖的源码梳理与资源核对可并行进行,进入功能实现和发布仍须满足实际依赖;本路线图不授予跳过任何数据或经济门槛的例外。
|
||||
|
||||
| 阶段 | 前置与主要交付物 | 出口及唯一技术依据 |
|
||||
|---|---|---|
|
||||
| 0:冻结事实与依赖 | 固定代码/资源/启用宏,生成协议登记、商品依赖、状态布局、发布及迁移清单 | 未核实契约列为阻塞项;[规格§3](AVA2-IMPLEMENTATION-SPEC.md#phase-0) |
|
||||
| 1:扩展道具与装备位置 | 阶段0通过;完成wear40、扩展状态往返、迁移加固和兼容回退 | 真实角色/仓库冷重启、损坏数据和中断恢复通过;[规格§4](AVA2-IMPLEMENTATION-SPEC.md#phase-1) |
|
||||
| 2:外观、坐骑与强化石 | 状态和位置契约可用;完成模型/动作、限时、属性与依赖装备处理 | 实际穿戴、卸下、到期、属性和目视验收;已验证/待完成强化石以清单及[规格§5](AVA2-IMPLEMENTATION-SPEC.md#phase-2)为准 |
|
||||
| 3:普通与成长宠物 | 阶段1通过;按活动PetSystem分支接入,完整覆盖成长和消耗道具 | 道具为状态权威来源,不引入第二套三技能槽表;[规格§6](AVA2-IMPLEMENTATION-SPEC.md#phase-3) |
|
||||
| 4:稀有属性与技能 | 明确实际属性/技能映射、客户端接口和资源依赖 | 追加/洗练/学习及拒绝路径、消耗、效果、重登通过;[规格§7](AVA2-IMPLEMENTATION-SPEC.md#phase-4) |
|
||||
| 5:特殊背包与离线交易 | 状态转移可用;窗口映射/解锁、托管、订单及恢复机制完成 | 全部原生分类、跨频道单次成交、收益/退货守恒;[规格§8](AVA2-IMPLEMENTATION-SPEC.md#phase-5) |
|
||||
| 6:剩余商品与系统收尾 | 各商品的真实依赖完成;补齐稀有度、炼金、Gaya、票券和完整宝箱产物链等 | 所有目录条目有状态和证据,只上架实际通过项;[规格§9](AVA2-IMPLEMENTATION-SPEC.md#phase-6) |
|
||||
| 7:独立64位金币 | 独立冻结金额链路及兼容版本,不能只扩大显示或角色表字段 | 金额传输/运算/保存/日志/回退全链路通过后提升上限;[规格§10](AVA2-IMPLEMENTATION-SPEC.md#phase-7) |
|
||||
|
||||
金币扩展不作为所有商城商品的统一前置。此前各系统的金币交互保持现有合法上限;商品或玩法若实际依赖大额金币,必须单独标注并等待阶段7,不能截断金额或绕过上限。
|
||||
|
||||
## 3. 逐项实施与商品开放
|
||||
|
||||
1. 从技术规格指定的商品及系统清单选取任务,核实活动源码入口、真实消耗、状态转移和资源依赖。
|
||||
2. 完成相关两端实现、数据及资源构建;保存提交、协议/布局版本、迁移与产物散列。
|
||||
3. 执行行为测试与sbtest真实操作,覆盖消费、失败、所有权转移、断线/换线、重试及进程/数据库故障。
|
||||
4. 完成macOS和Android对应验收;暂停测试的项目保持待测,不能用交叉编译替代真机操作。
|
||||
5. 在可售清单中登记证据、当前销售排期和激活条件,审阅SQL后再开放对应商品;已启用商品做回归,未通过项保持关闭。
|
||||
6. 发布集合必须有同版客户端/资源和兼容回退;限定账号验收后逐项开放,不能一次启用全部占位商品。
|
||||
|
||||
商城购买使用点券,与金币分开。点券掉落、耐久待发、零点归属及故障验收统一见 [规格§9.1](AVA2-IMPLEMENTATION-SPEC.md#points);月份商品销售排期、年份/赛季和激活规则统一见 [规格§9.2](AVA2-IMPLEMENTATION-SPEC.md#release-policy)。历史销售截止时间不能直接沿用,也不能自动清空成为永久销售。
|
||||
|
||||
## 4. 工程门槛与恢复
|
||||
|
||||
- 构建必须从匹配提交和依赖生成,使用本次发布新建的对象目录;启用警告的验证与普通构建分别保存证据。现有工具的作用和局限、可执行模板统一见 [规格§11.1](AVA2-IMPLEMENTATION-SPEC.md#build-gates)。
|
||||
- 构建结果必须明确为PASS。缺工具链、未知平台和待测不能计通过,命令退出码为0也不自动代表通过。禁止在本文另造工具参数或依赖本机缓存。
|
||||
- 迁移前停写、备份、验证目标/schema和计划身份;异常状态隔离并保留原始数据。现有工具仅有样例通过,须先完成规格列出的加固,才能进入实际角色及生产迁移。
|
||||
- 物品、金币、点券、订单与发货的测试及审计要求见 [规格§11.2](AVA2-IMPLEMENTATION-SPEC.md#acceptance)。只验证结算后重启不能当作崩溃恢复通过。
|
||||
- 回退必须保留新布局、扩展状态及玩家资产。先关闭受影响经济入口,使用已演练的兼容版本恢复;不能凭“一键换旧二进制+SQL”承诺固定恢复时间,见 [规格§11.4](AVA2-IMPLEMENTATION-SPEC.md#rollback)。
|
||||
|
||||
## 5. 当前状态与下一步
|
||||
|
||||
两端已提交的基线、已有验收与未发布范围见 [规格§1.1](AVA2-IMPLEMENTATION-SPEC.md#baseline)。本次修改仅同步两份文档,没有实现耐久队列、加固工具或部署功能。
|
||||
|
||||
下一步先交付阶段0清单,并逐项解决技术规格中 [G1~G5发布阻断项](AVA2-IMPLEMENTATION-SPEC.md#completion)。每项要有实际实现、可重复验证及明确结果;文档中已经写出要求,不等于工具或玩法已具备该能力。
|
||||
|
||||
完成判定以对应范围和平台证据为准,仍有待实现、待排期、待测或待发布项时保持PARTIAL。路线图、技术规格和发布清单须在同一工作批次同步更新;对外进度不能只按窗口数量或商品开关数量统计。
|
||||
@@ -0,0 +1,20 @@
|
||||
# mt_native_render perf log 20261001-124133
|
||||
# device=Adreno (TM) 512 present_mode=FIFO msaa=2 render_scale=0.750000 size=2280x1080 gpu_skinning=1 terrain=1
|
||||
# per-frame averages over each 2 s window; *_ms game sections run on the script thread inside app_ms; py_ms includes update_game/render_game
|
||||
t_s,map,actors,frames,fps,refresh_hz,render_hz,fps_cap,frame_ms,frame_p95_ms,frame_max_ms,jank33,jank50,app_ms,process_ms,handoff_ms,net_ms,camera_ms,ui_update_ms,update_game_ms,render_begin_ms,ui_render_ms,render_game_ms,shadow_raster_ms,py_ms,py_calls,py_missing,host_ms,render_ms,pace_ms,sync_ms,fence_ms,prepare_ms,geo_upload_ms,tex_upload_ms,submit_ms,present_ms,gpu_ms,draws,skinned_draws,ui_batches,vertices,geo_uploads,geo_kb,tex_uploads,tex_kb,script_cpu,main_cpu,cpu_mhz,cpu_max_mhz,thermal,batt_c,rss_mb,batt_ma,batt_mv,power_mw,plugged,fps_mode,idle,last_texture
|
||||
# hitch t=0.64 frame=170.6 app=10.9 process=10.8 net=0.1 camera=0.2 ui_update=1.1 update_game=0.6 ui_render=8.8 render_game=7.6 shadow=0.0 py=9.7 host=0.1 render=159.6 sync=0.2 prepare=157.6 geo_upload=1.0(24) tex_upload=0.1(1, 16 KB) submit=1.5 present=0.3
|
||||
2.0,metin2_map_a1,28,56,28.0,60.0,-1.0,30,31.25,36.37,170.59,6,1,13.56,13.34,0.22,0.124,0.239,1.625,0.861,0.698,10.621,8.907,0.000,11.933,51.1,36.0,0.116,17.57,3.50,0.34,0.03,12.05,1.372,0.055,4.062,0.605,26.64,241,66,30,300720,23.23,8.2,0.21,7.7,2,2,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,32.0,565,6835,4318,-1,1,0,0,d:\ymir work\ui\pattern\stgauge\06.tga
|
||||
4.0,metin2_map_a1,28,60,29.9,60.0,60.0,30,28.88,33.64,37.05,3,0,14.39,14.13,0.26,0.147,0.250,1.548,0.805,0.790,11.337,9.511,0.000,12.557,51.1,36.0,0.110,14.38,3.94,0.38,0.03,9.55,1.547,0.000,3.892,0.543,26.10,241,66,30,300150,23.97,8.4,0.00,0.0,2,1,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,32.0,565,6835,4318,-1,1,0,0,d:\ymir work\ui\pattern\stgauge\06.tga
|
||||
6.0,metin2_map_a1,28,61,30.1,60.0,60.0,30,28.79,33.39,35.06,3,0,14.50,14.25,0.24,0.132,0.223,1.459,0.715,0.920,11.473,9.656,0.000,12.579,51.1,36.0,0.121,14.17,3.76,0.33,0.04,9.26,1.414,0.000,4.030,0.533,27.95,239,66,27,300142,24.02,8.4,0.00,0.0,2,0,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,32.0,564,6530,4318,-1,1,0,0,
|
||||
8.1,metin2_map_a1,28,60,29.8,60.0,59.9,30,28.79,34.70,40.37,5,0,14.79,14.52,0.27,0.128,0.246,1.402,0.754,0.777,11.932,10.130,0.000,12.996,48.1,35.0,0.116,13.89,4.18,0.31,0.04,9.27,1.347,0.000,3.772,0.527,27.63,239,66,24,299857,23.70,8.3,0.00,0.0,2,0,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,32.0,564,6696,4318,-1,1,0,0,
|
||||
10.1,metin2_map_a1,28,61,30.1,60.0,60.0,30,27.94,33.64,37.38,4,0,13.96,13.66,0.30,0.126,0.199,1.323,0.710,0.695,11.279,9.543,0.000,12.256,48.1,35.0,0.107,13.87,4.54,0.30,0.04,9.30,1.476,0.000,3.756,0.498,26.33,240,66,24,299861,24.11,8.5,0.00,0.0,0,5,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,32.0,564,6652,4318,-1,1,0,0,
|
||||
12.1,metin2_map_a1,28,60,30.0,60.0,59.9,30,28.22,34.95,38.77,5,0,14.29,13.77,0.51,0.186,0.219,1.268,0.702,0.708,11.359,9.606,0.000,12.335,48.1,35.0,0.119,13.82,4.47,0.26,0.04,9.08,1.396,0.000,3.959,0.499,26.57,238,66,24,299853,23.83,8.4,0.00,0.0,2,0,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,32.0,564,6417,4318,-1,1,0,0,
|
||||
14.1,metin2_map_a1,28,61,30.1,60.0,60.1,30,29.20,35.64,37.70,7,0,14.82,14.51,0.30,0.152,0.245,1.408,0.815,0.731,11.939,10.046,0.000,13.019,48.1,35.0,0.110,14.27,3.38,0.28,0.03,9.42,1.389,0.000,4.036,0.526,27.70,238,66,24,299568,23.69,8.3,0.00,0.0,1,2,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,32.0,564,6347,4318,-1,1,0,0,
|
||||
16.1,metin2_map_a1,28,61,30.2,60.0,59.9,30,23.33,32.75,36.20,2,0,11.01,10.75,0.26,0.095,0.183,1.160,0.638,0.554,8.723,7.349,0.000,9.667,48.1,35.0,0.132,12.19,9.18,0.22,0.03,8.14,1.240,0.000,3.324,0.492,26.40,240,66,24,299861,24.15,8.5,0.00,0.0,5,6,633/633/633/633/2150/2150/2150/2150,1843/2208,0,32.0,564,6713,4318,-1,1,0,0,
|
||||
18.1,metin2_map_a1,28,60,29.7,60.0,60.0,30,16.57,30.78,40.70,2,0,8.00,7.72,0.28,0.077,0.147,0.840,0.439,0.410,6.221,5.284,0.000,6.910,48.1,35.0,0.072,8.50,16.68,0.16,0.02,5.90,0.941,0.000,2.058,0.369,25.40,238,66,24,299853,23.80,8.4,0.00,0.0,2,0,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,32.0,564,6835,4318,-1,1,0,0,
|
||||
20.2,metin2_map_a1,28,61,30.2,60.0,60.0,30,26.14,32.44,35.08,3,0,12.92,12.64,0.29,0.341,0.206,1.400,0.808,0.700,9.953,8.425,0.000,11.069,48.1,35.0,0.133,13.08,6.15,0.28,0.05,8.43,1.347,0.003,3.846,0.513,25.74,212,42,24,278584,25.18,9.3,0.02,1.0,1,0,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,32.0,565,6835,4318,-1,1,0,0,d:\ymir work\effect\etc\dust\dust.dds
|
||||
22.2,metin2_map_a1,28,60,29.9,60.0,60.0,30,25.71,29.79,31.07,0,0,12.25,12.08,0.17,0.129,0.223,1.397,0.768,0.650,9.644,8.004,0.000,10.710,48.1,35.0,0.147,13.31,6.99,0.29,0.04,8.36,1.376,0.000,4.015,0.616,25.03,211,42,24,278580,24.50,8.6,0.00,0.0,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,32.0,564,6835,4318,-1,1,0,0,d:\ymir work\effect\etc\dust\dust.dds
|
||||
24.2,metin2_map_a1,28,61,30.2,60.0,60.0,30,14.39,26.02,39.02,1,0,6.26,5.95,0.31,0.079,0.139,0.848,0.419,0.339,4.521,3.659,0.000,5.225,48.1,35.0,0.063,8.06,18.12,0.17,0.04,5.31,0.803,0.000,2.164,0.405,24.61,209,42,24,278572,23.75,8.4,0.00,0.0,7,4,633/633/633/633/2208/2208/2208/2208,1843/2208,0,32.0,563,6835,4318,-1,1,0,0,
|
||||
26.2,metin2_map_a1,28,60,29.7,60.0,60.0,30,23.22,32.25,37.26,2,0,10.16,9.95,0.21,0.095,0.190,1.161,0.621,0.518,7.954,6.437,0.000,8.708,57.0,43.9,0.104,12.95,9.82,0.24,0.03,8.35,1.298,0.037,3.804,0.550,25.80,210,42,56,278576,23.70,8.3,0.30,13.3,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,32.0,566,6835,4318,-1,1,0,0,d:\ymir work\ui\game\costume_button_01.tga
|
||||
28.2,metin2_map_a1,28,61,30.3,60.0,60.0,30,22.24,32.22,35.67,3,0,10.50,10.25,0.25,0.113,0.192,1.134,0.604,0.549,8.229,6.300,0.000,8.786,67.1,54.0,0.084,11.65,10.15,0.24,0.04,7.58,1.191,0.000,3.234,0.585,25.98,211,42,56,278580,24.11,8.5,0.00,0.0,5,5,633/633/633/633/2208/2208/2208/2208,1843/2208,0,32.0,565,6835,4318,-1,1,0,0,d:\ymir work\ui\game\costume_button_01.tga
|
||||
30.2,metin2_map_a1,28,60,29.7,60.0,60.0,30,15.44,28.35,29.51,0,0,5.77,5.52,0.25,0.071,0.131,0.775,0.399,0.335,4.183,3.317,0.000,4.694,67.2,54.0,0.066,9.61,17.69,0.19,0.02,6.47,0.989,0.006,2.499,0.432,24.63,218,42,56,279540,23.95,10.2,0.05,0.8,2,5,1843/1843/1843/1843/2208/2208/2208/2208,1843/2208,0,32.0,565,6591,4318,-1,1,0,0,d:\ymir work\effect\etc\click\untitled-1 copy.jpg
|
||||
|
@@ -0,0 +1,4 @@
|
||||
# mt_native_render perf log 20261001-124208
|
||||
# device=Adreno (TM) 512 present_mode=FIFO msaa=2 render_scale=0.750000 size=2280x1080 gpu_skinning=1 terrain=1
|
||||
# per-frame averages over each 2 s window; *_ms game sections run on the script thread inside app_ms; py_ms includes update_game/render_game
|
||||
t_s,map,actors,frames,fps,refresh_hz,render_hz,fps_cap,frame_ms,frame_p95_ms,frame_max_ms,jank33,jank50,app_ms,process_ms,handoff_ms,net_ms,camera_ms,ui_update_ms,update_game_ms,render_begin_ms,ui_render_ms,render_game_ms,shadow_raster_ms,py_ms,py_calls,py_missing,host_ms,render_ms,pace_ms,sync_ms,fence_ms,prepare_ms,geo_upload_ms,tex_upload_ms,submit_ms,present_ms,gpu_ms,draws,skinned_draws,ui_batches,vertices,geo_uploads,geo_kb,tex_uploads,tex_kb,script_cpu,main_cpu,cpu_mhz,cpu_max_mhz,thermal,batt_c,rss_mb,batt_ma,batt_mv,power_mw,plugged,fps_mode,idle,last_texture
|
||||
|
@@ -0,0 +1,71 @@
|
||||
# mt_native_render perf log 20261001-124212
|
||||
# device=Adreno (TM) 512 present_mode=FIFO msaa=2 render_scale=0.750000 size=2280x1080 gpu_skinning=1 terrain=1
|
||||
# per-frame averages over each 2 s window; *_ms game sections run on the script thread inside app_ms; py_ms includes update_game/render_game
|
||||
t_s,map,actors,frames,fps,refresh_hz,render_hz,fps_cap,frame_ms,frame_p95_ms,frame_max_ms,jank33,jank50,app_ms,process_ms,handoff_ms,net_ms,camera_ms,ui_update_ms,update_game_ms,render_begin_ms,ui_render_ms,render_game_ms,shadow_raster_ms,py_ms,py_calls,py_missing,host_ms,render_ms,pace_ms,sync_ms,fence_ms,prepare_ms,geo_upload_ms,tex_upload_ms,submit_ms,present_ms,gpu_ms,draws,skinned_draws,ui_batches,vertices,geo_uploads,geo_kb,tex_uploads,tex_kb,script_cpu,main_cpu,cpu_mhz,cpu_max_mhz,thermal,batt_c,rss_mb,batt_ma,batt_mv,power_mw,plugged,fps_mode,idle,last_texture
|
||||
2.0,,0,60,29.5,60.0,-1.0,30,8.00,11.77,85.97,1,1,3.13,2.51,0.62,0.007,0.368,1.222,0.000,0.054,0.811,0.000,0.000,1.682,19.0,11.0,0.224,4.65,24.80,0.33,0.04,1.45,0.000,0.123,1.748,0.920,19.56,0,0,21,0,0.00,0.0,0.02,68.3,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,208,6469,4318,-1,1,0,0,mem:1@59
|
||||
4.1,,0,61,30.1,60.0,60.1,30,6.20,8.54,9.65,0,0,2.00,1.51,0.49,0.007,0.291,0.331,0.000,0.041,0.787,0.000,0.000,0.743,19.0,11.0,0.210,3.98,25.31,0.24,0.04,0.84,0.000,0.000,1.957,0.940,22.92,0,0,21,0,0.00,0.0,0.00,0.0,3,3,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,32.0,208,6835,4318,-1,1,0,0,mem:1@59
|
||||
6.1,,0,60,30.0,60.0,59.9,30,7.80,11.29,13.98,0,0,3.17,2.06,1.11,0.014,0.352,0.629,0.000,0.044,0.933,0.000,0.000,1.085,19.0,11.0,0.348,4.28,24.50,0.23,0.04,1.01,0.000,0.000,1.995,1.029,22.91,0,0,21,0,0.00,0.0,0.00,0.0,2,2,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,208,6835,4318,-1,1,0,0,
|
||||
8.1,,0,60,30.0,60.0,60.0,30,6.56,8.69,14.48,0,0,1.99,1.70,0.30,0.007,0.274,0.361,0.000,0.034,0.983,0.000,0.000,0.866,19.0,11.0,0.433,4.13,25.29,0.24,0.04,0.86,0.000,0.000,1.893,1.137,22.93,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,209,6835,4318,-1,1,0,0,
|
||||
10.1,,0,61,30.0,60.0,59.9,30,6.36,8.35,9.20,0,0,1.74,1.52,0.22,0.007,0.242,0.313,0.000,0.033,0.892,0.000,0.000,0.754,19.0,11.0,0.365,4.26,25.81,0.36,0.05,0.85,0.000,0.000,1.922,1.117,22.90,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,209,6835,4318,-1,1,0,0,
|
||||
12.1,,0,60,30.0,60.0,60.0,30,6.43,8.08,9.71,0,0,1.78,1.48,0.30,0.007,0.236,0.309,0.000,0.034,0.857,0.000,0.000,0.747,19.0,11.0,0.505,4.14,25.75,0.36,0.13,0.86,0.000,0.000,1.881,1.042,22.90,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,209,6835,4318,-1,1,0,0,
|
||||
14.1,,0,61,30.0,60.0,59.9,30,6.59,7.84,8.61,0,0,2.12,1.74,0.38,0.007,0.248,0.401,0.000,0.042,0.995,0.000,0.000,0.744,19.0,11.0,0.333,4.14,25.70,0.22,0.04,0.91,0.000,0.000,1.796,1.203,22.92,0,0,21,0,0.00,0.0,0.00,0.0,3,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,209,6835,4319,-1,1,0,0,
|
||||
16.1,,0,60,30.0,60.0,60.1,30,6.90,10.23,13.66,0,0,2.56,1.87,0.69,0.007,0.268,0.407,0.000,0.033,1.077,0.000,0.000,0.834,19.0,11.0,0.201,4.15,25.03,0.22,0.05,0.83,0.000,0.000,1.854,1.237,22.90,0,0,21,0,0.00,0.0,0.00,0.0,3,3,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,209,6835,4319,-1,1,0,0,
|
||||
18.1,,0,60,29.9,60.0,59.9,30,7.28,11.86,14.02,0,0,2.63,1.94,0.69,0.007,0.284,0.508,0.000,0.036,1.058,0.000,0.000,0.968,19.0,11.0,0.257,4.39,24.99,0.24,0.05,0.85,0.000,0.000,2.119,1.170,22.92,0,0,21,0,0.00,0.0,0.00,0.0,1,1,902/902/902/902/1113/1113/1113/1113,1843/2208,0,32.0,209,6835,4319,-1,1,0,0,
|
||||
20.2,,0,61,30.2,60.0,60.0,30,3.54,8.28,17.15,0,0,1.15,0.77,0.37,0.004,0.163,0.157,0.000,0.065,0.361,0.000,0.000,0.338,19.0,11.0,0.106,2.29,28.79,0.12,0.03,0.48,0.000,0.000,1.013,0.672,22.11,0,0,21,0,0.00,0.0,0.00,0.0,5,5,633/633/633/633/2208/2208/2208/2208,1843/2208,0,32.0,209,6835,4319,-1,1,0,0,
|
||||
22.2,,0,60,30.0,60.0,60.0,30,6.20,11.55,14.97,0,0,1.64,1.34,0.30,0.006,0.219,0.273,0.000,0.035,0.770,0.000,0.000,0.660,19.0,11.0,0.300,4.26,25.84,0.21,0.05,0.80,0.000,0.000,1.820,1.404,22.73,0,0,21,0,0.00,0.0,0.00,0.0,0,0,902/902/902/902/1113/1113/1113/1113,1843/2208,0,32.0,209,6774,4319,-1,1,0,0,
|
||||
24.2,,0,60,30.0,60.0,60.0,30,7.34,11.30,13.92,0,0,1.95,1.51,0.44,0.007,0.273,0.316,0.000,0.043,0.837,0.000,0.000,0.793,19.0,11.0,0.552,4.84,24.49,0.41,0.05,0.95,0.000,0.000,2.369,1.101,23.06,0,0,21,0,0.00,0.0,0.00,0.0,3,3,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,209,6556,4319,-1,1,0,0,
|
||||
26.2,,0,61,30.0,60.0,60.1,30,6.57,9.05,14.13,0,0,1.99,1.51,0.48,0.007,0.267,0.324,0.000,0.037,0.810,0.000,0.000,0.700,19.0,11.0,0.397,4.18,25.30,0.31,0.09,0.96,0.000,0.000,1.948,0.949,23.04,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,209,6835,4319,-1,1,0,0,
|
||||
28.2,,0,61,30.0,60.0,59.9,30,7.12,11.10,13.14,0,0,2.02,1.58,0.44,0.007,0.260,0.316,0.000,0.038,0.922,0.000,0.000,0.775,19.0,11.0,0.280,4.82,24.54,0.39,0.09,0.88,0.000,0.000,2.484,1.058,22.99,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,209,6835,4319,-1,1,0,0,
|
||||
30.3,,0,61,30.0,60.0,59.9,30,6.68,9.17,11.86,0,0,2.06,1.65,0.41,0.007,0.248,0.325,0.000,0.037,0.974,0.000,0.000,0.790,19.0,11.0,0.299,4.32,25.03,0.31,0.05,0.87,0.000,0.000,2.160,0.974,22.93,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,209,6835,4319,-1,1,0,0,
|
||||
32.3,,0,61,30.0,60.0,60.0,30,5.08,7.96,20.87,0,0,1.65,1.09,0.56,0.006,0.202,0.261,0.000,0.029,0.566,0.000,0.000,0.515,19.0,11.0,0.153,3.27,26.78,0.23,0.10,0.72,0.000,0.000,1.505,0.807,22.58,0,0,21,0,0.00,0.0,0.00,0.0,1,0,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,32.0,209,6835,4319,-1,1,0,0,
|
||||
34.3,,0,61,30.0,60.0,60.0,30,4.50,6.12,9.38,0,0,1.20,0.92,0.28,0.006,0.196,0.225,0.000,0.028,0.438,0.000,0.000,0.453,19.0,11.0,0.169,3.13,27.84,0.36,0.06,0.68,0.000,0.000,1.229,0.849,22.62,0,0,21,0,0.00,0.0,0.00,0.0,1,1,1113/1113/1113/1113/1113/1113/1113/1113,1843/2208,0,32.0,209,6835,4319,-1,1,0,0,
|
||||
36.3,,0,60,29.9,60.0,60.0,30,5.89,8.30,9.94,0,0,1.97,1.69,0.28,0.007,0.258,0.304,0.000,0.037,1.012,0.000,0.000,0.825,19.0,11.0,0.270,3.64,25.77,0.23,0.04,0.74,0.000,0.000,1.711,0.952,22.79,0,0,21,0,0.00,0.0,0.00,0.0,3,3,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,209,6835,4319,-1,1,0,0,
|
||||
38.4,,0,61,30.1,60.0,60.0,30,6.28,8.55,10.59,0,0,1.87,1.56,0.32,0.007,0.250,0.327,0.000,0.038,0.893,0.000,0.000,0.722,19.0,11.0,0.364,4.04,25.73,0.24,0.05,0.78,0.000,0.000,1.735,1.269,22.87,0,0,21,0,0.00,0.0,0.00,0.0,0,0,902/902/902/902/1113/1113/1113/1113,1843/2208,0,32.0,209,6835,4319,-1,1,0,0,
|
||||
40.4,,0,60,30.0,60.0,60.0,30,6.29,9.00,13.06,0,0,2.01,1.66,0.35,0.007,0.243,0.311,0.000,0.036,1.028,0.000,0.000,0.697,19.0,11.0,0.392,3.88,25.68,0.22,0.04,0.77,0.000,0.000,1.731,1.151,22.90,0,0,21,0,0.00,0.0,0.00,0.0,2,2,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,209,6652,4319,-1,1,0,0,
|
||||
42.4,,0,60,30.0,60.0,60.0,30,5.94,8.82,9.88,0,0,1.89,1.61,0.27,0.007,0.288,0.303,0.000,0.035,0.942,0.000,0.000,0.766,19.0,11.0,0.337,3.72,26.00,0.23,0.05,0.72,0.000,0.000,1.736,1.018,22.91,0,0,21,0,0.00,0.0,0.00,0.0,3,3,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,209,6696,4319,-1,1,0,0,
|
||||
44.4,,0,61,30.0,60.0,60.0,30,6.42,8.24,14.54,0,0,2.26,1.78,0.47,0.007,0.263,0.359,0.000,0.060,1.049,0.000,0.000,0.787,19.0,11.0,0.225,3.94,25.39,0.25,0.05,0.78,0.000,0.000,1.738,1.167,22.97,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,209,6835,4319,-1,1,0,0,
|
||||
46.4,,0,60,29.9,60.0,60.0,30,6.71,8.14,30.39,0,0,2.20,1.74,0.45,0.007,0.237,0.353,0.000,0.035,1.073,0.000,0.000,0.880,19.0,11.0,0.259,4.25,25.49,0.24,0.06,0.79,0.000,0.000,2.089,1.129,22.87,0,0,21,0,0.00,0.0,0.00,0.0,1,1,902/902/902/902/1113/1113/1113/1113,1843/2208,0,32.0,209,6835,4319,-1,1,0,0,
|
||||
48.4,,0,61,30.0,60.0,59.9,30,6.92,9.70,12.09,0,0,2.56,1.90,0.66,0.046,0.382,0.418,0.000,0.042,0.948,0.000,0.000,0.954,19.0,11.0,0.193,4.17,24.98,0.22,0.05,0.86,0.000,0.000,1.887,1.195,22.88,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,209,6835,4319,-1,1,0,0,
|
||||
50.5,,0,61,30.0,60.0,60.0,30,6.69,8.55,14.59,0,0,2.51,2.02,0.48,0.007,0.290,0.475,0.000,0.060,1.147,0.000,0.000,1.020,19.0,11.0,0.248,3.94,25.23,0.21,0.04,0.78,0.000,0.000,1.979,0.965,22.92,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,209,6652,4319,-1,1,0,0,
|
||||
52.5,,0,61,30.0,60.0,59.9,30,6.09,8.01,8.57,0,0,2.20,1.88,0.32,0.007,0.270,0.309,0.000,0.035,1.220,0.000,0.000,1.018,19.0,11.0,0.232,3.65,25.95,0.24,0.06,0.77,0.000,0.000,1.769,0.871,22.93,0,0,21,0,0.00,0.0,0.00,0.0,0,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,209,6626,4319,-1,1,0,0,
|
||||
54.5,,0,61,30.0,60.0,60.0,30,6.13,8.60,10.34,0,0,2.27,1.84,0.43,0.007,0.265,0.351,0.000,0.034,1.146,0.000,0.000,0.914,19.0,11.0,0.219,3.64,26.01,0.21,0.04,0.78,0.000,0.000,1.746,0.889,22.91,0,0,21,0,0.00,0.0,0.00,0.0,1,3,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
56.6,,0,61,30.1,60.0,60.0,30,6.50,9.36,11.80,0,0,2.44,1.96,0.47,0.007,0.266,0.461,0.000,0.107,1.081,0.000,0.000,0.935,19.0,11.0,0.247,3.81,25.19,0.27,0.04,0.83,0.000,0.000,1.790,0.885,22.92,0,0,21,0,0.00,0.0,0.00,0.0,1,1,902/902/902/902/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
58.6,,0,60,30.0,60.0,59.9,30,6.21,7.44,7.81,0,0,2.23,1.89,0.34,0.007,0.290,0.374,0.000,0.041,1.129,0.000,0.000,0.898,19.0,11.0,0.229,3.75,25.95,0.21,0.04,0.83,0.000,0.000,1.758,0.943,22.94,0,0,21,0,0.00,0.0,0.00,0.0,3,3,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
60.6,,0,61,30.0,60.0,60.0,30,6.37,7.50,8.39,0,0,2.32,2.00,0.32,0.007,0.241,0.354,0.000,0.034,1.323,0.000,0.000,0.861,19.0,11.0,0.231,3.82,25.72,0.22,0.04,0.77,0.000,0.000,1.803,1.018,22.90,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
62.6,,0,60,30.0,60.0,60.0,30,6.65,9.24,12.33,0,0,2.35,2.04,0.31,0.007,0.250,0.391,0.000,0.055,1.303,0.000,0.000,0.867,19.0,11.0,0.242,4.06,25.50,0.25,0.04,0.92,0.000,0.000,1.945,0.930,22.93,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
64.6,,0,61,30.0,60.0,60.0,30,6.37,7.92,8.68,0,0,2.28,1.99,0.29,0.008,0.261,0.394,0.000,0.034,1.218,0.000,0.000,0.934,19.0,11.0,0.266,3.82,25.62,0.23,0.05,0.82,0.000,0.000,1.790,0.974,22.90,0,0,21,0,0.00,0.0,0.00,0.0,3,3,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
66.6,,0,60,30.0,60.0,60.0,30,6.44,9.88,12.90,0,0,2.28,1.77,0.51,0.009,0.342,0.442,0.000,0.056,0.860,0.000,0.000,0.912,19.0,11.0,0.222,3.94,25.89,0.23,0.05,0.82,0.000,0.000,1.857,1.028,22.92,0,0,21,0,0.00,0.0,0.00,0.0,3,3,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
68.7,,0,61,30.0,60.0,60.0,30,8.22,11.95,14.45,0,0,2.75,1.76,0.99,0.007,0.293,0.451,0.000,0.083,0.886,0.000,0.000,0.906,19.0,11.0,0.288,5.18,23.66,0.23,0.05,0.95,0.000,0.000,2.656,1.335,22.98,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
70.7,,0,60,30.0,60.0,60.0,30,7.00,10.98,13.38,0,0,2.39,1.88,0.51,0.007,0.347,0.650,0.000,0.046,0.779,0.000,0.000,1.050,19.0,11.0,0.205,4.41,25.15,0.22,0.05,0.80,0.000,0.000,2.187,1.196,22.88,0,0,21,0,0.00,0.0,0.00,0.0,3,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4318,-1,1,0,0,
|
||||
72.7,,0,60,30.0,60.0,60.0,30,7.25,11.93,13.93,0,0,2.40,1.97,0.42,0.007,0.273,0.536,0.000,0.080,0.982,0.000,0.000,0.956,19.0,11.0,0.328,4.52,24.44,0.23,0.05,0.78,0.000,0.000,2.207,1.296,23.01,0,0,21,0,0.00,0.0,0.00,0.0,2,2,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4318,-1,1,0,0,
|
||||
74.7,,0,61,30.0,60.0,60.0,30,7.53,10.71,13.86,0,0,2.30,1.93,0.37,0.007,0.266,0.577,0.000,0.100,0.938,0.000,0.000,0.993,19.0,11.0,0.260,4.97,24.11,0.34,0.07,0.89,0.000,0.000,2.124,1.613,23.00,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6469,4319,-1,1,0,0,
|
||||
76.7,,0,60,29.9,60.0,59.9,30,6.76,11.75,13.68,0,0,2.10,1.74,0.36,0.007,0.269,0.419,0.000,0.057,0.924,0.000,0.000,0.845,19.0,11.0,0.217,4.44,25.08,0.29,0.06,0.85,0.000,0.000,2.050,1.237,22.99,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6486,4319,-1,1,0,0,
|
||||
78.7,,0,61,30.0,60.0,60.0,30,6.89,10.46,14.30,0,0,2.24,1.86,0.37,0.008,0.267,0.566,0.000,0.041,0.880,0.000,0.000,0.897,19.0,11.0,0.244,4.41,24.77,0.23,0.05,0.84,0.000,0.000,2.264,1.071,23.00,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
80.7,,0,60,29.9,60.0,60.0,30,7.17,11.26,12.09,0,0,2.16,1.83,0.33,0.007,0.330,0.459,0.000,0.079,0.917,0.000,0.000,0.925,19.0,11.0,0.267,4.74,24.69,0.31,0.06,0.84,0.000,0.000,2.344,1.243,22.97,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
82.8,,0,61,30.1,60.0,60.1,30,6.45,8.73,11.39,0,0,2.12,1.78,0.33,0.007,0.287,0.384,0.000,0.052,0.994,0.000,0.000,0.811,19.0,11.0,0.231,4.10,25.20,0.25,0.05,0.77,0.000,0.000,2.043,1.002,22.97,0,0,21,0,0.00,0.0,0.00,0.0,1,1,902/902/902/902/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
84.8,,0,60,30.0,60.0,60.0,30,6.40,8.58,11.91,0,0,2.16,1.86,0.30,0.007,0.263,0.484,0.000,0.037,1.033,0.000,0.000,0.927,19.0,11.0,0.222,4.02,25.37,0.23,0.05,0.77,0.000,0.000,1.973,1.042,22.91,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
86.8,,0,61,30.0,60.0,60.0,30,6.28,9.08,12.21,0,0,2.22,1.69,0.53,0.007,0.265,0.486,0.000,0.050,0.845,0.000,0.000,0.834,19.0,11.0,0.220,3.85,25.48,0.22,0.05,0.74,0.000,0.000,1.864,1.020,22.93,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
88.8,,0,61,30.0,60.0,60.0,30,6.27,8.54,9.25,0,0,2.24,1.82,0.42,0.007,0.279,0.470,0.000,0.060,0.928,0.000,0.000,0.886,19.0,11.0,0.223,3.80,25.49,0.23,0.06,0.75,0.000,0.000,1.829,0.988,22.94,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
90.8,,0,60,30.0,60.0,60.0,30,6.24,9.24,9.93,0,0,2.18,1.75,0.43,0.007,0.303,0.430,0.000,0.115,0.838,0.000,0.000,0.836,19.0,11.0,0.226,3.84,25.57,0.23,0.04,0.73,0.000,0.000,1.749,1.119,22.95,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
92.9,,0,61,30.0,60.0,60.0,30,7.16,9.50,21.07,0,0,2.67,1.76,0.91,0.008,0.323,0.441,0.000,0.047,0.866,0.000,0.000,0.920,19.0,11.0,0.237,4.26,24.58,0.23,0.07,0.87,0.000,0.000,2.162,0.996,22.86,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
94.9,,0,61,30.0,60.0,60.0,30,6.03,7.16,8.21,0,0,2.11,1.71,0.40,0.007,0.350,0.463,0.000,0.054,0.797,0.000,0.000,0.937,19.0,11.0,0.227,3.69,25.97,0.22,0.04,0.74,0.000,0.000,1.690,1.027,22.89,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
96.9,,0,60,30.0,60.0,60.0,30,6.06,7.45,7.97,0,0,2.10,1.60,0.50,0.007,0.377,0.372,0.000,0.035,0.770,0.000,0.000,0.835,19.0,11.0,0.243,3.72,25.77,0.22,0.04,0.77,0.000,0.000,1.688,1.038,22.91,0,0,21,0,0.00,0.0,0.00,0.0,2,2,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
98.9,,0,61,30.0,60.0,60.0,30,6.29,7.82,13.10,0,0,2.28,1.88,0.40,0.007,0.539,0.384,0.000,0.037,0.876,0.000,0.000,1.084,19.0,11.0,0.222,3.79,25.67,0.23,0.06,0.77,0.000,0.000,1.780,0.994,22.91,0,0,21,0,0.00,0.0,0.00,0.0,1,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6591,4319,-1,1,0,0,
|
||||
101.0,,0,61,30.0,60.0,59.9,30,6.15,8.45,10.84,0,0,2.13,1.72,0.41,0.007,0.502,0.333,0.000,0.037,0.794,0.000,0.000,0.932,19.0,11.0,0.239,3.78,25.76,0.21,0.04,0.78,0.000,0.000,1.837,0.948,22.89,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6347,4319,-1,1,0,0,
|
||||
103.0,,0,61,30.1,60.0,60.0,30,5.90,7.43,8.15,0,0,2.05,1.70,0.35,0.007,0.489,0.328,0.000,0.038,0.802,0.000,0.000,0.815,19.0,11.0,0.228,3.62,25.96,0.21,0.04,0.78,0.000,0.000,1.662,0.962,22.92,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6957,4319,-1,1,0,0,
|
||||
105.0,,0,60,30.0,60.0,60.0,30,6.07,7.94,8.25,0,0,2.37,1.60,0.77,0.009,0.393,0.400,0.000,0.035,0.723,0.000,0.000,0.768,19.0,11.0,0.204,3.50,26.35,0.18,0.04,0.73,0.000,0.000,1.712,0.878,22.26,0,0,21,0,0.00,0.0,0.00,0.0,1,3,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,7045,4319,-1,1,0,0,
|
||||
107.0,,0,61,30.0,60.0,59.8,30,6.73,10.31,16.54,0,0,2.68,1.79,0.89,0.008,0.379,0.414,0.000,0.082,0.836,0.000,0.000,0.884,19.0,11.0,0.334,3.71,25.44,0.21,0.03,0.75,0.000,0.000,1.849,0.905,22.28,0,0,21,0,0.00,0.0,0.00,0.0,0,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
109.0,,0,60,30.0,60.0,60.0,30,6.99,10.94,11.81,0,0,2.60,1.80,0.80,0.029,0.390,0.491,0.000,0.036,0.814,0.000,0.000,0.811,19.0,11.0,0.259,4.12,25.13,0.27,0.05,0.97,0.000,0.000,1.896,0.978,22.86,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
111.1,,0,61,30.0,60.0,60.0,30,6.46,8.11,12.08,0,0,2.45,1.86,0.60,0.007,0.251,0.460,0.000,0.046,1.049,0.000,0.000,0.914,19.0,11.0,0.222,3.78,25.52,0.23,0.04,0.76,0.000,0.000,1.800,0.985,22.92,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
113.1,,0,61,30.0,60.0,60.0,30,6.34,7.77,12.26,0,0,2.26,1.69,0.57,0.007,0.266,0.351,0.000,0.041,0.965,0.000,0.000,0.828,19.0,11.0,0.259,3.81,25.76,0.22,0.05,0.75,0.000,0.000,1.895,0.942,22.95,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
115.1,,0,61,30.0,60.0,60.0,30,6.29,7.86,8.07,0,0,2.15,1.55,0.60,0.007,0.242,0.329,0.000,0.039,0.896,0.000,0.000,0.720,19.0,11.0,0.274,3.87,25.67,0.23,0.04,0.78,0.000,0.000,1.817,1.028,22.93,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
117.1,,0,60,30.0,60.0,60.0,30,7.99,11.55,12.06,0,0,2.01,1.56,0.46,0.007,0.252,0.336,0.000,0.037,0.885,0.000,0.000,0.715,19.0,11.0,0.316,5.67,24.01,0.38,0.10,1.11,0.000,0.000,2.908,1.252,23.02,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
119.2,,0,61,30.0,60.0,60.0,30,8.20,11.89,12.42,0,0,2.28,1.59,0.69,0.009,0.313,0.341,0.000,0.041,0.838,0.000,0.000,0.712,19.0,11.0,0.294,5.63,23.90,0.28,0.05,1.26,0.000,0.000,2.790,1.287,23.08,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6486,4319,-1,1,0,0,
|
||||
121.2,,0,60,30.0,60.0,60.0,30,7.21,10.70,11.46,0,0,2.23,1.68,0.56,0.010,0.263,0.416,0.000,0.056,0.884,0.000,0.000,0.751,19.0,11.0,0.216,4.76,24.82,0.26,0.05,0.88,0.000,0.000,2.299,1.315,22.95,0,0,21,0,0.00,0.0,0.00,0.0,2,2,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6835,4319,-1,1,0,0,
|
||||
123.2,,0,61,30.1,60.0,60.0,30,7.69,12.00,15.93,0,0,2.42,1.82,0.59,0.007,0.274,0.450,0.000,0.052,0.995,0.000,0.000,0.932,19.0,11.0,0.197,5.08,24.15,0.26,0.04,0.84,0.000,0.000,2.561,1.408,22.98,0,0,21,0,0.00,0.0,0.00,0.0,1,0,902/902/902/902/1113/1113/1113/1113,1843/2208,0,32.0,210,6774,4319,-1,1,0,0,
|
||||
125.2,,0,60,29.9,60.0,60.0,30,7.52,12.11,13.04,0,0,2.16,1.64,0.52,0.007,0.273,0.394,0.000,0.041,0.873,0.000,0.000,0.847,19.0,11.0,0.244,5.12,24.21,0.38,0.09,0.85,0.000,0.000,2.444,1.429,23.04,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,210,6347,4319,-1,1,0,0,
|
||||
127.2,,0,61,30.0,60.0,60.0,30,6.87,10.51,12.45,0,0,1.88,1.52,0.36,0.007,0.267,0.332,0.000,0.039,0.837,0.000,0.000,0.783,19.0,11.0,0.319,4.67,24.78,0.31,0.07,0.87,0.000,0.000,2.171,1.310,23.09,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,211,6347,4319,-1,1,0,0,
|
||||
129.3,,0,61,30.0,60.0,60.0,30,6.71,10.75,16.94,0,0,1.83,1.45,0.38,0.009,0.248,0.306,0.000,0.036,0.816,0.000,0.000,0.722,19.0,11.0,0.253,4.62,25.08,0.25,0.05,0.95,0.000,0.000,2.144,1.266,23.00,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,211,6835,4319,-1,1,0,0,
|
||||
131.3,,0,61,30.0,60.0,60.0,30,6.35,9.67,11.71,0,0,1.96,1.41,0.55,0.007,0.244,0.311,0.000,0.036,0.771,0.000,0.000,0.675,19.0,11.0,0.232,4.16,25.17,0.26,0.06,0.79,0.000,0.000,2.122,0.978,22.93,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,211,6835,4319,-1,1,0,0,
|
||||
133.3,,0,60,30.0,60.0,60.0,30,6.59,9.71,14.02,0,0,1.79,1.38,0.41,0.007,0.243,0.304,0.000,0.036,0.755,0.000,0.000,0.656,19.0,11.0,0.274,4.53,25.16,0.31,0.09,0.86,0.000,0.000,2.292,1.059,22.93,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,32.0,211,6835,4319,-1,1,0,0,
|
||||
135.3,,0,61,30.0,60.0,59.9,30,6.38,8.24,25.56,0,0,1.74,1.32,0.42,0.007,0.252,0.303,0.000,0.039,0.681,0.000,0.000,0.642,19.0,11.0,0.212,4.42,25.56,0.25,0.04,1.00,0.000,0.000,2.079,1.081,22.88,0,0,21,0,0.00,0.0,0.00,0.0,5,1,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,32.0,211,6835,4319,-1,1,0,0,
|
||||
|
@@ -0,0 +1,26 @@
|
||||
# mt_native_render perf log 20261001-124510
|
||||
# device=Adreno (TM) 512 present_mode=FIFO msaa=2 render_scale=0.750000 size=2280x1080 gpu_skinning=1 terrain=1
|
||||
# per-frame averages over each 2 s window; *_ms game sections run on the script thread inside app_ms; py_ms includes update_game/render_game
|
||||
t_s,map,actors,frames,fps,refresh_hz,render_hz,fps_cap,frame_ms,frame_p95_ms,frame_max_ms,jank33,jank50,app_ms,process_ms,handoff_ms,net_ms,camera_ms,ui_update_ms,update_game_ms,render_begin_ms,ui_render_ms,render_game_ms,shadow_raster_ms,py_ms,py_calls,py_missing,host_ms,render_ms,pace_ms,sync_ms,fence_ms,prepare_ms,geo_upload_ms,tex_upload_ms,submit_ms,present_ms,gpu_ms,draws,skinned_draws,ui_batches,vertices,geo_uploads,geo_kb,tex_uploads,tex_kb,script_cpu,main_cpu,cpu_mhz,cpu_max_mhz,thermal,batt_c,rss_mb,batt_ma,batt_mv,power_mw,plugged,fps_mode,idle,last_texture
|
||||
# hitch t=0.68 frame=211.7 app=14.4 process=14.0 net=0.1 camera=0.2 ui_update=1.3 update_game=0.7 ui_render=11.8 render_game=9.4 shadow=0.0 py=12.8 host=0.1 render=197.1 sync=0.2 prepare=195.2 geo_upload=2.1(24) tex_upload=0.1(1, 16 KB) submit=1.4 present=0.2
|
||||
2.0,metin2_map_a1,28,55,27.4,60.0,-1.0,30,31.41,36.90,211.67,10,1,13.41,13.16,0.25,0.121,0.219,1.422,0.717,0.704,10.662,8.968,0.000,11.795,51.1,36.0,0.118,17.89,4.32,0.30,0.06,12.67,1.300,0.053,3.857,0.538,24.75,241,66,30,300720,23.20,8.2,0.22,7.8,1,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,32.0,566,6696,4318,-1,1,0,0,d:\ymir work\ui\pattern\stgauge\06.tga
|
||||
4.0,metin2_map_a1,28,60,29.8,60.0,60.0,30,29.23,33.96,39.32,4,0,14.95,14.60,0.35,0.129,0.234,1.493,0.784,0.725,11.971,10.128,0.000,13.154,51.1,36.0,0.122,14.16,3.56,0.43,0.04,9.23,1.430,0.000,3.822,0.661,27.68,241,66,30,300150,23.97,8.4,0.00,0.0,2,6,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,32.0,566,6835,4318,-1,1,0,0,d:\ymir work\ui\pattern\stgauge\06.tga
|
||||
6.0,metin2_map_a1,28,60,29.9,60.0,60.0,30,29.11,34.64,40.80,6,0,14.26,14.05,0.21,0.108,0.189,1.500,0.755,0.721,11.484,9.610,0.000,12.629,51.1,36.0,0.111,14.73,3.69,0.32,0.04,9.66,1.483,0.000,4.015,0.711,26.88,239,66,27,300142,24.03,8.4,0.00,0.0,2,1,1113/1113/1113/1113/1113/1113/1113/1113,1843/2208,0,32.0,565,6835,4318,-1,1,0,0,
|
||||
8.0,metin2_map_a1,28,61,30.2,60.0,60.0,30,29.15,34.38,37.86,7,0,14.43,14.19,0.24,0.119,0.202,1.495,0.780,0.785,11.552,9.782,0.000,12.725,48.1,35.0,0.131,14.59,3.32,0.30,0.04,9.56,1.492,0.000,4.177,0.540,26.49,239,66,24,299857,23.67,8.3,0.00,0.0,1,0,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,32.0,565,7202,4318,-1,1,0,0,
|
||||
10.1,metin2_map_a1,28,60,30.0,60.0,60.0,30,28.80,33.34,33.78,1,0,14.21,14.04,0.18,0.109,0.205,1.355,0.701,0.715,11.614,9.775,0.000,12.622,48.1,35.0,0.128,14.45,4.00,0.29,0.04,9.61,1.501,0.000,3.940,0.593,27.81,240,66,24,299861,24.08,8.5,0.00,0.0,1,2,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,32.0,565,6835,4318,-1,1,0,0,
|
||||
12.1,metin2_map_a1,28,61,30.0,60.0,59.9,30,27.42,31.82,41.66,1,0,13.37,13.11,0.26,0.122,0.191,1.268,0.689,0.625,10.864,9.212,0.000,11.848,48.1,35.0,0.123,13.92,5.30,0.29,0.04,8.91,1.436,0.000,4.109,0.601,26.64,238,66,24,299853,23.89,8.4,0.00,0.0,2,0,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,32.0,565,6835,4318,-1,1,0,0,
|
||||
14.1,metin2_map_a1,28,60,30.0,60.0,59.9,30,29.62,34.67,35.51,6,0,14.99,14.75,0.24,0.117,0.209,1.442,0.762,0.705,12.239,10.326,0.000,13.324,48.1,35.0,0.116,14.51,3.10,0.28,0.04,9.46,1.414,0.000,4.090,0.666,27.69,237,66,24,299564,23.67,8.3,0.00,0.0,2,6,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,32.0,565,6835,4318,-1,1,0,0,
|
||||
16.1,metin2_map_a1,28,61,30.2,60.0,60.0,30,19.09,33.57,34.19,5,0,9.57,9.19,0.38,0.083,0.162,0.999,0.520,0.474,7.447,6.343,0.000,8.234,48.1,35.0,0.066,9.45,13.40,0.19,0.03,6.21,0.904,0.000,2.627,0.417,26.18,240,66,24,299861,24.03,8.4,0.00,0.0,6,5,1401/1401/1401/1401/2208/2208/2208/2208,1843/2208,0,32.0,565,6835,4318,-1,1,0,0,
|
||||
18.1,metin2_map_a1,28,60,29.8,60.0,59.9,30,22.42,33.88,34.21,3,0,12.02,11.67,0.35,0.149,0.165,1.151,0.624,0.539,9.633,8.062,0.000,10.526,48.1,35.0,0.084,10.32,10.54,0.19,0.03,6.83,1.041,0.002,2.907,0.380,25.91,231,64,24,296755,24.32,8.5,0.02,1.1,1,1,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,32.0,565,6835,4318,-1,1,0,0,d:\ymir work\effect\etc\dust\dust.dds
|
||||
20.1,metin2_map_a1,28,61,30.0,60.0,60.0,30,26.07,30.04,32.69,0,0,12.78,12.53,0.25,0.153,0.233,1.351,0.729,0.726,10.012,8.351,0.000,11.039,48.1,35.0,0.117,13.17,6.43,0.27,0.03,8.31,1.374,0.000,3.814,0.751,25.64,205,42,24,277131,25.02,8.8,0.00,0.0,3,1,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,32.0,565,6835,4318,-1,1,0,0,d:\ymir work\effect\etc\dust\dust.dds
|
||||
22.2,metin2_map_a1,28,61,30.2,60.0,60.1,30,24.05,31.34,36.63,2,0,11.24,11.02,0.22,0.127,0.231,1.387,0.755,0.630,8.602,7.102,0.000,9.735,48.1,35.0,0.123,12.69,8.40,0.26,0.03,8.15,1.404,0.000,3.580,0.681,24.82,206,42,24,277135,24.13,8.5,0.00,0.0,7,5,633/633/633/633/2208/2208/2208/2208,1843/2208,0,32.0,565,6530,4318,-1,1,0,0,
|
||||
24.2,metin2_map_a1,28,60,29.9,60.0,60.0,30,17.19,26.34,31.51,0,0,9.45,9.19,0.25,0.107,0.157,1.070,0.570,0.449,7.377,6.084,0.000,8.224,48.1,35.0,0.063,7.68,15.85,0.17,0.02,5.21,0.768,0.000,1.953,0.331,23.49,204,42,24,277127,23.80,8.4,0.00,0.0,0,6,633/633/633/633/2208/2208/2208/2208,1843/2208,0,32.0,565,6347,4318,-1,1,0,0,
|
||||
26.2,metin2_map_a1,28,60,29.8,60.0,59.9,30,25.99,32.95,36.35,2,0,12.84,12.61,0.23,0.137,0.211,1.438,0.745,0.615,10.169,8.055,0.000,10.965,64.9,51.8,0.109,13.05,6.80,0.30,0.05,8.37,1.214,0.077,3.766,0.588,26.13,205,42,56,277131,23.68,8.3,0.30,13.3,1,0,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,32.0,566,6347,4318,-1,1,0,0,d:\ymir work\ui\game\costume_button_01.tga
|
||||
28.2,metin2_map_a1,28,61,30.3,60.0,60.0,30,20.43,30.42,32.19,0,0,10.84,10.58,0.26,0.124,0.188,1.346,0.688,0.582,8.301,6.570,0.000,9.028,67.1,54.0,0.075,9.51,12.08,0.18,0.02,6.43,0.986,0.000,2.498,0.395,25.06,206,42,56,277135,24.11,8.5,0.00,0.0,5,4,633/633/633/633/2208/2208/2208/2208,1843/2208,0,32.0,566,6696,4318,-1,1,0,0,d:\ymir work\ui\game\costume_button_01.tga
|
||||
# hitch t=34.34 frame=2730.2 app=11.1 process=10.8 net=0.1 camera=0.1 ui_update=1.2 update_game=0.6 ui_render=8.9 render_game=7.5 shadow=0.0 py=9.5 host=0.1 render=2719.0 sync=0.1 prepare=2475.0 geo_upload=0.5(23) tex_upload=0.0(0, 0 KB) submit=1.3 present=0.2
|
||||
34.3,metin2_map_a1,28,51,8.3,60.0,60.0,30,73.31,35.61,2730.22,3,1,8.35,8.02,0.33,0.102,0.152,1.050,0.514,0.460,6.225,4.724,0.000,6.757,67.2,54.0,0.100,64.87,12.76,0.19,0.03,55.96,1.289,0.007,3.318,0.632,26.09,205,44,56,278491,25.33,19.9,0.06,0.9,1,5,1843/1843/1843/1843/2208/2208/2208/2208,1843/2208,0,32.0,570,6835,4318,-1,1,0,0,d:\ymir work\effect\etc\click\untitled-1 copy.jpg
|
||||
# hitch t=34.77 frame=392.8 app=11.6 process=11.1 net=0.4 camera=0.2 ui_update=2.6 update_game=2.0 ui_render=7.4 render_game=5.6 shadow=0.0 py=9.4 host=0.1 render=381.1 sync=3.7 prepare=375.5 geo_upload=1.0(25) tex_upload=3.7(3, 7140 KB) submit=1.3 present=0.5
|
||||
# hitch t=34.94 frame=172.0 app=5.8 process=5.5 net=0.3 camera=0.1 ui_update=0.7 update_game=0.4 ui_render=4.0 render_game=3.3 shadow=0.0 py=4.5 host=0.1 render=166.1 sync=0.1 prepare=164.0 geo_upload=1.0(27) tex_upload=2.2(7, 1685 KB) submit=1.6 present=0.4
|
||||
# hitch t=35.84 frame=357.3 app=13.5 process=12.6 net=0.2 camera=0.2 ui_update=1.5 update_game=0.9 ui_render=10.2 render_game=8.2 shadow=0.0 py=11.0 host=0.1 render=343.7 sync=0.5 prepare=341.6 geo_upload=1.2(24) tex_upload=0.0(0, 0 KB) submit=1.3 present=0.2
|
||||
36.4,metin2_map_a1,28,36,17.8,60.0,59.6,30,49.96,357.27,392.80,3,3,12.53,12.23,0.30,0.234,0.172,1.654,0.885,0.702,9.434,7.533,0.000,10.411,67.1,54.0,0.127,37.31,5.63,0.36,0.13,33.05,1.481,0.187,3.440,0.452,27.51,209,56,55,286809,26.19,32.4,0.31,283.0,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,32.0,578,6835,4318,-1,1,0,0,d:\ymir work\zone\a\building\a1-018-stonelight-01.dds
|
||||
38.4,metin2_map_a1,28,60,29.9,60.0,60.0,30,21.82,30.40,36.49,1,0,11.87,11.62,0.26,0.137,0.187,1.379,0.725,0.629,9.244,7.477,0.000,10.018,67.1,54.0,0.090,9.86,10.90,0.19,0.02,6.81,0.916,0.000,2.458,0.390,25.45,209,56,55,286809,24.00,20.5,0.00,0.0,3,4,1747/1747/1747/1747/2208/2208/2208/2208,1843/2208,0,32.0,576,6835,4318,-1,1,0,0,d:\ymir work\zone\a\building\a1-018-stonelight-01.dds
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,111 @@
|
||||
# mt_native_render perf log 20261001-134750
|
||||
# device=Adreno (TM) 512 present_mode=FIFO msaa=2 render_scale=0.750000 size=2280x1080 gpu_skinning=1 terrain=1
|
||||
# per-frame averages over each 2 s window; *_ms game sections run on the script thread inside app_ms; py_ms includes update_game/render_game
|
||||
t_s,map,actors,frames,fps,refresh_hz,render_hz,fps_cap,frame_ms,frame_p95_ms,frame_max_ms,jank33,jank50,app_ms,process_ms,handoff_ms,net_ms,camera_ms,ui_update_ms,update_game_ms,render_begin_ms,ui_render_ms,render_game_ms,shadow_raster_ms,py_ms,py_calls,py_missing,host_ms,render_ms,pace_ms,sync_ms,fence_ms,prepare_ms,geo_upload_ms,tex_upload_ms,submit_ms,present_ms,gpu_ms,draws,skinned_draws,ui_batches,vertices,geo_uploads,geo_kb,tex_uploads,tex_kb,script_cpu,main_cpu,cpu_mhz,cpu_max_mhz,thermal,batt_c,rss_mb,batt_ma,batt_mv,power_mw,plugged,fps_mode,idle,last_texture
|
||||
# hitch t=0.72 frame=209.4 app=14.6 process=14.5 net=0.6 camera=0.2 ui_update=1.5 update_game=0.7 ui_render=11.4 render_game=9.5 shadow=0.0 py=12.6 host=0.2 render=194.6 sync=0.3 prepare=192.5 geo_upload=1.9(24) tex_upload=0.1(1, 16 KB) submit=1.4 present=0.5
|
||||
2.0,metin2_map_a1,28,55,27.3,60.0,-1.0,30,30.91,35.16,209.38,6,1,13.16,12.91,0.25,0.172,0.221,1.525,0.769,0.689,10.268,8.569,0.000,11.441,53.1,37.0,0.121,17.63,4.91,0.38,0.03,12.41,1.409,0.100,3.857,0.484,25.70,242,66,31,300724,23.22,8.2,0.22,7.8,1,1,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,28.0,567,6835,4314,-1,1,0,0,d:\ymir work\ui\pattern\stgauge\06.tga
|
||||
4.0,metin2_map_a1,28,61,30.0,60.0,60.0,30,28.19,32.63,36.93,3,0,13.77,13.49,0.28,0.140,0.237,1.494,0.755,0.827,10.755,8.754,0.000,11.867,53.1,37.0,0.116,14.31,4.32,0.44,0.04,9.25,1.443,0.000,4.078,0.529,27.76,241,66,31,300150,23.93,8.4,0.00,0.0,0,1,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,28.0,567,6530,4314,-1,1,0,0,d:\ymir work\ui\pattern\stgauge\06.tga
|
||||
6.1,metin2_map_a1,28,61,30.0,60.0,60.0,30,28.06,34.83,37.60,4,0,13.67,13.35,0.33,0.137,0.229,1.597,0.833,0.785,10.541,8.706,0.000,11.774,53.0,37.0,0.118,14.27,4.51,0.31,0.03,9.51,1.566,0.000,3.950,0.491,26.62,239,66,25,300142,24.02,8.4,0.00,0.0,0,1,1113/1113/1113/1113/1113/1113/1113/1113,1843/2208,0,28.0,566,6835,4314,-1,1,0,0,
|
||||
8.1,metin2_map_a1,28,61,30.0,60.0,59.9,30,26.37,31.17,35.21,1,0,12.90,12.57,0.33,0.171,0.236,1.274,0.680,0.641,10.213,8.570,0.000,11.168,50.1,36.0,0.119,13.36,6.30,0.23,0.03,8.67,1.389,0.000,3.963,0.480,25.03,240,66,25,300146,23.70,8.3,0.00,0.0,0,1,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,28.0,566,6835,4314,-1,1,0,0,
|
||||
10.1,metin2_map_a1,28,60,29.9,60.0,60.0,30,27.58,36.15,38.89,4,0,13.43,12.96,0.47,0.173,0.248,1.430,0.783,0.724,10.344,8.600,0.000,11.464,50.1,36.0,0.132,14.02,5.25,0.23,0.03,9.43,1.527,0.000,3.843,0.496,25.24,240,66,25,299861,24.15,8.5,0.00,0.0,0,1,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,28.0,566,6835,4314,-1,1,0,0,
|
||||
12.1,metin2_map_a1,28,61,30.0,60.0,60.0,30,28.21,34.71,38.39,8,0,13.91,13.44,0.46,0.178,0.234,1.618,0.876,0.746,10.616,8.865,0.000,11.904,50.1,36.0,0.126,14.18,4.41,0.26,0.04,9.34,1.467,0.000,4.014,0.542,26.51,238,66,25,299853,23.79,8.4,0.00,0.0,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,28.0,565,6835,4314,-1,1,0,0,
|
||||
14.2,metin2_map_a1,28,61,30.0,60.0,60.0,30,28.61,33.74,37.17,5,0,14.31,13.92,0.39,0.125,0.294,1.646,0.838,0.764,11.049,9.189,0.000,12.316,50.1,36.0,0.104,14.19,4.00,0.30,0.06,9.25,1.471,0.000,4.075,0.557,27.55,239,66,25,299857,23.72,8.3,0.00,0.0,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,28.0,565,6835,4314,-1,1,0,0,
|
||||
16.2,metin2_map_a1,28,60,29.9,60.0,60.0,30,28.63,33.86,37.70,4,0,14.33,13.99,0.35,0.184,0.308,1.838,0.884,0.879,10.729,9.001,0.000,12.249,50.1,36.0,0.127,14.17,4.23,0.29,0.03,9.35,1.500,0.000,3.957,0.557,27.59,238,66,25,299568,24.18,8.5,0.00,0.0,2,2,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,28.0,566,6835,4314,-1,1,0,0,
|
||||
18.2,metin2_map_a1,28,61,30.0,60.0,60.0,30,29.34,34.41,38.42,4,0,14.83,14.64,0.19,0.142,0.287,1.709,0.885,1.056,11.391,9.566,0.000,12.757,50.1,36.0,0.115,14.39,3.30,0.28,0.04,9.65,1.502,0.000,3.959,0.487,27.22,237,66,25,299564,23.74,8.3,0.00,0.0,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,28.0,566,6835,4314,-1,1,0,0,
|
||||
20.2,metin2_map_a1,28,60,30.0,60.0,60.0,30,28.62,35.08,36.48,5,0,14.19,13.99,0.20,0.127,0.247,1.444,0.754,0.782,11.349,9.622,0.000,12.458,50.1,36.0,0.115,14.32,3.99,0.25,0.03,9.57,1.454,0.000,3.918,0.560,26.74,238,66,25,299568,23.75,8.3,0.00,0.0,1,1,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,28.0,566,6835,4314,-1,1,0,0,
|
||||
22.2,metin2_map_a1,28,61,30.1,60.0,59.9,30,28.92,35.50,38.08,8,0,14.44,14.20,0.25,0.121,0.214,1.418,0.793,0.738,11.669,9.803,0.000,12.684,50.1,36.0,0.129,14.35,3.81,0.25,0.03,9.60,1.463,0.000,3.948,0.538,26.62,238,66,25,299568,24.16,8.5,0.00,0.0,2,1,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,28.0,566,6835,4314,-1,1,0,0,
|
||||
24.3,metin2_map_a1,28,61,30.0,60.0,60.1,30,28.63,34.23,36.66,5,0,14.88,14.61,0.27,0.122,0.202,1.485,0.702,0.789,11.964,10.184,0.000,13.085,50.1,36.0,0.136,13.61,4.03,0.27,0.04,9.14,1.401,0.000,3.707,0.484,27.59,237,66,25,299564,23.72,8.3,0.00,0.0,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,28.0,566,6835,4314,-1,1,0,0,
|
||||
26.3,metin2_map_a1,28,60,30.0,60.0,60.0,30,28.71,33.14,34.58,2,0,14.67,14.38,0.29,0.126,0.217,1.274,0.680,0.687,12.026,10.288,0.000,12.930,50.0,36.0,0.127,13.92,4.15,0.28,0.05,9.40,1.404,0.000,3.749,0.475,27.56,238,66,25,299568,23.77,8.4,0.00,0.0,2,2,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,28.0,566,6765,4314,-1,1,0,0,
|
||||
28.3,metin2_map_a1,28,60,30.0,60.0,60.0,30,28.83,33.90,35.25,3,0,14.42,14.25,0.18,0.125,0.224,1.559,0.854,0.691,11.610,9.809,0.000,12.771,50.1,36.0,0.114,14.29,3.90,0.30,0.05,9.57,1.514,0.000,3.871,0.534,27.58,238,66,25,299568,24.18,8.5,0.00,0.0,1,1,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,28.0,566,6591,4314,-1,1,0,0,
|
||||
30.3,metin2_map_a1,28,61,30.1,60.0,60.1,30,29.43,32.86,35.97,2,0,15.04,14.88,0.16,0.160,0.272,1.498,0.833,0.758,12.156,10.196,0.000,13.284,50.1,36.0,0.153,14.24,3.26,0.28,0.04,9.58,1.432,0.000,3.846,0.505,27.85,232,66,25,298119,23.70,8.3,0.00,0.0,2,0,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,28.0,566,6835,4314,-1,1,0,0,
|
||||
32.3,metin2_map_a1,28,60,30.0,60.0,60.0,30,29.32,33.55,34.24,3,0,14.48,14.33,0.15,0.139,0.204,1.361,0.717,0.737,11.849,9.852,0.000,12.794,50.1,36.0,0.144,14.69,3.43,0.29,0.04,9.79,1.500,0.000,4.076,0.518,27.70,233,66,25,298123,23.75,8.3,0.00,0.0,1,0,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,28.0,566,6835,4314,-1,1,0,0,
|
||||
34.4,metin2_map_a1,28,61,30.0,60.0,60.0,30,29.24,33.52,34.08,4,0,14.53,14.33,0.20,0.132,0.208,1.395,0.747,0.714,11.846,9.848,0.000,12.848,50.1,36.0,0.137,14.57,3.46,0.33,0.06,9.71,1.614,0.000,4.033,0.478,27.77,233,66,25,298123,24.16,8.5,0.00,0.0,2,0,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,29.0,566,6835,4314,-1,1,0,0,
|
||||
36.4,metin2_map_a1,28,61,30.0,60.0,60.0,30,28.69,33.53,35.40,4,0,14.08,13.96,0.12,0.147,0.217,1.354,0.713,0.666,11.529,9.728,0.000,12.501,50.1,36.0,0.140,14.47,4.13,0.31,0.05,9.53,1.519,0.000,4.093,0.523,27.60,232,66,25,298119,23.72,8.3,0.00,0.0,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,29.0,566,6835,4313,-1,1,0,0,
|
||||
38.4,metin2_map_a1,28,60,29.9,60.0,60.0,30,28.38,36.01,37.21,4,0,13.65,13.39,0.25,0.132,0.196,1.407,0.719,0.684,10.938,9.125,0.000,11.975,50.1,36.0,0.136,14.60,4.31,0.27,0.05,9.36,1.541,0.000,4.341,0.594,26.60,234,66,25,298127,23.90,8.4,0.00,0.0,2,0,1113/1113/1113/1113/1113/1113/1113/1113,1843/2208,0,29.0,566,6835,4313,-1,1,0,0,
|
||||
40.4,metin2_map_a1,28,61,30.1,60.0,60.0,30,28.86,35.71,42.09,5,0,13.77,13.56,0.21,0.141,0.202,1.394,0.745,0.684,11.095,9.250,0.000,12.116,50.1,36.0,0.137,14.95,3.69,0.28,0.03,9.64,1.580,0.000,4.410,0.590,26.37,233,66,25,298123,24.08,8.5,0.00,0.0,2,0,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,29.0,566,6835,4313,-1,1,0,0,
|
||||
42.5,metin2_map_a1,28,61,29.9,60.0,59.9,30,28.57,32.92,36.33,2,0,13.81,13.67,0.14,0.125,0.205,1.367,0.720,0.694,11.233,9.372,0.000,12.234,50.1,36.0,0.145,14.62,4.08,0.29,0.04,9.38,1.423,0.000,4.392,0.542,27.46,232,66,25,298119,23.66,8.3,0.00,0.0,2,3,902/902/902/902/1113/1113/1113/1113,1843/2208,0,29.0,566,6835,4313,-1,1,0,0,
|
||||
44.5,metin2_map_a1,28,61,30.1,60.0,59.9,30,28.13,31.81,35.88,2,0,13.46,13.27,0.18,0.152,0.225,1.348,0.730,0.725,10.783,8.956,0.000,11.768,50.1,36.0,0.141,14.53,4.41,0.28,0.03,9.40,1.500,0.000,4.236,0.584,26.52,234,66,25,298127,23.87,8.4,0.00,0.0,3,1,1113/1113/1113/1113/1113/1113/1113/1113,1843/2208,0,29.0,566,6530,4313,-1,1,0,0,
|
||||
46.5,metin2_map_a1,28,58,28.8,60.0,59.9,30,30.59,40.72,47.75,14,0,15.12,14.81,0.32,0.132,0.223,1.666,0.907,0.745,11.993,9.940,0.000,13.300,50.1,36.0,0.172,15.29,3.33,0.29,0.03,10.31,1.675,0.000,4.133,0.544,27.52,232,66,25,298119,24.12,8.5,0.00,0.0,2,2,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,29.0,566,6765,4313,-1,1,0,0,
|
||||
48.5,metin2_map_a1,28,61,30.0,60.0,59.9,30,28.45,33.88,37.84,4,0,14.36,14.16,0.19,0.111,0.178,1.736,0.860,0.947,11.149,9.249,0.000,12.421,50.1,36.0,0.137,13.96,4.15,0.25,0.04,9.34,1.365,0.000,3.827,0.524,27.05,232,66,25,298119,23.66,8.3,0.00,0.0,1,2,902/902/902/902/1113/1113/1113/1113,1843/2208,0,29.0,566,6835,4313,-1,1,0,0,
|
||||
50.5,metin2_map_a1,28,60,29.9,60.0,59.9,30,28.79,33.79,35.16,5,0,14.69,14.49,0.19,0.129,0.170,1.547,0.767,0.930,11.670,9.805,0.000,12.762,50.1,36.0,0.125,13.98,4.01,0.31,0.04,9.39,1.515,0.000,3.800,0.471,27.12,234,66,25,298127,23.92,8.4,0.00,0.0,2,0,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,29.0,566,6486,4313,-1,1,0,0,
|
||||
52.5,metin2_map_a1,28,60,30.0,60.0,60.0,30,28.66,35.14,41.16,5,0,14.03,13.70,0.33,0.111,0.194,1.350,0.703,0.813,11.191,9.361,0.000,12.203,50.1,36.0,0.130,14.50,4.05,0.26,0.04,9.61,1.628,0.000,4.092,0.521,26.60,233,66,25,298123,24.08,8.5,0.00,0.0,1,2,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,29.0,566,6347,4313,-1,1,0,0,
|
||||
54.6,metin2_map_a1,28,61,30.1,60.0,60.0,30,28.89,33.76,36.11,4,0,14.50,14.25,0.26,0.112,0.199,1.379,0.747,0.671,11.842,10.053,0.000,12.862,50.1,36.0,0.141,14.24,3.79,0.29,0.05,9.36,1.493,0.000,4.041,0.539,27.69,232,66,25,298119,23.66,8.3,0.00,0.0,2,1,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,29.0,566,6556,4313,-1,1,0,0,
|
||||
56.6,metin2_map_a1,28,60,29.9,60.0,60.1,30,28.63,34.66,36.22,6,0,14.49,14.07,0.42,0.105,0.179,1.335,0.705,0.716,11.696,9.900,0.000,12.682,50.1,36.0,0.137,14.01,4.21,0.30,0.03,9.36,1.519,0.000,3.824,0.505,27.85,234,66,25,298127,24.03,8.4,0.00,0.0,2,1,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,29.0,566,6835,4313,-1,1,0,0,
|
||||
58.6,metin2_map_a1,28,61,30.0,60.0,60.0,30,28.90,34.84,44.40,5,0,14.18,13.88,0.31,0.117,0.202,1.384,0.738,0.697,11.440,9.553,0.000,12.448,50.0,36.0,0.151,14.56,3.84,0.28,0.03,9.87,1.588,0.000,3.922,0.473,26.32,232,66,25,298119,23.97,8.4,0.00,0.0,2,1,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,29.0,566,6835,4313,-1,1,0,0,
|
||||
60.6,metin2_map_a1,28,61,30.2,60.0,60.0,30,28.69,35.43,38.48,9,0,14.25,14.03,0.22,0.138,0.187,1.419,0.779,0.697,11.551,9.701,0.000,12.571,50.1,36.0,0.119,14.32,3.84,0.26,0.04,9.68,1.564,0.000,3.838,0.520,27.19,232,66,25,298119,23.66,8.3,0.00,0.0,1,1,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,29.0,566,6835,4313,-1,1,0,0,
|
||||
62.6,metin2_map_a1,28,60,29.9,60.0,59.9,30,28.74,32.42,34.61,1,0,14.38,14.16,0.22,0.119,0.175,1.534,0.787,0.680,11.612,9.739,0.000,12.759,50.1,36.0,0.144,14.22,4.07,0.26,0.04,9.60,1.492,0.000,3.820,0.516,27.32,234,66,25,298127,24.02,8.4,0.00,0.0,2,1,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,29.0,566,6835,4313,-1,1,0,0,
|
||||
64.6,metin2_map_a1,28,60,30.0,60.0,59.9,30,28.86,35.21,37.91,5,0,14.29,14.07,0.22,0.112,0.182,1.453,0.763,0.788,11.492,9.585,0.000,12.525,50.1,36.0,0.162,14.41,3.98,0.29,0.04,9.59,1.452,0.000,4.030,0.485,27.89,232,66,25,298119,23.97,8.4,0.00,0.0,1,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,29.0,566,6835,4313,-1,1,0,0,
|
||||
66.6,metin2_map_a1,28,60,30.0,60.0,59.9,30,28.94,37.77,40.28,10,0,13.84,13.68,0.16,0.143,0.207,1.425,0.756,0.713,11.155,9.318,0.000,12.182,50.1,36.0,0.157,14.94,3.76,0.28,0.03,9.71,1.589,0.000,4.371,0.567,26.63,233,66,25,298123,23.70,8.3,0.00,0.0,0,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,29.0,566,6835,4313,-1,1,0,0,
|
||||
68.6,metin2_map_a1,28,60,30.0,60.0,60.0,30,28.22,34.67,37.43,6,0,13.43,13.19,0.25,0.125,0.175,1.291,0.694,0.662,10.898,9.123,0.000,11.844,50.1,36.0,0.142,14.65,4.50,0.25,0.03,9.33,1.537,0.000,4.415,0.634,25.21,234,66,25,298127,24.10,8.5,0.00,0.0,1,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,29.0,566,6765,4313,-1,1,0,0,
|
||||
70.7,metin2_map_a1,28,61,30.1,60.0,60.0,30,28.70,33.86,40.56,5,0,13.61,13.39,0.22,0.122,0.179,1.372,0.712,0.687,10.997,9.186,0.000,11.988,50.1,36.0,0.126,14.97,3.83,0.26,0.04,9.42,1.426,0.000,4.478,0.791,26.63,232,66,25,298119,23.85,8.4,0.00,0.0,1,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,29.0,566,6591,4313,-1,1,0,0,
|
||||
72.7,metin2_map_a1,28,60,30.0,60.0,60.0,30,28.51,33.05,34.64,1,0,13.88,13.64,0.23,0.117,0.198,1.376,0.697,0.673,11.242,9.474,0.000,12.257,50.1,36.0,0.132,14.50,4.20,0.28,0.03,9.24,1.385,0.000,4.374,0.586,27.60,232,66,25,298119,23.67,8.3,0.00,0.0,1,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,29.0,566,6835,4313,-1,1,0,0,
|
||||
74.7,metin2_map_a1,28,61,30.0,60.0,60.0,30,28.54,34.24,36.27,5,0,13.83,13.65,0.18,0.132,0.192,1.448,0.721,0.658,11.185,9.341,0.000,12.248,50.1,36.0,0.135,14.57,4.23,0.27,0.04,9.39,1.481,0.000,4.415,0.480,27.57,234,66,25,298127,24.11,8.5,0.00,0.0,1,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,29.0,566,6835,4313,-1,1,0,0,
|
||||
76.7,metin2_map_a1,28,61,30.0,60.0,60.0,30,27.87,31.14,36.10,1,0,13.48,13.28,0.19,0.136,0.196,1.492,0.782,0.658,10.758,8.942,0.000,11.849,50.0,36.0,0.124,14.27,4.80,0.26,0.04,9.23,1.388,0.000,4.183,0.576,27.55,232,66,25,298119,23.85,8.4,0.00,0.0,1,2,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,29.0,567,6530,4313,-1,1,0,0,
|
||||
78.7,metin2_map_a1,28,61,30.3,60.0,60.0,30,17.60,26.95,31.16,0,0,9.36,9.12,0.24,0.090,0.144,1.003,0.511,0.471,7.378,6.208,0.000,8.160,50.1,36.0,0.072,8.18,14.94,0.15,0.02,5.55,0.778,0.003,2.086,0.374,25.53,239,66,25,299572,23.80,8.8,0.02,4.2,7,6,633/633/633/633/2208/2208/2208/2208,1843/2208,0,29.0,567,6347,4313,-1,1,0,0,mem:cpu_6@2
|
||||
80.8,metin2_map_a1,28,60,29.8,60.0,60.1,30,23.63,32.91,36.40,2,0,11.12,10.85,0.27,0.103,0.202,1.258,0.609,0.565,8.681,7.195,0.000,9.649,50.1,36.0,0.117,12.40,9.29,0.23,0.03,8.27,1.239,0.000,3.414,0.469,26.62,239,66,25,299572,24.00,8.4,0.00,0.0,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,29.0,566,6530,4313,-1,1,0,0,mem:cpu_6@2
|
||||
82.8,metin2_map_a1,28,60,30.0,60.0,60.1,30,28.36,34.98,39.04,7,0,13.86,13.60,0.26,0.124,0.186,1.707,0.871,0.773,10.767,9.004,0.000,12.065,50.1,36.0,0.113,14.39,4.33,0.26,0.04,9.42,1.501,0.000,4.112,0.572,26.61,237,66,25,299564,23.87,8.4,0.00,0.0,2,0,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,29.0,566,6835,4313,-1,1,0,0,
|
||||
84.8,metin2_map_a1,28,60,30.0,60.0,60.0,30,28.10,34.04,35.08,5,0,13.91,13.68,0.23,0.116,0.205,1.562,0.813,0.731,11.023,9.164,0.000,12.186,50.1,36.0,0.103,14.09,4.57,0.30,0.03,9.19,1.351,0.000,4.059,0.523,27.37,238,66,25,299568,23.77,8.4,0.00,0.0,1,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,29.0,567,6835,4313,-1,1,0,0,
|
||||
86.8,metin2_map_a1,28,60,29.9,60.0,59.9,30,28.01,34.40,34.79,4,0,13.82,13.61,0.21,0.113,0.215,1.637,0.869,0.775,10.830,9.025,0.000,12.081,50.1,36.0,0.110,14.07,4.75,0.25,0.03,9.15,1.490,0.000,4.059,0.599,27.07,238,66,25,299568,24.15,8.5,0.00,0.0,1,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,29.0,567,6835,4313,-1,1,0,0,
|
||||
88.8,metin2_map_a1,28,60,29.9,60.0,59.9,30,28.25,35.45,38.86,4,0,14.10,13.76,0.34,0.128,0.200,1.570,0.808,0.764,11.055,9.136,0.000,12.169,50.1,36.0,0.126,14.03,4.50,0.26,0.03,9.26,1.436,0.000,3.958,0.533,27.57,237,66,25,299564,23.75,8.3,0.00,0.0,2,1,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,29.0,567,6835,4313,-1,1,0,0,
|
||||
90.8,metin2_map_a1,28,61,30.2,60.0,60.0,30,27.71,33.93,34.95,5,0,13.76,13.44,0.33,0.158,0.223,1.616,0.912,0.737,10.663,8.903,0.000,11.958,50.1,36.0,0.111,13.83,4.79,0.28,0.03,8.88,1.444,0.000,4.097,0.574,26.57,238,66,25,299568,23.74,8.3,0.00,0.0,0,1,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,29.0,567,6835,4313,-1,1,0,0,
|
||||
92.8,metin2_map_a1,28,61,30.0,60.0,60.0,30,28.17,32.10,35.20,2,0,14.38,13.95,0.43,0.176,0.255,1.748,0.955,0.888,10.815,8.926,0.000,12.183,50.1,36.0,0.111,13.68,4.32,0.30,0.03,8.85,1.476,0.000,3.935,0.573,27.84,238,66,25,299568,24.16,8.5,0.00,0.0,1,1,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,29.0,567,6835,4313,-1,1,0,0,
|
||||
94.9,metin2_map_a1,28,61,30.0,60.0,60.0,30,27.49,35.62,39.25,6,0,13.57,13.10,0.47,0.145,0.257,1.625,0.861,0.730,10.286,8.512,0.000,11.551,50.1,36.0,0.127,13.79,5.25,0.26,0.03,9.05,1.416,0.000,3.883,0.584,25.77,237,66,25,299564,23.72,8.3,0.00,0.0,1,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,567,6835,4313,-1,1,0,0,
|
||||
96.9,metin2_map_a1,28,61,30.0,60.0,59.9,30,28.51,33.89,43.86,4,0,14.44,13.92,0.52,0.146,0.221,1.874,0.935,0.789,10.848,9.080,0.000,12.336,50.1,36.0,0.120,13.95,4.18,0.29,0.03,9.13,1.488,0.000,3.912,0.599,26.84,233,66,25,298123,23.75,8.4,0.00,0.0,3,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,567,6835,4313,-1,1,0,0,
|
||||
98.9,metin2_map_a1,28,60,30.0,60.0,60.0,30,28.90,36.20,39.61,7,0,14.24,13.94,0.29,0.140,0.188,1.753,0.916,0.786,11.039,9.251,0.000,12.366,50.1,36.0,0.125,14.54,3.86,0.29,0.05,9.81,1.603,0.000,3.912,0.527,25.72,233,66,25,298123,24.17,8.5,0.00,0.0,0,1,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,30.0,567,6469,4313,-1,1,0,0,
|
||||
100.9,metin2_map_a1,28,61,30.1,60.0,60.0,30,28.72,34.20,38.04,6,0,14.51,14.31,0.21,0.113,0.177,1.702,0.890,1.077,11.196,9.456,0.000,12.529,50.1,36.0,0.120,14.08,3.95,0.29,0.04,9.22,1.471,0.000,4.016,0.545,27.66,232,66,25,298119,23.72,8.3,0.00,0.0,1,2,902/902/902/902/1113/1113/1113/1113,1843/2208,0,30.0,567,6696,4313,-1,1,0,0,
|
||||
102.9,metin2_map_a1,28,60,29.9,60.0,60.1,30,28.21,33.02,42.89,2,0,13.93,13.66,0.27,0.124,0.165,1.506,0.777,0.831,10.991,9.256,0.000,12.147,50.1,36.0,0.122,14.17,4.45,0.27,0.04,9.51,1.597,0.004,3.808,0.569,26.28,221,64,25,293295,24.33,8.6,0.02,1.1,2,2,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,30.0,568,6591,4313,-1,1,0,0,d:\ymir work\effect\etc\dust\dust.dds
|
||||
# hitch t=103.52 frame=390.4 app=16.5 process=16.4 net=0.1 camera=0.1 ui_update=1.1 update_game=0.6 ui_render=13.0 render_game=11.2 shadow=0.0 py=13.7 host=0.1 render=373.8 sync=0.2 prepare=371.9 geo_upload=2.3(29) tex_upload=4.1(3, 7140 KB) submit=1.3 present=0.2
|
||||
# hitch t=104.31 frame=190.5 app=11.3 process=11.3 net=0.1 camera=0.1 ui_update=1.1 update_game=0.6 ui_render=9.3 render_game=7.9 shadow=0.0 py=10.2 host=0.1 render=179.0 sync=0.2 prepare=177.1 geo_upload=1.1(24) tex_upload=0.0(0, 0 KB) submit=1.5 present=0.2
|
||||
104.9,metin2_map_a1,28,45,22.3,60.0,60.1,30,36.83,40.34,390.42,4,2,12.62,12.37,0.25,0.233,0.165,1.580,0.858,0.672,9.685,8.035,0.000,10.931,50.1,36.0,0.121,24.08,7.30,0.39,0.20,20.02,1.348,0.098,3.188,0.461,25.25,227,64,24,295345,24.98,20.1,0.09,164.4,0,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,576,6835,4313,-1,1,0,0,d:\ymir work\tree\compositemapb1.dds
|
||||
106.9,metin2_map_a1,28,60,30.0,60.0,60.0,30,28.43,34.76,36.89,3,0,14.54,14.05,0.49,0.159,0.243,1.729,0.972,0.844,11.032,9.136,0.000,12.397,50.1,36.0,0.125,13.77,4.29,0.29,0.03,8.97,1.319,0.000,3.833,0.657,27.31,227,64,24,295345,24.00,20.5,0.00,0.0,1,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,574,6835,4313,-1,1,0,0,d:\ymir work\tree\compositemapb1.dds
|
||||
108.9,metin2_map_a1,28,60,30.0,60.0,60.0,30,28.28,33.28,36.72,2,0,14.35,13.91,0.45,0.147,0.243,1.918,0.991,0.868,10.685,8.866,0.000,12.180,50.1,36.0,0.110,13.81,4.46,0.31,0.04,8.95,1.302,0.000,3.909,0.634,27.61,227,64,24,295345,24.00,20.5,0.00,0.0,0,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,574,6835,4313,-1,1,0,0,
|
||||
111.0,metin2_map_a1,28,61,30.1,60.0,60.0,30,28.69,32.47,35.50,2,0,14.37,14.14,0.23,0.138,0.358,1.818,1.004,0.865,10.915,9.072,0.000,12.423,50.1,36.0,0.134,14.19,3.88,0.34,0.04,9.32,1.444,0.000,3.899,0.619,27.45,227,64,24,295345,24.00,20.5,0.00,0.0,2,5,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,30.0,574,6835,4313,-1,1,0,0,
|
||||
113.0,metin2_map_a1,28,61,30.0,60.0,59.9,30,28.69,34.32,35.75,7,0,14.36,14.14,0.22,0.131,0.223,1.963,0.956,0.985,10.790,8.950,0.000,12.317,50.1,36.0,0.112,14.21,3.89,0.33,0.04,9.47,1.381,0.000,3.834,0.561,27.23,227,64,24,295345,24.00,20.5,0.00,0.0,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,574,6835,4313,-1,1,0,0,
|
||||
115.0,metin2_map_a1,28,61,30.0,60.0,60.0,30,28.07,32.08,37.38,1,0,13.79,13.55,0.24,0.119,0.263,1.386,0.704,0.747,10.990,9.186,0.000,12.017,50.1,36.0,0.117,14.16,4.72,0.26,0.03,9.47,1.402,0.007,3.820,0.604,26.75,232,64,24,296790,24.02,20.9,0.02,4.2,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,574,6835,4313,-1,1,0,0,mem:cpu_6@2
|
||||
117.1,metin2_map_a1,28,61,30.1,60.0,60.0,30,28.71,33.60,36.67,6,0,14.53,14.27,0.25,0.134,0.280,1.396,0.729,0.842,11.583,9.824,0.000,12.642,50.1,36.0,0.108,14.07,4.04,0.28,0.04,9.26,1.420,0.000,3.887,0.609,27.58,232,64,24,296790,24.00,20.5,0.00,0.0,2,1,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,30.0,574,6835,4313,-1,1,0,0,mem:cpu_6@2
|
||||
119.1,metin2_map_a1,28,61,30.0,60.0,60.0,30,27.65,35.32,38.49,9,0,13.34,13.02,0.32,0.137,0.230,1.371,0.730,0.676,10.563,8.850,0.000,11.604,50.1,36.0,0.115,14.19,5.04,0.26,0.03,9.38,1.401,0.000,3.956,0.582,26.11,232,64,24,296790,24.00,20.5,0.00,0.0,1,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,574,6835,4313,-1,1,0,0,
|
||||
121.1,metin2_map_a1,28,60,29.8,60.0,60.0,30,28.03,38.61,40.13,5,0,13.66,13.34,0.31,0.195,0.217,1.401,0.746,0.670,10.809,9.139,0.000,11.888,50.1,36.0,0.122,14.25,4.89,0.25,0.03,9.51,1.326,0.000,3.862,0.614,25.94,232,64,24,296790,24.00,20.5,0.00,0.0,1,6,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,30.0,574,6835,4313,-1,1,0,0,
|
||||
123.1,metin2_map_a1,28,61,30.1,60.0,60.0,30,28.75,32.90,35.62,2,0,14.04,13.86,0.18,0.209,0.181,1.425,0.809,0.686,11.323,9.465,0.000,12.339,50.1,36.0,0.127,14.58,3.86,0.32,0.05,9.84,1.474,0.000,3.792,0.608,27.37,232,64,24,296790,24.00,20.5,0.00,0.0,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,574,6835,4313,-1,1,0,0,
|
||||
125.2,metin2_map_a1,28,61,30.3,60.0,60.0,30,19.51,31.66,35.50,1,0,9.55,9.33,0.23,0.088,0.163,1.094,0.584,0.491,7.452,6.269,0.000,8.307,50.1,36.0,0.085,9.87,13.03,0.18,0.02,6.66,0.963,0.000,2.609,0.413,25.54,232,64,26,296790,24.00,20.5,0.00,0.0,6,6,633/633/633/633/2208/2208/2208/2208,1843/2208,0,30.0,574,6835,4313,-1,1,0,0,
|
||||
127.2,metin2_map_a1,28,60,29.8,60.0,59.9,30,22.13,37.99,41.50,9,0,10.39,10.04,0.34,0.094,0.157,1.179,0.643,0.634,7.948,6.627,0.000,8.820,50.1,36.0,0.084,11.66,10.94,0.21,0.03,7.83,1.130,0.000,3.094,0.511,25.34,232,64,26,296790,24.00,20.5,0.00,0.0,2,1,1113/1113/1113/1113/1113/1113/1113/1113,1843/2208,0,30.0,574,6347,4313,-1,1,0,0,
|
||||
129.2,metin2_map_a1,28,60,30.0,60.0,59.9,30,28.88,33.05,36.48,2,0,14.21,13.94,0.27,0.115,0.173,1.344,0.731,0.661,11.611,9.647,0.000,12.529,50.1,36.0,0.150,14.53,3.86,0.29,0.04,9.48,1.315,0.000,4.085,0.660,27.41,232,64,26,296790,24.00,20.5,0.00,0.0,0,5,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,574,6347,4313,-1,1,0,0,
|
||||
131.2,metin2_map_a1,28,61,30.1,60.0,60.0,30,28.49,33.05,35.78,1,0,13.98,13.77,0.21,0.123,0.180,1.345,0.725,0.692,11.384,9.430,0.000,12.283,50.1,36.0,0.136,14.37,4.23,0.29,0.04,9.55,1.367,0.000,3.905,0.607,27.75,232,64,26,296790,24.00,20.5,0.00,0.0,2,2,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,30.0,574,6347,4313,-1,1,0,0,
|
||||
133.2,metin2_map_a1,28,60,29.9,60.0,60.0,30,28.87,36.72,37.90,6,0,13.90,13.69,0.22,0.119,0.178,1.474,0.807,0.719,11.152,9.274,0.000,12.187,50.1,36.0,0.139,14.83,3.90,0.29,0.04,9.75,1.416,0.000,4.073,0.703,26.64,232,64,26,296790,24.00,20.5,0.00,0.0,1,2,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,574,6835,4313,-1,1,0,0,
|
||||
135.2,metin2_map_a1,28,61,30.0,60.0,59.9,30,28.23,37.30,40.75,10,0,13.37,13.17,0.19,0.145,0.195,1.370,0.750,0.628,10.791,9.046,0.000,11.805,50.1,36.0,0.125,14.74,4.48,0.24,0.03,9.62,1.437,0.000,4.223,0.638,24.96,232,64,26,296790,24.00,20.5,0.00,0.0,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,574,6835,4313,-1,1,0,0,
|
||||
137.3,metin2_map_a1,28,61,30.2,60.0,60.0,30,28.43,33.42,41.59,4,0,13.72,13.48,0.24,0.116,0.177,1.407,0.754,0.697,11.036,9.108,0.000,11.982,50.1,36.0,0.114,14.60,4.09,0.27,0.03,9.54,1.408,0.000,4.190,0.579,26.83,232,64,26,296790,24.00,20.5,0.00,0.0,1,2,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,574,6835,4313,-1,1,0,0,
|
||||
139.3,metin2_map_a1,28,60,29.9,60.0,59.9,30,28.54,33.83,40.57,3,0,13.62,13.40,0.22,0.122,0.199,1.433,0.789,0.699,10.910,9.027,0.000,11.938,50.1,36.0,0.123,14.79,4.14,0.36,0.08,9.71,1.448,0.000,4.071,0.635,27.07,232,64,26,296790,24.00,20.5,0.00,0.0,2,1,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,30.0,574,6835,4313,-1,1,0,0,
|
||||
141.3,metin2_map_a1,28,61,30.1,60.0,59.9,30,27.78,36.50,43.99,9,0,13.55,13.32,0.24,0.120,0.178,1.535,0.821,0.677,10.769,8.940,0.000,11.838,50.1,36.0,0.113,14.11,4.86,0.29,0.04,9.30,1.452,0.000,3.919,0.582,25.62,232,64,26,296790,24.00,20.5,0.00,0.0,2,1,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,30.0,574,6835,4313,-1,1,0,0,
|
||||
143.3,metin2_map_a1,28,60,29.9,60.0,60.0,30,28.54,33.82,34.91,3,0,13.93,13.71,0.22,0.118,0.204,1.494,0.833,0.726,11.117,9.143,0.000,12.178,50.1,36.0,0.139,14.47,4.14,0.30,0.06,9.39,1.308,0.000,4.124,0.644,27.46,232,64,26,296790,24.00,20.5,0.00,0.0,1,2,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,574,6835,4313,-1,1,0,0,
|
||||
145.3,metin2_map_a1,28,61,30.1,60.0,60.0,30,28.46,33.37,34.92,3,0,13.89,13.69,0.21,0.120,0.209,1.487,0.797,0.750,11.073,9.101,0.000,12.081,50.1,36.0,0.135,14.43,4.18,0.26,0.04,9.27,1.282,0.000,4.224,0.642,27.59,232,64,26,296790,24.00,20.5,0.00,0.0,0,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4313,-1,1,0,0,
|
||||
147.3,metin2_map_a1,28,60,30.0,60.0,59.9,30,27.92,36.23,37.63,6,0,13.24,12.97,0.27,0.129,0.198,1.398,0.747,0.695,10.518,8.720,0.000,11.519,50.1,36.0,0.147,14.53,4.70,0.31,0.03,9.78,1.586,0.000,3.802,0.623,25.43,232,64,26,296790,24.00,20.5,0.00,0.0,2,2,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,30.0,575,6417,4313,-1,1,0,0,
|
||||
149.4,metin2_map_a1,28,61,30.0,60.0,59.9,30,28.20,33.92,35.89,5,0,13.83,13.51,0.32,0.130,0.226,1.509,0.832,0.794,10.802,8.949,0.000,11.880,50.1,36.0,0.118,14.26,4.33,0.28,0.04,9.35,1.339,0.000,4.096,0.521,27.50,232,64,26,296790,24.00,20.5,0.00,0.0,0,1,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4313,-1,1,0,0,
|
||||
151.4,metin2_map_a1,28,60,30.0,60.0,60.0,30,27.39,33.10,38.53,2,0,13.54,13.18,0.36,0.140,0.197,1.480,0.822,0.756,10.557,8.690,0.000,11.639,50.1,36.0,0.129,13.73,5.44,0.28,0.04,9.17,1.369,0.000,3.663,0.608,26.59,232,64,26,296790,24.00,20.5,0.00,0.0,1,2,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4313,-1,1,0,0,
|
||||
153.4,metin2_map_a1,28,60,29.5,60.0,59.9,30,29.33,38.77,42.72,8,0,14.59,14.23,0.36,0.124,0.225,1.630,0.892,0.829,11.376,9.287,0.000,12.490,50.1,36.0,0.139,14.60,3.70,0.29,0.03,9.50,1.375,0.000,4.150,0.641,27.75,232,64,26,296790,24.00,20.5,0.00,0.0,0,1,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,575,6408,4313,-1,1,0,0,
|
||||
155.4,metin2_map_a1,28,60,30.0,60.0,60.0,30,27.72,34.25,35.89,4,0,13.84,13.45,0.39,0.130,0.221,1.504,0.812,0.803,10.742,8.849,0.000,11.815,50.1,36.0,0.128,13.75,4.98,0.29,0.03,9.01,1.310,0.000,3.880,0.558,27.55,232,64,26,296790,24.00,20.5,0.00,0.0,1,2,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,575,6347,4313,-1,1,0,0,
|
||||
157.4,metin2_map_a1,28,60,30.0,60.0,60.0,30,28.43,36.52,39.69,7,0,13.52,13.12,0.41,0.123,0.212,1.510,0.822,0.726,10.492,8.707,0.000,11.585,50.1,36.0,0.166,14.74,4.26,0.31,0.05,9.93,1.486,0.000,3.928,0.556,27.04,232,64,26,296790,24.00,20.5,0.00,0.0,2,1,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,30.0,575,6652,4313,-1,1,0,0,
|
||||
159.5,metin2_map_a1,28,61,29.9,60.0,59.9,30,28.42,34.71,35.59,7,0,13.67,13.20,0.47,0.163,0.215,1.558,0.849,0.727,10.493,8.626,0.000,11.594,50.1,36.0,0.137,14.61,4.38,0.29,0.04,9.66,1.410,0.000,4.090,0.558,26.20,232,64,26,296790,24.00,20.5,0.00,0.0,0,1,1113/1113/1113/1113/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4313,-1,1,0,0,
|
||||
161.5,metin2_map_a1,28,61,30.1,60.0,60.1,30,28.27,32.49,35.28,3,0,13.77,13.24,0.53,0.164,0.222,1.758,0.926,0.775,10.276,8.517,0.000,11.618,50.1,36.0,0.134,14.37,4.20,0.28,0.03,9.36,1.386,0.000,4.183,0.538,26.93,232,64,26,296790,24.00,20.5,0.00,0.0,1,2,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4313,-1,1,0,0,
|
||||
163.5,metin2_map_a1,28,60,30.0,60.0,59.9,30,27.73,37.33,39.20,5,0,13.67,13.23,0.45,0.147,0.279,1.666,0.913,0.759,10.312,8.551,0.000,11.583,50.1,36.0,0.135,13.92,5.00,0.25,0.04,9.43,1.426,0.000,3.717,0.517,26.09,232,64,26,296790,24.00,20.5,0.00,0.0,2,5,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4313,-1,1,0,0,
|
||||
165.5,metin2_map_a1,28,60,30.0,60.0,60.0,30,29.24,34.06,36.12,4,0,14.74,14.52,0.22,0.150,0.181,1.866,0.988,1.152,11.125,9.312,0.000,12.502,50.1,36.0,0.123,14.38,3.51,0.29,0.03,9.57,1.382,0.000,3.983,0.534,27.57,232,64,26,296790,24.00,20.5,0.00,0.0,1,6,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4313,-1,1,0,0,
|
||||
167.5,metin2_map_a1,28,61,30.1,60.0,60.0,30,28.73,34.20,43.45,5,0,13.90,13.73,0.17,0.122,0.181,1.468,0.783,0.853,11.064,9.205,0.000,12.085,50.1,36.0,0.136,14.70,3.84,0.29,0.03,9.87,1.415,0.000,4.005,0.517,26.77,232,64,26,296790,24.00,20.5,0.00,0.0,2,2,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4313,-1,1,0,0,
|
||||
169.5,metin2_map_a1,28,60,29.9,60.0,60.1,30,29.14,35.81,39.71,8,0,14.34,14.14,0.20,0.120,0.204,1.599,0.813,0.893,11.285,9.398,0.000,12.397,50.1,36.0,0.120,14.67,3.60,0.27,0.04,9.96,1.455,0.000,3.948,0.483,27.23,232,64,26,296790,24.00,20.5,0.00,0.0,2,1,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4313,-1,1,0,0,
|
||||
171.5,metin2_map_a1,28,61,30.0,60.0,60.0,30,28.85,33.82,37.45,5,0,14.46,14.24,0.22,0.119,0.190,1.369,0.732,0.728,11.765,9.920,0.000,12.710,50.1,36.0,0.123,14.27,3.89,0.34,0.04,9.64,1.303,0.000,3.772,0.507,27.57,232,64,26,296790,24.00,20.5,0.00,0.0,2,1,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4313,-1,1,0,0,
|
||||
173.6,metin2_map_a1,28,61,30.0,60.0,60.0,30,27.96,33.25,37.95,3,0,13.48,13.22,0.26,0.112,0.165,1.315,0.683,0.655,10.923,9.145,0.000,11.784,50.1,36.0,0.121,14.36,4.77,0.28,0.04,9.82,1.303,0.000,3.728,0.531,26.53,232,64,26,296790,24.00,20.5,0.00,0.0,1,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4313,-1,1,0,0,
|
||||
175.6,metin2_map_a1,28,60,30.0,60.0,60.0,30,28.68,33.59,35.85,4,0,14.16,13.80,0.36,0.113,0.180,1.409,0.771,0.714,11.344,9.494,0.000,12.342,50.1,36.0,0.129,14.38,4.10,0.32,0.05,9.64,1.415,0.000,3.866,0.532,27.41,232,64,26,296790,24.00,20.5,0.00,0.0,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4313,-1,1,0,0,
|
||||
177.6,metin2_map_a1,28,61,30.1,60.0,60.0,30,27.93,32.23,32.99,0,0,13.90,13.66,0.24,0.121,0.165,1.416,0.750,0.695,11.228,9.353,0.000,12.180,50.1,36.0,0.123,13.91,4.75,0.27,0.04,9.36,1.318,0.000,3.785,0.477,27.66,232,64,26,296790,24.00,20.5,0.00,0.0,2,3,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4312,-1,1,0,0,
|
||||
179.6,metin2_map_a1,28,60,30.0,60.0,60.0,30,27.01,32.66,34.67,1,0,12.69,12.54,0.15,0.132,0.163,1.273,0.682,0.686,10.243,8.481,0.000,11.128,50.1,36.0,0.115,14.20,5.75,0.27,0.03,9.28,1.409,0.000,4.142,0.502,26.13,232,64,26,296790,24.00,20.5,0.00,0.0,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,575,6530,4312,-1,1,0,0,
|
||||
181.6,metin2_map_a1,28,61,30.0,60.0,60.0,30,28.37,32.49,35.13,3,0,13.81,13.63,0.17,0.109,0.166,1.367,0.721,0.783,11.166,9.324,0.000,12.059,50.1,36.0,0.127,14.43,4.42,0.28,0.05,9.65,1.402,0.000,3.966,0.526,27.11,232,64,26,296790,24.00,20.5,0.00,0.0,2,0,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4312,-1,1,0,0,
|
||||
183.6,metin2_map_a1,28,60,30.0,60.0,60.0,30,27.71,31.24,32.55,0,0,13.28,13.12,0.16,0.109,0.183,1.248,0.674,0.679,10.866,8.973,0.000,11.679,50.0,36.0,0.152,14.27,5.05,0.29,0.04,9.47,1.294,0.000,3.964,0.534,26.79,232,64,26,296790,24.00,20.5,0.00,0.0,1,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4312,-1,1,0,0,
|
||||
185.7,metin2_map_a1,28,61,30.0,60.0,60.1,30,28.72,35.88,43.22,6,0,13.55,13.30,0.24,0.139,0.174,1.376,0.758,0.685,10.887,9.005,0.000,11.845,50.1,36.0,0.145,15.03,4.00,0.29,0.03,9.93,1.388,0.000,4.247,0.551,26.57,232,64,26,296790,24.00,20.5,0.00,0.0,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4312,-1,1,0,0,
|
||||
187.7,metin2_map_a1,28,61,30.1,60.0,60.1,30,27.52,33.14,35.67,3,0,13.26,13.04,0.22,0.114,0.188,1.350,0.729,0.701,10.650,8.859,0.000,11.617,50.1,36.0,0.149,14.11,5.19,0.28,0.03,9.51,1.357,0.000,3.805,0.483,25.91,232,64,26,296790,24.00,20.5,0.00,0.0,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4312,-1,1,0,0,
|
||||
189.7,metin2_map_a1,28,61,29.9,60.0,59.9,30,28.01,33.31,35.40,3,0,13.07,12.87,0.20,0.132,0.184,1.312,0.706,0.673,10.528,8.658,0.000,11.424,50.1,36.0,0.121,14.82,4.71,0.29,0.04,9.64,1.326,0.000,4.218,0.652,26.98,232,64,26,296790,24.00,20.5,0.00,0.0,2,1,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4312,-1,1,0,0,
|
||||
191.8,metin2_map_a1,28,61,30.1,60.0,60.0,30,28.50,34.44,39.90,9,0,13.64,13.47,0.17,0.117,0.177,1.440,0.790,0.649,11.040,8.963,0.000,12.048,50.1,36.0,0.137,14.72,4.18,0.30,0.03,9.78,1.453,0.000,4.079,0.552,26.46,232,64,26,296790,24.00,20.5,0.00,0.0,1,1,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4312,-1,1,0,0,
|
||||
193.8,metin2_map_a1,28,60,30.0,60.0,60.0,30,27.00,35.24,36.93,5,0,12.78,12.58,0.21,0.117,0.198,1.430,0.783,0.674,10.123,8.421,0.000,11.189,50.1,36.0,0.106,14.11,5.67,0.26,0.04,9.15,1.327,0.000,4.073,0.616,24.98,232,64,26,296790,24.00,20.5,0.00,0.0,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4312,-1,1,0,0,
|
||||
195.8,metin2_map_a1,28,61,30.1,60.0,60.0,30,26.75,32.23,36.09,1,0,12.80,12.61,0.19,0.133,0.186,1.316,0.709,0.673,10.264,8.474,0.000,11.220,50.1,36.0,0.118,13.83,5.84,0.26,0.03,8.83,1.283,0.000,4.242,0.485,25.70,232,64,26,296790,24.00,20.5,0.00,0.0,0,1,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,575,6774,4312,-1,1,0,0,
|
||||
197.8,metin2_map_a1,28,60,30.0,60.0,60.0,30,28.52,34.20,36.37,6,0,13.56,13.32,0.24,0.130,0.194,1.492,0.802,0.744,10.706,8.784,0.000,11.723,50.1,36.0,0.120,14.84,4.22,0.31,0.03,9.86,1.432,0.000,4.116,0.547,27.00,232,64,26,296790,24.00,20.5,0.00,0.0,2,3,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,30.0,575,6556,4312,-1,1,0,0,
|
||||
199.8,metin2_map_a1,28,61,30.0,60.0,60.0,30,28.06,35.54,39.24,6,0,13.47,13.28,0.19,0.131,0.208,1.521,0.817,0.751,10.628,8.765,0.000,11.729,50.1,36.0,0.106,14.49,4.54,0.28,0.03,9.65,1.443,0.000,4.016,0.524,26.18,232,64,26,296790,24.00,20.5,0.00,0.0,1,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4312,-1,1,0,0,
|
||||
201.8,metin2_map_a1,28,60,29.9,60.0,60.0,30,28.29,34.05,34.78,4,0,13.91,13.73,0.18,0.120,0.218,1.438,0.770,0.809,11.098,9.099,0.000,12.097,50.1,36.0,0.119,14.27,4.47,0.28,0.03,9.31,1.314,0.000,4.090,0.577,27.29,232,64,26,296790,24.00,20.5,0.00,0.0,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,575,6835,4312,-1,1,0,0,
|
||||
203.9,metin2_map_a1,28,61,30.0,60.0,60.0,30,28.23,35.14,40.38,6,0,13.73,13.44,0.29,0.128,0.226,1.543,0.810,0.770,10.740,8.749,0.000,11.848,50.1,36.0,0.137,14.36,4.46,0.27,0.04,9.64,1.482,0.000,3.873,0.546,26.62,232,64,26,296790,24.00,20.5,0.00,0.0,0,0,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,575,6591,4312,-1,1,0,0,
|
||||
205.9,metin2_map_a1,28,61,30.1,60.0,60.0,30,27.71,32.13,34.95,2,0,13.91,13.54,0.36,0.141,0.222,1.522,0.813,0.792,10.827,8.993,0.000,11.946,50.1,36.0,0.119,13.68,4.88,0.28,0.04,9.01,1.308,0.000,3.839,0.534,27.37,232,64,26,296790,24.00,20.5,0.00,0.0,2,0,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,30.0,575,6347,4312,-1,1,0,0,
|
||||
207.9,metin2_map_a1,28,60,29.8,60.0,60.0,30,28.62,33.89,37.47,4,0,13.81,13.48,0.33,0.137,0.210,1.548,0.851,0.758,10.783,8.895,0.000,11.887,50.1,36.0,0.136,14.67,4.13,0.26,0.03,9.86,1.550,0.000,4.030,0.512,26.48,232,64,26,296790,24.00,20.5,0.00,0.0,1,7,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,575,6486,4312,-1,1,0,0,
|
||||
209.9,metin2_map_a1,28,61,30.1,60.0,60.0,30,28.28,33.84,36.25,6,0,14.17,13.71,0.46,0.216,0.226,1.746,0.948,0.763,10.714,8.932,0.000,12.085,50.1,36.0,0.125,13.99,4.19,0.28,0.04,9.28,1.338,0.000,3.917,0.503,27.49,232,64,26,296790,24.00,20.5,0.00,0.0,2,1,1401/1401/1401/1401/1958/1958/1958/1958,1843/2208,0,30.0,575,6835,4312,-1,1,0,0,
|
||||
|
@@ -0,0 +1,50 @@
|
||||
# mt_native_render perf log 20261001-140000
|
||||
# device=Adreno (TM) 512 present_mode=FIFO msaa=2 render_scale=0.750000 size=2280x1080 gpu_skinning=1 terrain=1
|
||||
# per-frame averages over each 2 s window; *_ms game sections run on the script thread inside app_ms; py_ms includes update_game/render_game
|
||||
t_s,map,actors,frames,fps,refresh_hz,render_hz,fps_cap,frame_ms,frame_p95_ms,frame_max_ms,jank33,jank50,app_ms,process_ms,handoff_ms,net_ms,camera_ms,ui_update_ms,update_game_ms,render_begin_ms,ui_render_ms,render_game_ms,shadow_raster_ms,py_ms,py_calls,py_missing,host_ms,render_ms,pace_ms,sync_ms,fence_ms,prepare_ms,geo_upload_ms,tex_upload_ms,submit_ms,present_ms,gpu_ms,draws,skinned_draws,ui_batches,vertices,geo_uploads,geo_kb,tex_uploads,tex_kb,script_cpu,main_cpu,cpu_mhz,cpu_max_mhz,thermal,batt_c,rss_mb,batt_ma,batt_mv,power_mw,plugged,fps_mode,idle,last_texture
|
||||
# hitch t=0.73 frame=196.0 app=14.9 process=14.8 net=0.1 camera=0.2 ui_update=2.7 update_game=0.6 ui_render=11.1 render_game=9.5 shadow=0.0 py=13.4 host=0.1 render=181.0 sync=0.3 prepare=179.0 geo_upload=2.7(24) tex_upload=0.1(1, 16 KB) submit=1.5 present=0.2
|
||||
2.0,metin2_map_a1,28,55,27.4,60.0,-1.0,30,31.86,36.57,195.99,10,1,14.25,13.77,0.48,0.176,0.290,1.664,0.822,0.690,10.886,8.982,0.000,12.167,53.1,37.0,0.129,17.47,3.95,0.39,0.03,12.02,1.346,0.048,3.909,0.623,25.69,241,66,31,300720,23.22,8.2,0.22,7.8,1,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,562,6696,4312,-1,1,0,0,d:\ymir work\ui\pattern\stgauge\06.tga
|
||||
4.0,metin2_map_a1,28,61,30.2,60.0,60.0,30,28.88,38.89,43.03,8,0,14.36,13.90,0.46,0.216,0.250,1.650,0.842,0.685,11.060,9.070,0.000,12.300,53.1,37.0,0.118,14.40,3.55,0.39,0.03,9.29,1.408,0.000,4.100,0.611,25.67,241,66,31,300150,23.92,8.4,0.00,0.0,3,1,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,30.0,562,6591,4312,-1,1,0,0,d:\ymir work\ui\pattern\stgauge\06.tga
|
||||
6.0,metin2_map_a1,28,60,30.0,60.0,60.0,30,29.15,36.34,38.89,7,0,14.58,14.19,0.39,0.156,0.367,1.671,0.861,0.864,11.091,9.222,0.000,12.437,53.1,37.0,0.116,14.46,3.53,0.32,0.04,9.38,1.464,0.000,4.156,0.586,26.77,239,66,28,300142,24.03,8.4,0.00,0.0,1,1,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,30.0,561,6774,4312,-1,1,0,0,
|
||||
8.1,metin2_map_a1,28,61,29.9,60.0,59.9,30,28.95,34.71,37.84,9,0,14.24,14.03,0.21,0.185,0.256,1.542,0.752,0.818,11.193,9.383,0.000,12.378,50.1,36.0,0.121,14.59,3.93,0.30,0.03,9.56,1.502,0.000,4.123,0.588,26.39,239,66,25,299857,23.67,8.3,0.00,0.0,2,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,561,6347,4312,-1,1,0,0,
|
||||
10.1,metin2_map_a1,28,61,30.0,60.0,60.0,30,29.89,34.88,37.50,7,0,15.15,14.91,0.23,0.291,0.231,1.597,0.852,0.903,11.844,9.966,0.000,13.031,50.1,36.0,0.113,14.63,2.71,0.30,0.04,9.48,1.533,0.000,4.262,0.568,27.62,240,66,25,299861,24.13,8.5,0.00,0.0,1,2,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,561,6347,4312,-1,1,0,0,
|
||||
12.1,metin2_map_a1,28,61,30.3,60.0,60.0,30,24.24,32.51,35.65,2,0,12.34,12.13,0.21,0.167,0.192,1.254,0.662,0.634,9.836,8.230,0.000,10.762,50.1,36.0,0.115,11.78,8.28,0.26,0.04,7.78,1.156,0.000,3.237,0.496,26.94,238,66,25,299853,23.82,8.4,0.00,0.0,4,5,633/633/633/633/2208/2208/2208/2208,1843/2208,0,30.0,561,6417,4312,-1,1,0,0,
|
||||
14.1,metin2_map_a1,28,60,29.7,60.0,60.0,30,16.67,32.32,37.60,2,0,8.47,8.23,0.24,0.109,0.151,0.909,0.466,0.442,6.589,5.504,0.000,7.298,50.1,36.0,0.056,8.14,16.39,0.14,0.02,5.65,0.742,0.000,2.026,0.315,25.04,239,66,25,299857,23.70,8.3,0.00,0.0,1,2,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,30.0,561,6835,4312,-1,1,0,0,
|
||||
16.2,metin2_map_a1,28,61,30.1,60.0,60.0,30,29.77,34.18,36.15,5,0,15.08,14.78,0.30,0.136,0.242,1.383,0.769,0.735,12.244,10.215,0.000,13.244,50.1,36.0,0.109,14.58,2.92,0.27,0.04,9.69,1.614,0.000,3.950,0.661,27.79,240,66,25,299861,24.15,8.5,0.00,0.0,1,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,561,6835,4312,-1,1,0,0,
|
||||
18.2,metin2_map_a1,28,60,30.0,60.0,60.0,30,29.77,36.00,36.80,6,0,15.07,14.74,0.34,0.122,0.232,1.375,0.748,0.650,12.319,10.427,0.000,13.333,50.1,36.0,0.115,14.59,2.91,0.30,0.04,9.67,1.437,0.000,4.044,0.565,27.75,237,66,25,299564,23.80,8.4,0.00,0.0,2,0,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,561,6835,4312,-1,1,0,0,
|
||||
20.2,metin2_map_a1,28,60,29.9,60.0,60.0,30,30.06,34.40,36.26,6,0,15.36,15.16,0.21,0.148,0.245,1.491,0.812,0.683,12.553,10.497,0.000,13.650,50.1,36.0,0.108,14.59,2.76,0.29,0.04,9.48,1.443,0.000,4.108,0.694,27.82,238,66,25,299568,23.70,8.3,0.00,0.0,2,0,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,30.0,561,6835,4312,-1,1,0,0,
|
||||
22.2,metin2_map_a1,28,61,30.1,60.0,60.0,30,28.65,32.58,35.03,3,0,14.69,14.41,0.28,0.112,0.201,1.395,0.761,0.743,11.926,10.036,0.000,12.963,50.1,36.0,0.113,13.85,3.87,0.30,0.04,9.10,1.456,0.000,3.859,0.577,27.53,239,66,25,299572,24.15,8.5,0.00,0.0,1,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,561,6835,4312,-1,1,0,0,
|
||||
24.2,metin2_map_a1,28,60,29.9,60.0,59.9,30,28.58,34.14,37.20,6,0,14.12,13.85,0.27,0.116,0.191,1.362,0.751,0.680,11.461,9.683,0.000,12.460,50.1,36.0,0.124,14.34,4.20,0.28,0.05,9.34,1.388,0.000,4.134,0.569,26.58,237,66,25,299564,23.80,8.4,0.00,0.0,2,1,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,561,6835,4312,-1,1,0,0,
|
||||
26.2,metin2_map_a1,28,60,30.0,60.0,60.0,30,28.41,33.01,34.14,2,0,14.15,13.95,0.20,0.110,0.185,1.400,0.763,0.668,11.545,9.698,0.000,12.549,50.0,36.0,0.140,14.12,4.33,0.28,0.04,9.07,1.344,0.000,4.235,0.523,27.75,238,66,25,299568,23.70,8.3,0.00,0.0,2,1,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,561,6835,4312,-1,1,0,0,
|
||||
28.2,metin2_map_a1,28,60,29.9,60.0,60.0,30,28.91,33.50,35.09,5,0,14.09,13.92,0.17,0.123,0.179,1.414,0.771,0.658,11.499,9.615,0.000,12.503,50.1,36.0,0.121,14.70,3.98,0.28,0.04,9.65,1.451,0.000,4.126,0.635,27.74,239,66,25,299572,24.17,8.5,0.00,0.0,2,5,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,561,6835,4312,-1,1,0,0,
|
||||
30.2,metin2_map_a1,28,60,30.0,60.0,60.0,30,29.19,35.69,36.16,10,0,14.32,14.03,0.29,0.175,0.184,1.504,0.845,0.692,11.435,9.557,0.000,12.568,50.1,36.0,0.126,14.74,3.37,0.28,0.04,9.47,1.514,0.000,4.280,0.687,25.45,232,66,25,298119,23.78,8.4,0.00,0.0,1,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,561,6835,4312,-1,1,0,0,
|
||||
32.2,metin2_map_a1,28,61,30.3,60.0,60.1,30,23.99,36.89,40.73,5,0,11.34,11.04,0.30,0.106,0.190,1.164,0.627,0.536,9.012,7.531,0.000,9.919,50.1,36.0,0.105,12.54,8.30,0.26,0.04,8.34,1.259,0.009,3.422,0.504,24.71,238,66,27,299568,23.69,8.3,0.03,8.4,5,7,1113/1113/1113/1113/2208/2208/2208/2208,1843/2208,0,30.0,563,6835,4312,-1,1,0,0,mem:cpu_6@2
|
||||
34.3,metin2_map_a1,28,60,29.5,60.0,60.0,30,15.32,27.39,46.49,1,0,6.48,6.23,0.25,0.065,0.123,0.720,0.369,0.346,4.948,4.138,0.000,5.501,50.1,36.0,0.067,8.78,18.11,0.18,0.03,6.16,0.837,0.000,2.114,0.317,25.50,239,66,27,299572,24.13,8.5,0.00,0.0,1,0,1536/1536/1536/1536/2150/2150/2150/2150,1843/2208,0,30.0,562,6347,4312,-1,1,0,0,mem:cpu_6@2
|
||||
36.3,metin2_map_a1,28,62,30.5,60.0,60.0,30,17.94,30.76,39.13,2,0,8.58,8.32,0.27,0.081,0.137,0.941,0.453,0.458,6.669,5.347,0.000,7.174,80.8,66.0,0.071,9.29,14.34,0.18,0.02,6.31,0.917,0.040,2.370,0.416,26.22,238,66,99,299853,23.81,8.8,0.21,10.8,4,6,633/633/633/633/2208/2208/2208/2208,1843/2208,0,30.0,563,6347,4312,-1,1,0,0,d:\ymir work\ui\public.dds
|
||||
38.3,metin2_map_a1,28,60,29.7,60.0,60.1,30,25.15,33.87,34.80,3,0,12.13,11.89,0.24,0.100,0.171,1.341,0.684,0.581,9.665,7.177,0.000,10.148,84.1,69.0,0.106,12.92,7.93,0.27,0.03,8.19,1.309,0.000,3.904,0.535,27.73,240,66,99,299861,23.80,8.4,0.00,0.0,2,1,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,563,6765,4312,-1,1,0,0,d:\ymir work\ui\public.dds
|
||||
40.3,metin2_map_a1,28,61,30.0,60.0,60.0,30,29.61,34.36,35.17,5,0,14.33,14.06,0.26,0.123,0.197,1.579,0.824,0.692,11.411,8.885,0.000,12.020,84.1,69.0,0.137,15.14,2.95,0.28,0.04,9.47,1.398,0.000,4.679,0.693,27.86,238,66,99,299568,24.13,8.5,0.00,0.0,2,1,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,563,6835,4312,-1,1,0,0,
|
||||
42.4,metin2_map_a1,28,61,30.0,60.0,59.9,30,27.88,34.59,35.59,7,0,13.97,13.71,0.26,0.113,0.178,1.561,0.809,0.716,11.104,8.695,0.000,11.767,84.1,69.0,0.105,13.80,4.79,0.26,0.03,8.89,1.310,0.000,4.132,0.507,26.49,237,66,99,299564,23.70,8.3,0.00,0.0,1,2,1401/1401/902/902/1113/1113/1113/1113,1843/2208,0,30.0,563,6835,4312,-1,1,0,0,
|
||||
44.4,metin2_map_a1,28,59,29.5,60.0,59.8,30,30.87,41.08,43.36,17,0,15.34,15.05,0.29,0.171,0.185,1.538,0.778,0.712,12.408,9.670,0.000,12.946,84.1,69.0,0.154,15.37,2.49,0.25,0.03,9.86,1.473,0.000,4.605,0.640,26.40,238,66,99,299568,23.76,8.4,0.00,0.0,1,2,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,30.0,563,6835,4312,-1,1,0,0,
|
||||
46.4,metin2_map_a1,28,60,29.9,60.0,60.1,30,28.61,37.77,38.55,9,0,13.82,13.52,0.30,0.120,0.169,1.536,0.774,0.708,10.947,8.684,0.000,11.610,84.1,69.0,0.105,14.69,4.20,0.25,0.03,9.37,1.480,0.000,4.477,0.571,26.39,238,66,99,299568,24.15,8.5,0.00,0.0,2,1,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,563,6835,4312,-1,1,0,0,
|
||||
48.4,metin2_map_a1,28,61,30.0,60.0,59.9,30,28.86,34.89,40.08,7,0,14.05,13.87,0.18,0.110,0.191,1.547,0.801,0.659,11.329,8.983,0.000,12.011,84.1,69.0,0.151,14.66,3.83,0.30,0.03,9.19,1.412,0.000,4.523,0.635,26.50,237,66,99,299564,23.72,8.3,0.00,0.0,1,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,563,6835,4312,-1,1,0,0,
|
||||
50.4,metin2_map_a1,28,60,29.9,60.0,59.9,30,29.07,34.00,36.46,8,0,13.86,13.67,0.19,0.120,0.172,1.553,0.805,0.693,11.085,8.588,0.000,11.700,84.1,69.0,0.110,15.10,3.74,0.26,0.03,9.36,1.411,0.013,4.846,0.613,25.75,239,66,99,299572,23.88,8.4,0.02,4.3,2,1,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,564,6835,4312,-1,1,0,0,mem:cpu_6@2
|
||||
52.4,metin2_map_a1,28,61,30.1,60.0,59.9,30,29.28,36.47,40.68,7,0,14.25,14.00,0.25,0.115,0.211,1.506,0.787,0.674,11.463,8.923,0.000,12.003,84.1,69.0,0.123,14.90,3.32,0.28,0.03,9.55,1.489,0.000,4.500,0.549,27.35,233,66,99,298123,24.10,8.5,0.00,0.0,3,0,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,563,6835,4312,-1,1,0,0,mem:cpu_6@2
|
||||
54.4,metin2_map_a1,28,60,29.8,60.0,60.0,30,28.97,35.46,43.21,9,0,14.08,13.86,0.22,0.122,0.198,1.615,0.833,0.703,11.184,8.775,0.000,11.875,84.1,69.0,0.118,14.77,3.79,0.25,0.03,9.29,1.476,0.000,4.519,0.699,26.75,232,66,99,298119,23.67,8.3,0.00,0.0,1,0,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,30.0,563,6835,4312,-1,1,0,0,
|
||||
56.5,metin2_map_a1,28,60,29.6,60.0,60.0,30,29.35,41.24,44.54,11,0,14.38,14.12,0.26,0.121,0.174,1.504,0.756,0.707,11.576,9.071,0.000,12.137,84.1,69.0,0.111,14.85,3.70,0.37,0.09,9.43,1.449,0.000,4.477,0.558,25.59,234,66,99,298127,23.87,8.4,0.00,0.0,1,0,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,563,6835,4312,-1,1,0,0,
|
||||
58.5,metin2_map_a1,28,60,29.7,60.0,60.0,30,29.56,35.33,39.60,8,0,14.36,14.19,0.17,0.121,0.179,1.394,0.698,0.788,11.661,9.132,0.000,12.110,84.0,69.0,0.150,15.05,3.45,0.31,0.03,9.35,1.421,0.000,4.767,0.600,28.11,233,66,99,298123,24.10,8.5,0.00,0.0,2,5,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,30.0,563,6486,4312,-1,1,0,0,
|
||||
60.5,metin2_map_a1,28,61,30.2,60.0,60.0,30,28.82,36.31,40.53,9,0,14.00,13.81,0.19,0.144,0.178,1.467,0.738,0.691,11.289,8.820,0.000,11.813,84.1,69.0,0.127,14.68,3.61,0.29,0.04,9.16,1.489,0.000,4.602,0.624,26.28,232,66,99,298119,23.64,8.3,0.00,0.0,0,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,563,6347,4312,-1,1,0,0,
|
||||
62.5,metin2_map_a1,28,61,30.1,60.0,60.0,30,28.91,35.17,38.04,11,0,14.51,14.31,0.20,0.126,0.177,1.558,0.782,0.736,11.671,9.087,0.000,12.237,84.1,69.0,0.117,14.28,3.67,0.27,0.03,9.25,1.420,0.000,4.299,0.461,26.45,234,66,99,298127,24.02,8.4,0.00,0.0,2,1,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,30.0,563,6591,4312,-1,1,0,0,
|
||||
64.6,metin2_map_a1,28,61,29.9,60.0,59.9,30,29.08,35.11,40.01,11,0,14.27,13.99,0.28,0.128,0.191,1.472,0.731,0.710,11.447,8.750,0.000,11.905,84.1,69.0,0.138,14.67,3.57,0.26,0.04,9.24,1.404,0.000,4.609,0.551,27.13,232,66,99,298119,23.95,8.4,0.00,0.0,2,1,1113/1113/1113/1113/1113/1113/1113/1113,1843/2208,0,30.0,563,6835,4312,-1,1,0,0,
|
||||
66.6,metin2_map_a1,28,60,30.0,60.0,60.0,30,28.14,35.95,39.26,5,0,13.90,13.71,0.19,0.116,0.175,1.443,0.716,0.767,11.161,8.733,0.000,11.669,84.1,69.0,0.123,14.12,4.64,0.27,0.04,8.92,1.360,0.000,4.396,0.522,25.79,232,66,99,298119,23.67,8.3,0.00,0.0,1,3,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,563,6835,4312,-1,1,0,0,
|
||||
68.6,metin2_map_a1,28,60,29.9,60.0,59.9,30,28.44,33.08,34.84,2,0,14.16,13.93,0.22,0.123,0.203,1.529,0.740,0.827,11.213,8.713,0.000,11.766,84.1,69.0,0.113,14.17,4.28,0.29,0.03,8.88,1.377,0.000,4.449,0.531,27.64,234,66,99,298127,23.93,8.4,0.00,0.0,0,1,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,563,6835,4312,-1,1,0,0,
|
||||
70.6,metin2_map_a1,28,60,29.5,60.0,59.9,30,29.37,40.35,41.86,13,0,14.68,14.45,0.23,0.128,0.186,1.553,0.801,0.740,11.797,9.129,0.000,12.379,84.1,69.0,0.113,14.58,3.80,0.30,0.04,9.37,1.470,0.000,4.328,0.559,26.63,232,66,99,298119,24.07,8.5,0.00,0.0,1,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,563,6835,4312,-1,1,0,0,
|
||||
72.6,metin2_map_a1,28,61,30.0,60.0,60.0,30,29.06,34.45,37.39,7,0,14.17,13.91,0.26,0.116,0.205,1.637,0.803,0.754,11.164,8.787,0.000,11.820,84.1,69.0,0.118,14.77,3.55,0.27,0.03,9.39,1.512,0.000,4.565,0.523,26.83,233,66,99,298123,23.69,8.3,0.00,0.0,1,2,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,30.0,563,6835,4312,-1,1,0,0,
|
||||
74.6,metin2_map_a1,28,58,28.9,60.0,59.9,30,31.52,42.97,47.76,17,0,15.31,15.13,0.18,0.184,0.205,1.693,0.835,0.731,12.278,9.619,0.000,12.974,84.1,69.0,0.158,16.05,2.39,0.32,0.05,10.23,1.606,0.000,4.882,0.614,26.89,234,66,99,298127,24.12,8.5,0.00,0.0,2,0,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,563,6835,4312,-1,1,0,0,
|
||||
76.6,metin2_map_a1,28,60,30.0,60.0,60.0,30,28.94,34.99,37.00,6,0,14.04,13.85,0.19,0.129,0.170,1.438,0.683,0.694,11.382,9.062,0.000,11.944,84.1,69.0,0.116,14.79,3.85,0.22,0.03,9.26,1.484,0.000,4.812,0.486,25.87,232,66,99,298119,23.85,8.4,0.00,0.0,2,1,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,563,6765,4312,-1,1,0,0,
|
||||
78.7,metin2_map_a1,28,60,29.9,60.0,60.0,30,27.60,34.27,36.90,5,0,13.53,13.28,0.24,0.113,0.155,1.367,0.648,0.636,10.980,8.706,0.000,11.484,84.1,69.0,0.124,13.95,5.13,0.22,0.03,8.74,1.332,0.000,4.517,0.460,26.44,232,66,99,298119,23.67,8.3,0.00,0.0,2,6,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,563,6591,4312,-1,1,0,0,
|
||||
80.7,metin2_map_a1,28,61,30.2,60.0,60.0,30,29.29,34.02,35.27,7,0,14.49,14.26,0.23,0.119,0.174,1.425,0.711,0.713,11.789,9.056,0.000,12.198,84.1,69.0,0.117,14.68,3.20,0.29,0.04,9.23,1.380,0.000,4.601,0.550,28.40,234,66,99,298127,24.05,8.5,0.00,0.0,1,2,1843/1843/1843/1843/1113/1113/1113/1113,1843/2208,0,30.0,563,6835,4312,-1,1,0,0,
|
||||
82.7,metin2_map_a1,28,60,30.0,60.0,60.0,30,29.10,33.98,35.32,4,0,14.11,13.94,0.16,0.111,0.182,1.413,0.692,0.694,11.506,8.804,0.000,11.958,84.1,69.0,0.143,14.85,3.60,0.28,0.03,9.54,1.518,0.000,4.494,0.501,27.85,232,66,99,298119,23.93,8.4,0.00,0.0,2,1,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,30.0,563,6835,4312,-1,1,0,0,
|
||||
84.7,metin2_map_a1,28,60,30.0,60.0,60.0,30,29.26,34.45,35.86,4,0,14.47,14.20,0.26,0.124,0.198,1.543,0.768,0.738,11.565,9.076,0.000,12.134,84.1,69.0,0.116,14.67,3.47,0.28,0.04,9.31,1.408,0.000,4.504,0.562,27.65,233,66,99,298123,23.70,8.3,0.00,0.0,2,0,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,30.0,563,6556,4312,-1,1,0,0,
|
||||
86.7,metin2_map_a1,28,61,30.0,60.0,60.0,30,28.65,33.87,34.95,5,0,14.18,14.03,0.15,0.125,0.185,1.487,0.738,0.763,11.430,8.898,0.000,11.945,84.0,69.0,0.124,14.35,3.96,0.29,0.04,9.14,1.434,0.000,4.466,0.440,27.41,234,66,99,298127,24.15,8.5,0.00,0.0,1,2,1113/1113/1113/1113/1113/1113/1113/1113,1843/2208,0,30.0,563,6652,4312,-1,1,0,0,
|
||||
88.8,metin2_map_a1,28,61,29.9,60.0,59.9,30,27.95,34.30,36.87,5,0,13.74,13.56,0.17,0.132,0.181,1.498,0.751,0.735,10.979,8.631,0.000,11.609,84.1,69.0,0.108,14.11,4.79,0.30,0.03,8.81,1.354,0.000,4.427,0.563,26.75,232,66,99,298119,23.79,8.4,0.00,0.0,1,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,563,6530,4312,-1,1,0,0,
|
||||
90.8,metin2_map_a1,28,61,30.1,60.0,59.9,30,29.04,36.23,38.77,4,0,14.23,14.04,0.19,0.117,0.220,1.539,0.786,0.716,11.412,8.922,0.000,12.064,84.1,69.0,0.140,14.67,3.53,0.30,0.03,9.21,1.381,0.000,4.626,0.515,27.39,233,66,99,298123,23.69,8.3,0.00,0.0,2,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,30.0,564,6835,4312,-1,1,0,0,
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,63 @@
|
||||
# mt_native_render perf log 20261018-221759
|
||||
# device=Adreno (TM) 512 present_mode=FIFO msaa=2 render_scale=0.750000 size=2280x1080 gpu_skinning=1 terrain=1
|
||||
# per-frame averages over each 2 s window; *_ms game sections run on the script thread inside app_ms; py_ms includes update_game/render_game
|
||||
t_s,map,actors,frames,fps,refresh_hz,render_hz,fps_cap,frame_ms,frame_p95_ms,frame_max_ms,jank33,jank50,app_ms,process_ms,handoff_ms,net_ms,camera_ms,ui_update_ms,update_game_ms,render_begin_ms,ui_render_ms,render_game_ms,shadow_raster_ms,py_ms,py_calls,py_missing,host_ms,render_ms,pace_ms,sync_ms,fence_ms,prepare_ms,geo_upload_ms,tex_upload_ms,submit_ms,present_ms,gpu_ms,draws,skinned_draws,ui_batches,vertices,geo_uploads,geo_kb,tex_uploads,tex_kb,script_cpu,main_cpu,cpu_mhz,cpu_max_mhz,thermal,batt_c,rss_mb,batt_ma,batt_mv,power_mw,plugged,fps_mode,idle,last_texture
|
||||
2.0,,0,58,29.0,60.0,-1.0,30,7.75,10.79,20.33,0,0,3.17,2.09,1.08,0.007,0.396,0.633,0.000,0.080,0.935,0.000,0.000,1.137,21.0,12.0,0.271,4.31,23.78,0.24,0.05,1.10,0.000,0.000,1.830,0.782,20.00,0,0,21,0,0.00,0.0,0.00,0.0,1,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,199,479,4398,-1,1,0,0,
|
||||
4.0,,0,60,30.0,60.0,60.0,30,6.77,10.53,11.25,0,0,2.43,2.01,0.42,0.008,0.402,0.590,0.000,0.070,0.852,0.000,0.000,1.092,21.0,12.0,0.227,4.12,25.15,0.24,0.04,1.11,0.000,0.000,1.853,0.909,22.91,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,199,476,4398,-1,1,0,0,
|
||||
6.0,,0,61,30.0,60.0,60.0,30,7.18,10.73,13.17,0,0,2.81,2.09,0.73,0.009,0.361,0.609,0.000,0.126,0.930,0.000,0.000,1.027,21.0,12.0,0.214,4.16,24.93,0.28,0.05,1.10,0.000,0.000,1.869,0.901,22.87,0,0,21,0,0.00,0.0,0.00,0.0,0,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,199,474,4398,-1,1,0,0,
|
||||
8.1,,0,61,30.0,60.0,60.0,30,9.20,11.93,14.14,0,0,3.74,2.57,1.17,0.007,0.459,0.681,0.000,0.105,1.214,0.000,0.000,1.429,21.0,12.0,0.413,5.05,22.95,0.38,0.09,1.46,0.000,0.000,2.204,0.988,22.95,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,200,472,4398,-1,1,0,0,
|
||||
10.1,,0,61,30.0,60.0,60.0,30,8.51,11.10,18.77,0,0,2.80,2.33,0.48,0.007,0.348,0.552,0.000,0.137,1.165,0.000,0.000,1.105,21.0,12.0,0.302,5.41,23.54,0.34,0.07,1.31,0.000,0.000,2.338,1.401,22.96,0,0,21,0,0.00,0.0,0.00,0.0,1,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,200,471,4398,-1,1,0,0,
|
||||
12.1,,0,61,30.0,60.0,60.0,30,6.98,10.88,11.78,0,0,2.19,1.78,0.41,0.006,0.192,0.512,0.000,0.054,0.986,0.000,0.000,0.959,21.0,12.0,0.231,4.56,25.12,0.25,0.07,1.31,0.000,0.000,2.053,0.938,22.52,0,0,21,0,0.00,0.0,0.00,0.0,2,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,200,473,4398,-1,1,0,0,
|
||||
14.1,,0,60,30.0,60.0,60.0,30,7.67,10.77,11.18,0,0,2.14,1.82,0.32,0.007,0.215,0.583,0.000,0.041,0.943,0.000,0.000,0.988,21.0,12.0,0.320,5.21,24.69,0.31,0.08,1.50,0.000,0.000,2.447,0.936,22.60,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,200,473,4398,-1,1,0,0,
|
||||
16.2,,0,61,30.0,60.0,60.0,30,8.58,11.47,12.26,0,0,2.30,1.84,0.45,0.007,0.293,0.578,0.000,0.056,0.868,0.000,0.000,0.951,21.0,12.0,0.259,6.03,23.55,0.30,0.05,1.88,0.000,0.000,2.803,1.037,22.97,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,200,472,4398,-1,1,0,0,
|
||||
18.2,,0,61,30.1,60.0,60.0,30,7.57,11.75,14.91,0,0,2.20,1.58,0.61,0.008,0.248,0.475,0.000,0.048,0.767,0.000,0.000,0.795,21.0,12.0,0.259,5.12,24.55,0.28,0.05,1.40,0.000,0.000,2.352,1.074,22.94,0,0,21,0,0.00,0.0,0.00,0.0,4,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,200,473,4398,-1,1,0,0,
|
||||
20.2,,0,60,29.9,60.0,60.0,30,7.00,10.90,11.48,0,0,2.12,1.47,0.65,0.006,0.266,0.427,0.000,0.053,0.680,0.000,0.000,0.746,21.0,12.0,0.188,4.69,24.99,0.26,0.07,1.22,0.000,0.000,2.117,1.089,22.93,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,200,473,4398,-1,1,0,0,
|
||||
22.2,,0,60,30.0,60.0,60.0,30,7.56,12.06,13.86,0,0,2.45,2.01,0.44,0.007,0.355,0.656,0.000,0.053,0.890,0.000,0.000,1.144,21.0,12.0,0.276,4.84,24.43,0.28,0.06,1.17,0.000,0.000,2.177,1.203,23.02,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,200,473,4398,-1,1,0,0,
|
||||
24.2,,0,61,30.0,60.0,60.0,30,7.69,12.19,12.95,0,0,2.51,2.06,0.45,0.008,0.313,0.737,0.000,0.100,0.865,0.000,0.000,1.110,21.0,12.0,0.299,4.89,23.93,0.26,0.06,1.08,0.000,0.000,2.397,1.149,23.05,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,200,471,4398,-1,1,0,0,
|
||||
26.3,,0,61,30.0,60.0,60.0,30,7.23,10.76,15.20,0,0,2.26,1.90,0.36,0.007,0.282,0.679,0.000,0.049,0.821,0.000,0.000,0.984,21.0,12.0,0.242,4.72,24.46,0.35,0.05,1.15,0.000,0.000,2.133,1.082,23.05,0,0,21,0,0.00,0.0,0.00,0.0,1,2,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,200,470,4398,-1,1,0,0,
|
||||
28.3,,0,61,30.1,60.0,60.0,30,7.25,10.52,12.64,0,0,2.11,1.73,0.37,0.007,0.261,0.599,0.000,0.049,0.780,0.000,0.000,0.916,21.0,12.0,0.223,4.92,24.62,0.31,0.05,1.40,0.000,0.000,2.133,1.072,23.01,0,0,21,0,0.00,0.0,0.00,0.0,2,2,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,200,469,4398,-1,1,0,0,
|
||||
30.3,,0,60,30.0,60.0,60.0,30,6.06,8.25,11.26,0,0,1.78,1.45,0.33,0.009,0.241,0.358,0.000,0.047,0.754,0.000,0.000,0.718,21.0,12.0,0.205,4.08,25.89,0.27,0.07,1.20,0.000,0.000,1.826,0.766,23.01,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,200,470,4398,-1,1,0,0,
|
||||
32.3,,0,61,30.0,60.0,60.0,30,6.89,8.50,9.04,0,0,1.82,1.54,0.28,0.007,0.259,0.370,0.000,0.049,0.817,0.000,0.000,0.780,21.0,12.0,0.245,4.82,25.08,0.27,0.05,1.20,0.000,0.000,2.541,0.795,23.00,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,200,469,4398,-1,1,0,0,
|
||||
34.4,,0,61,30.0,60.0,60.0,30,6.63,9.93,11.10,0,0,1.71,1.45,0.26,0.007,0.238,0.365,0.000,0.048,0.753,0.000,0.000,0.729,21.0,12.0,0.206,4.72,25.15,0.28,0.06,1.06,0.000,0.000,2.475,0.895,23.00,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,200,470,4398,-1,1,0,0,
|
||||
36.4,,0,60,30.0,60.0,60.0,30,6.48,8.78,9.23,0,0,1.69,1.42,0.27,0.007,0.234,0.365,0.000,0.047,0.732,0.000,0.000,0.695,21.0,12.0,0.223,4.56,25.51,0.29,0.06,1.22,0.000,0.000,2.067,0.987,22.94,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,200,469,4398,-1,1,0,0,
|
||||
38.4,,0,61,30.0,60.0,60.0,30,6.34,8.35,9.64,0,0,1.80,1.51,0.29,0.007,0.244,0.364,0.000,0.048,0.804,0.000,0.000,0.744,21.0,12.0,0.232,4.32,25.47,0.32,0.06,1.17,0.000,0.000,1.861,0.960,23.00,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,200,468,4398,-1,1,0,0,
|
||||
40.4,,0,61,30.0,60.0,60.0,30,6.12,8.09,9.53,0,0,1.65,1.44,0.22,0.007,0.243,0.356,0.000,0.047,0.747,0.000,0.000,0.703,21.0,12.0,0.201,4.27,25.50,0.32,0.07,1.02,0.000,0.000,2.012,0.906,22.95,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,200,470,4398,-1,1,0,0,
|
||||
42.5,,0,61,30.0,60.0,60.0,30,6.35,8.54,10.26,0,0,1.97,1.58,0.40,0.007,0.265,0.394,0.000,0.050,0.815,0.000,0.000,0.773,21.0,12.0,0.237,4.14,25.52,0.27,0.05,1.18,0.000,0.000,1.893,0.788,22.95,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,191,470,4398,-1,1,0,0,
|
||||
44.5,,0,60,30.0,60.0,60.0,30,6.30,9.17,11.70,0,0,1.90,1.50,0.40,0.007,0.262,0.380,0.000,0.047,0.761,0.000,0.000,0.770,21.0,12.0,0.274,4.12,25.70,0.28,0.05,1.35,0.000,0.000,1.715,0.770,22.92,0,0,21,0,0.00,0.0,0.00,0.0,3,3,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,191,467,4398,-1,1,0,0,
|
||||
46.5,,0,60,30.0,60.0,60.0,30,6.79,10.36,13.58,0,0,2.20,1.64,0.56,0.008,0.281,0.449,0.000,0.053,0.800,0.000,0.000,0.831,21.0,12.0,0.239,4.35,25.51,0.29,0.07,1.28,0.000,0.000,1.915,0.864,22.92,0,0,21,0,0.00,0.0,0.00,0.0,0,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,191,468,4398,-1,1,0,0,
|
||||
48.5,,0,61,30.0,60.0,60.0,30,7.11,10.11,10.67,0,0,2.50,1.85,0.65,0.007,0.292,0.459,0.000,0.074,0.954,0.000,0.000,0.911,21.0,12.0,0.287,4.31,24.93,0.33,0.08,1.19,0.000,0.000,1.941,0.850,22.93,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,191,468,4398,-1,1,0,0,
|
||||
50.5,,0,61,30.0,60.0,60.0,30,6.98,8.71,16.40,0,0,2.69,1.96,0.73,0.009,0.278,0.516,0.000,0.056,1.048,0.000,0.000,1.036,21.0,12.0,0.222,4.07,24.98,0.23,0.05,1.11,0.000,0.000,1.798,0.928,22.88,0,0,21,0,0.00,0.0,0.00,0.0,0,0,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,27.0,191,469,4398,-1,1,0,0,
|
||||
52.5,,0,60,30.0,60.0,60.0,30,7.43,10.13,11.51,0,0,3.03,2.15,0.87,0.007,0.451,0.630,0.000,0.117,0.896,0.000,0.000,1.214,21.0,12.0,0.280,4.13,24.65,0.25,0.06,1.11,0.000,0.000,1.880,0.889,22.89,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,191,312,4398,-1,1,0,0,
|
||||
54.5,,0,60,30.0,60.0,60.0,30,8.26,12.54,19.12,0,0,3.40,2.14,1.26,0.021,0.496,0.659,0.000,0.054,0.857,0.000,0.000,1.211,21.0,12.0,0.318,4.54,23.71,0.23,0.06,1.16,0.000,0.000,1.914,1.235,22.88,0,0,21,0,0.00,0.0,0.00,0.0,1,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,191,467,4398,-1,1,0,0,
|
||||
56.5,,0,60,30.0,60.0,60.0,30,8.48,11.99,16.01,0,0,3.52,2.22,1.30,0.007,0.623,0.573,0.000,0.054,0.894,0.000,0.000,1.276,21.0,12.0,0.283,4.68,23.80,0.28,0.06,1.29,0.000,0.000,2.021,1.092,22.90,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,191,464,4398,-1,1,0,0,
|
||||
58.5,,0,60,30.0,60.0,60.0,30,8.62,11.73,12.21,0,0,3.71,2.19,1.52,0.008,0.508,0.520,0.000,0.058,1.035,0.000,0.000,1.148,21.0,12.0,0.342,4.57,23.53,0.39,0.13,1.19,0.000,0.000,1.990,1.001,22.91,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,191,467,4398,-1,1,0,0,
|
||||
60.6,,0,61,30.1,60.0,60.0,30,7.47,10.37,25.72,0,0,2.09,1.71,0.38,0.007,0.304,0.441,0.000,0.057,0.858,0.000,0.000,0.847,21.0,12.0,0.264,5.12,24.71,0.35,0.06,1.65,0.000,0.000,2.004,1.107,22.94,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,191,467,4398,-1,1,0,0,
|
||||
62.6,,0,60,30.0,60.0,60.0,30,7.00,10.19,11.10,0,0,2.07,1.77,0.30,0.007,0.246,0.381,0.000,0.073,1.013,0.000,0.000,0.851,21.0,12.0,0.250,4.68,24.96,0.26,0.06,1.30,0.000,0.000,2.132,0.967,22.97,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,191,466,4398,-1,1,0,0,
|
||||
64.6,,0,61,30.0,60.0,60.0,30,7.57,11.68,12.89,0,0,2.02,1.63,0.39,0.007,0.237,0.395,0.000,0.054,0.885,0.000,0.000,0.835,21.0,12.0,0.271,5.28,24.49,0.25,0.05,1.53,0.000,0.000,2.371,1.121,22.98,0,0,21,0,0.00,0.0,0.00,0.0,0,0,902/902/902/902/1113/1113/1113/1113,1843/2208,0,28.0,191,467,4398,-1,1,0,0,
|
||||
66.6,,0,61,30.0,60.0,60.0,30,7.05,11.38,12.11,0,0,1.82,1.40,0.41,0.006,0.247,0.399,0.000,0.053,0.658,0.000,0.000,0.712,21.0,12.0,0.205,5.02,24.86,0.26,0.04,1.46,0.000,0.000,2.237,1.066,22.73,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,191,465,4398,-1,1,0,0,
|
||||
68.7,,0,61,30.0,60.0,60.0,30,7.87,11.79,13.20,0,0,1.89,1.45,0.45,0.007,0.245,0.412,0.000,0.046,0.698,0.000,0.000,0.721,21.0,12.0,0.252,5.72,24.19,0.35,0.10,1.67,0.000,0.000,2.464,1.224,22.87,0,0,21,0,0.00,0.0,0.00,0.0,1,1,902/902/902/902/1113/1113/1113/1113,1843/2208,0,28.0,191,466,4398,-1,1,0,0,
|
||||
70.7,,0,60,30.0,60.0,60.0,30,8.30,12.65,13.06,0,0,2.69,1.90,0.80,0.007,0.278,0.429,0.000,0.048,1.062,0.000,0.000,0.921,21.0,12.0,0.374,5.23,24.03,0.32,0.09,1.51,0.000,0.000,2.316,1.072,22.96,0,0,21,0,0.00,0.0,0.00,0.0,3,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,465,4398,-1,1,0,0,
|
||||
72.7,,0,61,30.0,60.0,60.0,30,8.37,12.09,12.89,0,0,2.43,1.66,0.77,0.008,0.258,0.490,0.000,0.049,0.799,0.000,0.000,0.900,21.0,12.0,0.224,5.72,23.34,0.35,0.11,1.53,0.000,0.000,2.575,1.263,23.03,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,464,4398,-1,1,0,0,
|
||||
74.7,,0,60,29.9,60.0,60.0,30,8.08,13.07,13.93,0,0,2.39,1.81,0.58,0.008,0.250,0.440,0.000,0.067,0.966,0.000,0.000,0.867,21.0,12.0,0.292,5.40,23.71,0.29,0.06,1.53,0.000,0.000,2.357,1.171,23.02,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,464,4398,-1,1,0,0,
|
||||
76.7,,0,61,30.1,60.0,60.0,30,6.73,10.64,12.40,0,0,2.07,1.64,0.43,0.007,0.249,0.394,0.000,0.056,0.866,0.000,0.000,0.799,21.0,12.0,0.243,4.42,24.83,0.33,0.05,1.05,0.000,0.000,1.930,1.097,23.04,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,463,4398,-1,1,0,0,
|
||||
78.7,,0,60,30.0,60.0,60.0,30,6.61,10.60,10.93,0,0,1.94,1.52,0.42,0.008,0.256,0.403,0.000,0.048,0.769,0.000,0.000,0.768,21.0,12.0,0.238,4.43,25.17,0.28,0.06,1.20,0.000,0.000,1.947,0.951,23.04,0,0,21,0,0.00,0.0,0.00,0.0,2,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,463,4398,-1,1,0,0,
|
||||
80.7,,0,60,30.0,60.0,60.0,30,7.46,12.54,13.47,0,0,1.86,1.57,0.29,0.008,0.236,0.430,0.000,0.050,0.808,0.000,0.000,0.791,21.0,12.0,0.264,5.34,24.03,0.36,0.05,1.58,0.000,0.000,2.163,1.227,22.96,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,465,4398,-1,1,0,0,
|
||||
82.8,,0,61,30.0,60.0,60.0,30,7.16,10.94,14.26,0,0,1.96,1.48,0.47,0.007,0.259,0.405,0.000,0.048,0.719,0.000,0.000,0.739,21.0,12.0,0.222,4.98,24.84,0.39,0.09,1.53,0.000,0.000,2.073,0.975,23.02,0,0,21,0,0.00,0.0,0.00,0.0,0,1,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,28.0,192,463,4398,-1,1,0,0,
|
||||
84.8,,0,61,30.1,60.0,60.0,30,2.36,5.20,8.93,0,0,0.66,0.54,0.12,0.003,0.120,0.142,0.000,0.021,0.236,0.000,0.000,0.266,21.0,12.0,0.064,1.64,30.36,0.10,0.02,0.39,0.000,0.000,0.816,0.324,22.02,0,0,21,0,0.00,0.0,0.00,0.0,6,4,633/633/633/633/2208/2208/2208/2208,1843/2208,0,28.0,192,464,4398,-1,1,0,0,
|
||||
86.8,,0,60,29.9,60.0,60.0,30,6.00,8.60,8.92,0,0,1.60,1.31,0.29,0.007,0.215,0.365,0.000,0.041,0.647,0.000,0.000,0.676,21.0,12.0,0.214,4.19,25.92,0.31,0.04,1.32,0.000,0.000,1.829,0.721,22.82,0,0,21,0,0.00,0.0,0.00,0.0,0,0,902/902/902/902/1113/1113/1113/1113,1843/2208,0,28.0,192,464,4398,-1,1,0,0,
|
||||
88.8,,0,60,30.0,60.0,60.0,30,7.19,9.38,15.88,0,0,1.90,1.51,0.39,0.007,0.260,0.389,0.000,0.051,0.762,0.000,0.000,0.795,21.0,12.0,0.255,5.04,24.63,0.28,0.05,1.40,0.000,0.000,2.204,1.144,22.90,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,461,4398,-1,1,0,0,
|
||||
90.8,,0,61,30.1,60.0,60.0,30,7.18,11.00,14.00,0,0,1.93,1.62,0.31,0.007,0.253,0.440,0.000,0.056,0.825,0.000,0.000,0.814,21.0,12.0,0.253,5.00,24.41,0.31,0.05,1.42,0.000,0.000,2.259,1.003,22.93,0,0,21,0,0.00,0.0,0.00,0.0,0,0,902/902/902/902/1113/1113/1113/1113,1843/2208,0,28.0,192,461,4398,-1,1,0,0,
|
||||
92.8,,0,60,30.0,60.0,60.0,30,6.85,9.28,10.20,0,0,1.85,1.52,0.32,0.007,0.254,0.406,0.000,0.049,0.766,0.000,0.000,0.773,21.0,12.0,0.220,4.79,24.92,0.39,0.09,1.40,0.000,0.000,2.089,0.902,22.94,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,461,4398,-1,1,0,0,
|
||||
94.8,,0,60,30.0,60.0,60.0,30,6.91,9.61,10.67,0,0,1.95,1.60,0.35,0.007,0.278,0.406,0.000,0.054,0.815,0.000,0.000,0.803,21.0,12.0,0.328,4.63,24.94,0.31,0.07,1.34,0.000,0.000,1.988,0.988,22.92,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,460,4398,-1,1,0,0,
|
||||
96.8,,0,60,30.0,60.0,60.0,30,6.89,9.48,15.99,0,0,2.03,1.55,0.48,0.008,0.269,0.408,0.000,0.052,0.772,0.000,0.000,0.797,21.0,12.0,0.244,4.61,25.08,0.29,0.05,1.43,0.000,0.000,1.846,1.041,22.83,0,0,21,0,0.00,0.0,0.00,0.0,2,2,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,462,4398,-1,1,0,0,
|
||||
98.8,,0,60,30.0,60.0,60.0,30,6.95,8.57,17.42,0,0,2.27,1.54,0.73,0.007,0.271,0.410,0.000,0.053,0.750,0.000,0.000,0.775,21.0,12.0,0.236,4.45,25.07,0.27,0.07,1.39,0.000,0.000,1.874,0.900,22.87,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,460,4398,-1,1,0,0,
|
||||
100.9,,0,61,30.0,60.0,60.0,30,6.79,9.70,11.40,0,0,2.16,1.69,0.47,0.007,0.314,0.380,0.000,0.055,0.898,0.000,0.000,0.876,21.0,12.0,0.218,4.41,25.32,0.29,0.04,1.33,0.000,0.000,1.886,0.895,22.81,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,459,4398,-1,1,0,0,
|
||||
102.9,,0,60,30.0,60.0,60.0,30,7.51,14.32,17.84,0,0,2.51,1.87,0.65,0.008,0.270,0.563,0.000,0.050,0.924,0.000,0.000,0.953,21.0,12.0,0.223,4.78,24.45,0.26,0.06,1.38,0.000,0.000,2.214,0.915,22.73,0,0,21,0,0.00,0.0,0.00,0.0,0,3,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,457,4398,-1,1,0,0,
|
||||
104.9,,0,60,30.0,60.0,60.0,30,7.80,12.04,17.22,0,0,3.15,2.34,0.81,0.007,0.409,0.823,0.000,0.087,0.973,0.000,0.000,1.174,21.0,12.0,0.227,4.42,24.28,0.26,0.05,1.28,0.000,0.000,1.952,0.927,22.86,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,458,4398,-1,1,0,0,
|
||||
106.9,,0,61,30.1,60.0,60.0,30,7.67,10.72,18.79,0,0,2.83,1.96,0.87,0.007,0.502,0.554,0.000,0.056,0.790,0.000,0.000,1.130,21.0,12.0,0.234,4.60,24.25,0.28,0.07,1.40,0.000,0.000,1.932,0.976,22.88,0,0,21,0,0.00,0.0,0.00,0.0,6,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,458,4398,-1,1,0,0,
|
||||
108.9,,0,60,30.0,60.0,60.0,30,7.10,9.61,12.11,0,0,3.37,2.23,1.13,0.005,0.564,0.678,0.000,0.051,0.875,0.000,0.000,1.306,21.0,12.0,0.230,3.50,25.29,0.20,0.04,0.99,0.000,0.000,1.577,0.724,22.10,0,0,21,0,0.00,0.0,0.00,0.0,0,0,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,459,4398,-1,1,0,0,
|
||||
110.9,,0,60,29.9,60.0,60.0,30,7.51,10.71,19.23,0,0,3.20,1.95,1.25,0.006,0.345,0.482,0.000,0.049,1.018,0.000,0.000,1.020,21.0,12.0,0.207,4.11,24.84,0.33,0.06,1.13,0.000,0.000,1.811,0.826,22.26,0,0,21,0,0.00,0.0,0.00,0.0,2,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,460,4398,-1,1,0,0,
|
||||
112.9,,0,61,30.0,60.0,60.0,30,8.50,11.54,13.23,0,0,3.08,2.42,0.65,0.007,0.309,0.676,0.000,0.049,1.268,0.000,0.000,1.162,21.0,12.0,0.362,5.06,23.45,0.36,0.06,1.58,0.000,0.000,2.072,1.036,22.75,0,0,21,0,0.00,0.0,0.00,0.0,2,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,459,4398,-1,1,0,0,
|
||||
115.0,,0,61,30.1,60.0,60.0,30,7.95,11.83,16.62,0,0,2.24,1.76,0.48,0.007,0.234,0.406,0.000,0.053,1.015,0.000,0.000,0.779,21.0,12.0,0.260,5.45,24.06,0.30,0.05,1.57,0.000,0.000,2.227,1.220,22.89,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,458,4398,-1,1,0,0,
|
||||
117.0,,0,60,30.0,60.0,60.0,30,7.77,10.88,12.42,0,0,1.93,1.56,0.36,0.008,0.263,0.371,0.000,0.049,0.834,0.000,0.000,0.783,21.0,12.0,0.478,5.37,24.34,0.38,0.15,1.36,0.000,0.000,2.623,0.993,23.00,0,0,21,0,0.00,0.0,0.00,0.0,1,1,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,456,4398,-1,1,0,0,
|
||||
119.0,,0,61,30.0,60.0,60.0,30,7.76,12.22,13.53,0,0,1.95,1.52,0.43,0.007,0.230,0.356,0.000,0.054,0.823,0.000,0.000,0.742,21.0,12.0,0.379,5.43,24.41,0.46,0.04,1.36,0.000,0.000,2.457,1.149,22.99,0,0,21,0,0.00,0.0,0.00,0.0,3,3,633/633/633/633/1113/1113/1113/1113,1843/2208,0,28.0,192,455,4398,-1,1,0,0,
|
||||
|
@@ -0,0 +1,9 @@
|
||||
# mt_native_render perf log 20261019-184346
|
||||
# device=Adreno (TM) 512 present_mode=FIFO msaa=2 render_scale=0.750000 size=2280x1080 gpu_skinning=1 terrain=1
|
||||
# per-frame averages over each 2 s window; *_ms game sections run on the script thread inside app_ms; py_ms includes update_game/render_game
|
||||
t_s,map,actors,frames,fps,refresh_hz,render_hz,fps_cap,frame_ms,frame_p95_ms,frame_max_ms,jank33,jank50,app_ms,process_ms,handoff_ms,net_ms,camera_ms,ui_update_ms,update_game_ms,render_begin_ms,ui_render_ms,render_game_ms,shadow_raster_ms,py_ms,py_calls,py_missing,host_ms,render_ms,pace_ms,sync_ms,fence_ms,prepare_ms,geo_upload_ms,tex_upload_ms,submit_ms,present_ms,gpu_ms,draws,skinned_draws,ui_batches,vertices,geo_uploads,geo_kb,tex_uploads,tex_kb,script_cpu,main_cpu,cpu_mhz,cpu_max_mhz,thermal,batt_c,rss_mb,batt_ma,batt_mv,power_mw,plugged,fps_mode,idle,last_texture
|
||||
2.0,metin2_map_a1,36,54,26.5,60.0,-1.0,60,36.94,50.35,52.77,36,3,16.20,15.62,0.58,0.129,0.169,1.720,0.627,0.573,12.993,6.506,0.000,14.240,71.1,43.0,0.128,20.62,0.00,0.28,0.03,16.30,1.106,0.025,2.802,0.536,26.86,250,45,49,284190,23.22,8.3,0.17,0.6,1,4,1843/1843/1843/1843/1401/1401/1401/1401,1843/2208,0,27.0,602,6835,4298,-1,1,-1,0,d:\ymir work\ui\pattern\stgauge\06.tga
|
||||
4.0,metin2_map_a1,36,48,24.0,60.0,60.0,60,40.67,59.43,62.17,36,8,18.88,18.44,0.44,0.141,0.229,2.165,0.751,0.740,15.120,7.419,0.000,16.689,71.1,43.0,0.129,21.66,0.00,0.44,0.03,17.54,1.204,0.000,3.075,0.595,27.84,248,45,49,283608,23.54,8.4,0.00,0.0,3,6,1843/1843/1843/1843/1401/1401/1401/1401,1843/2208,0,27.0,601,6835,4298,-1,1,-1,0,d:\ymir work\ui\pattern\stgauge\06.tga
|
||||
6.0,metin2_map_a1,36,58,29.0,60.0,60.0,60,33.90,48.53,53.27,29,1,16.27,15.85,0.42,0.119,0.186,1.776,0.657,0.688,13.048,6.472,0.000,14.325,70.6,42.8,0.092,17.54,0.00,0.36,0.08,14.10,0.910,0.000,2.605,0.462,26.24,246,45,45,283315,23.48,8.3,0.00,0.0,4,1,633/633/633/633/1747/1747/1747/1747,1843/2208,0,27.0,600,6835,4298,-1,1,-1,0,
|
||||
8.1,metin2_map_a1,36,57,28.2,60.0,60.1,60,34.94,50.45,53.30,32,3,17.18,16.70,0.48,0.111,0.188,1.874,0.725,0.608,13.883,6.925,0.000,15.247,68.1,42.0,0.092,17.67,0.00,0.79,0.61,13.87,0.951,0.000,2.511,0.486,25.71,246,45,45,283034,23.63,8.4,0.00,0.0,1,0,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,27.0,600,6696,4298,-1,1,-1,0,
|
||||
10.1,metin2_map_a1,36,50,24.6,60.0,60.0,60,39.88,54.01,69.13,34,7,19.40,19.05,0.34,0.162,0.224,2.097,0.804,0.713,15.818,8.037,0.000,17.299,68.1,42.0,0.110,20.37,0.00,0.25,0.03,16.44,1.102,0.000,3.044,0.626,27.22,245,45,45,283026,23.60,8.4,0.00,0.0,1,6,1747/1747/1747/1747/1113/1113/1113/1113,1843/2208,0,27.0,600,6347,4298,-1,1,-1,0,
|
||||
|
@@ -0,0 +1,14 @@
|
||||
# mt_native_render perf log 20261019-184716
|
||||
# device=Adreno (TM) 512 present_mode=FIFO msaa=2 render_scale=0.750000 size=2280x1080 gpu_skinning=1 terrain=1
|
||||
# per-frame averages over each 2 s window; *_ms game sections run on the script thread inside app_ms; py_ms includes update_game/render_game
|
||||
t_s,map,actors,frames,fps,refresh_hz,render_hz,fps_cap,frame_ms,frame_p95_ms,frame_max_ms,jank33,jank50,app_ms,process_ms,handoff_ms,net_ms,camera_ms,ui_update_ms,update_game_ms,render_begin_ms,ui_render_ms,render_game_ms,shadow_raster_ms,py_ms,py_calls,py_missing,host_ms,render_ms,pace_ms,sync_ms,fence_ms,prepare_ms,geo_upload_ms,tex_upload_ms,submit_ms,present_ms,gpu_ms,draws,skinned_draws,ui_batches,vertices,geo_uploads,geo_kb,tex_uploads,tex_kb,script_cpu,main_cpu,cpu_mhz,cpu_max_mhz,thermal,batt_c,rss_mb,batt_ma,batt_mv,power_mw,plugged,fps_mode,idle,last_texture
|
||||
# hitch t=0.22 frame=215.1 app=15.2 process=13.9 net=0.1 camera=0.1 ui_update=1.4 update_game=0.6 ui_render=11.8 render_game=6.4 shadow=0.0 py=12.9 host=0.3 render=199.6 sync=0.0 prepare=0.0 geo_upload=0.0(0) tex_upload=0.0(0, 0 KB) submit=0.0 present=0.0
|
||||
# hitch t=0.55 frame=179.9 app=18.6 process=17.7 net=0.1 camera=0.2 ui_update=1.9 update_game=0.7 ui_render=14.8 render_game=8.0 shadow=0.0 py=16.2 host=0.1 render=161.3 sync=0.2 prepare=158.9 geo_upload=0.8(24) tex_upload=0.1(1, 16 KB) submit=1.6 present=0.5
|
||||
2.0,metin2_map_a1,52,37,18.5,60.0,-1.0,60,53.23,179.91,215.10,32,15,19.83,19.38,0.46,0.164,0.203,2.182,0.945,0.812,15.953,8.625,0.000,17.604,71.1,43.0,0.171,33.22,0.00,1.04,0.65,23.19,1.138,0.079,3.032,0.536,35.89,262,59,49,293156,22.89,8.1,0.27,1.3,5,5,633/633/633/633/1747/1747/1747/1747,1843/2208,0,27.0,612,6556,4299,-1,1,-1,0,d:\ymir work\ui\pattern\stgauge\07.tga
|
||||
4.0,metin2_map_a1,52,49,24.1,60.0,59.9,60,40.86,55.97,58.78,36,13,17.97,17.60,0.36,0.149,0.169,1.986,0.818,0.640,14.617,7.837,0.000,16.083,71.1,43.0,0.144,22.75,0.00,0.29,0.03,18.66,1.217,0.000,3.204,0.581,28.26,261,59,49,292867,23.71,8.5,0.00,0.0,1,6,1843/1843/1843/1843/1401/1401/1401/1401,1843/2208,0,27.0,612,6408,4299,-1,1,-1,0,d:\ymir work\ui\pattern\stgauge\07.tga
|
||||
6.1,metin2_map_a1,52,43,21.1,60.0,60.0,60,46.32,67.47,77.50,36,14,22.15,21.68,0.47,0.197,0.206,2.413,1.032,0.897,17.910,9.741,0.000,19.512,70.6,42.9,0.131,24.04,0.00,1.51,0.91,18.75,1.152,0.000,3.136,0.628,32.21,259,59,45,292574,23.49,8.3,0.00,0.0,4,2,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,27.0,611,6835,4299,-1,1,-1,0,
|
||||
8.1,metin2_map_a1,52,54,27.0,60.0,60.0,60,36.40,52.02,60.39,32,3,17.66,17.18,0.48,0.139,0.176,1.897,0.782,0.630,14.303,7.665,0.000,15.713,68.1,42.0,0.099,18.64,0.00,0.24,0.03,15.22,0.957,0.000,2.634,0.518,27.87,260,59,45,292578,23.52,8.3,0.00,0.0,1,0,1401/1401/1401/1401/1113/1113/1113/1113,1843/2208,0,27.0,611,6835,4299,-1,1,-1,0,
|
||||
10.1,metin2_map_a1,52,56,27.8,60.0,60.0,60,35.27,50.44,61.32,31,3,17.00,16.63,0.37,0.132,0.167,1.899,0.826,0.588,13.801,7.501,0.000,15.217,68.1,42.0,0.100,18.17,0.00,0.23,0.03,14.80,1.017,0.000,2.631,0.489,26.60,255,59,45,291133,23.73,8.5,0.00,0.0,4,5,633/633/633/633/1113/1113/1113/1113,1843/2208,0,27.0,611,6835,4299,-1,1,-1,0,
|
||||
12.1,metin2_map_a1,52,51,25.2,60.0,60.0,60,39.08,56.22,59.85,35,6,18.47,18.02,0.44,0.147,0.201,2.054,0.910,0.696,14.870,7.949,0.000,16.442,68.1,42.0,0.131,20.48,0.00,0.45,0.25,16.53,1.102,0.000,3.049,0.446,26.92,254,59,45,291129,23.49,8.3,0.00,0.0,2,0,1536/1536/1536/1536/1113/1113/1113/1113,1843/2208,0,27.0,611,6835,4298,-1,1,-1,0,
|
||||
14.1,metin2_map_a1,52,50,24.8,60.0,60.0,60,39.49,55.84,67.26,33,6,20.26,19.75,0.51,0.246,0.200,2.188,0.968,0.737,16.320,8.896,0.000,17.927,68.1,42.0,0.109,19.12,0.00,0.23,0.03,15.62,1.064,0.000,2.704,0.555,28.42,255,59,45,291137,23.64,8.4,0.00,0.0,5,6,633/633/633/633/2208/2208/2208/2208,1843/2208,0,27.0,611,6835,4298,-1,1,-1,0,
|
||||
16.1,metin2_map_a1,52,56,27.8,60.0,60.1,60,35.43,48.90,62.35,31,2,17.15,16.63,0.52,0.132,0.181,1.923,0.819,0.595,13.761,7.408,0.000,15.227,68.1,42.0,0.096,18.19,0.00,0.29,0.10,14.54,0.948,0.000,2.863,0.488,26.60,249,59,45,289399,23.64,8.5,0.00,0.0,5,5,633/633/633/633/1747/1747/1747/1747,1843/2208,0,27.0,611,6835,4298,-1,1,-1,0,
|
||||
|
+40
-16
@@ -44,6 +44,10 @@ std::string g_py_exec_after_login;
|
||||
std::string g_py_command_file;
|
||||
// --perf-log / MT_PERF_LOG=1: src/host/perf_log.h.
|
||||
bool g_perf_log = false;
|
||||
std::string g_login;
|
||||
std::string g_password;
|
||||
int g_slot = 0;
|
||||
bool g_auto_hunt = false;
|
||||
|
||||
bool py_exec(const std::string& code) {
|
||||
std::string err;
|
||||
@@ -255,7 +259,10 @@ int run_live_client(
|
||||
if (!g_py_exec_after_login.empty() && !py_exec(g_py_exec_after_login))
|
||||
throw std::runtime_error("--py-exec failed");
|
||||
} else {
|
||||
char login_cmd[512];
|
||||
const std::string login_user = !g_login.empty() ? g_login : (std::getenv("MT_LIVE_LOGIN") ? std::getenv("MT_LIVE_LOGIN") : FakeLoginServer::kLogin);
|
||||
const std::string login_pass = !g_password.empty() ? g_password : (std::getenv("MT_LIVE_PASSWORD") ? std::getenv("MT_LIVE_PASSWORD") : FakeLoginServer::kPassword);
|
||||
|
||||
char login_cmd[1024];
|
||||
std::snprintf(
|
||||
login_cmd,
|
||||
sizeof(login_cmd),
|
||||
@@ -269,15 +276,15 @@ int run_live_client(
|
||||
game_port,
|
||||
server_host.c_str(),
|
||||
auth_port,
|
||||
FakeLoginServer::kLogin,
|
||||
FakeLoginServer::kPassword);
|
||||
login_user.c_str(),
|
||||
login_pass.c_str());
|
||||
#ifdef __ANDROID__
|
||||
SDL_Log("live stage: submitting fake login");
|
||||
SDL_Log("live stage: submitting login for user=%s", login_user.c_str());
|
||||
#endif
|
||||
if (!py_exec(login_cmd))
|
||||
throw std::runtime_error("failed to submit login credentials");
|
||||
#ifdef __ANDROID__
|
||||
SDL_Log("live stage: fake login submitted");
|
||||
SDL_Log("live stage: login submitted");
|
||||
#endif
|
||||
|
||||
if (!pump_until(20.0, 5, [&] {
|
||||
@@ -290,20 +297,26 @@ int run_live_client(
|
||||
#endif
|
||||
|
||||
if (!selection_screen) {
|
||||
if (!py_exec("_stream.curPhaseWindow.SelectSlot(0)\n"
|
||||
"_stream.curPhaseWindow.StartGame()"))
|
||||
char select_cmd[256];
|
||||
std::snprintf(
|
||||
select_cmd,
|
||||
sizeof(select_cmd),
|
||||
"_stream.curPhaseWindow.SelectSlot(%d)\n"
|
||||
"_stream.curPhaseWindow.StartGame()",
|
||||
g_slot);
|
||||
if (!py_exec(select_cmd))
|
||||
throw std::runtime_error("failed to start game from SelectCharacterWindow");
|
||||
|
||||
if (!use_external_server) {
|
||||
if (!pump_until(30.0, 5, [&] { return server.Has("game2:client_version"); }))
|
||||
throw std::runtime_error("timed out waiting for LoadingWindow (client_version)");
|
||||
}
|
||||
if (!use_external_server) {
|
||||
if (!pump_until(30.0, 5, [&] { return server.Has("game2:client_version"); }))
|
||||
throw std::runtime_error("timed out waiting for LoadingWindow (client_version)");
|
||||
}
|
||||
|
||||
if (!pump_until(60.0, 0, [&] {
|
||||
return (use_external_server || server.Has("game2:burst_pong")) &&
|
||||
py_eval_true("isinstance(_stream.curPhaseWindow, game.GameWindow) and _stream.curPhaseWindow.IsShow()");
|
||||
}))
|
||||
throw std::runtime_error("timed out waiting for GameWindow (server error: " + server.Error() + ")");
|
||||
if (!pump_until(60.0, 0, [&] {
|
||||
return (use_external_server || server.Has("game2:burst_pong")) &&
|
||||
py_eval_true("isinstance(_stream.curPhaseWindow, game.GameWindow) and _stream.curPhaseWindow.IsShow()");
|
||||
}))
|
||||
throw std::runtime_error("timed out waiting for GameWindow (server error: " + server.Error() + ")");
|
||||
|
||||
if (PythonBoot::TouchInput() && !hide_mobile_taskbar_quickslots())
|
||||
throw std::runtime_error("failed to hide the desktop quick-slot bar in touch mode");
|
||||
@@ -311,6 +324,17 @@ int run_live_client(
|
||||
if (!configure_macos_numeric_quickslots())
|
||||
throw std::runtime_error("failed to configure numeric quick slots on macOS");
|
||||
#endif
|
||||
if (g_auto_hunt) {
|
||||
py_exec(
|
||||
"import player\n"
|
||||
"cfg = list(player.AutoHuntGetConfig())\n"
|
||||
"cfg[0] = 5000\n"
|
||||
"cfg[4] = 1\n"
|
||||
"cfg[5] = 1\n"
|
||||
"player.AutoHuntSetConfig(*cfg)\n"
|
||||
"player.AutoHuntSetEnabled(1)\n"
|
||||
);
|
||||
}
|
||||
if (!g_py_exec_after_login.empty() && !py_exec(g_py_exec_after_login))
|
||||
throw std::runtime_error("--py-exec failed");
|
||||
|
||||
|
||||
@@ -14,6 +14,10 @@ extern std::string g_py_exec_after_login;
|
||||
extern std::string g_py_command_file;
|
||||
// --perf-log / MT_PERF_LOG=1: src/host/perf_log.h.
|
||||
extern bool g_perf_log;
|
||||
extern std::string g_login;
|
||||
extern std::string g_password;
|
||||
extern int g_slot;
|
||||
extern bool g_auto_hunt;
|
||||
|
||||
// Boots the 40250 client (PythonBoot) from client_dir and runs it inside the renderer until it quits.
|
||||
int run_live_client(
|
||||
|
||||
@@ -136,6 +136,10 @@ int main(int argc, char** argv) {
|
||||
else if (arg == "--safe-inset-px" && i+1 < argc) safe_inset_px = std::stoi(argv[++i]);
|
||||
else if (arg == "--show-fps") show_fps = true;
|
||||
#ifdef MT_NATIVE_HAS_LIVE_CLIENT
|
||||
else if (arg == "--login" && i+1 < argc) g_login = argv[++i];
|
||||
else if (arg == "--password" && i+1 < argc) g_password = argv[++i];
|
||||
else if (arg == "--slot" && i+1 < argc) g_slot = std::stoi(argv[++i]);
|
||||
else if (arg == "--auto-hunt") g_auto_hunt = true;
|
||||
else if (arg == "--py-exec" && i+1 < argc) g_py_exec_after_login = argv[++i];
|
||||
else if (arg == "--py-command-file" && i+1 < argc) g_py_command_file = argv[++i];
|
||||
else if (arg == "--perf-log") g_perf_log = true;
|
||||
|
||||
@@ -261,7 +261,10 @@ bool VulkanWindow::poll(bool forward_to_live_client) {
|
||||
} else if (event.type == SDL_EVENT_FINGER_MOTION) {
|
||||
touch_controller.on_finger_motion(event.tfinger.fingerID, event.tfinger.x, event.tfinger.y);
|
||||
continue;
|
||||
} else if (event.type == SDL_EVENT_FINGER_UP || event.type == SDL_EVENT_FINGER_CANCELED) {
|
||||
} else if (event.type == SDL_EVENT_FINGER_CANCELED) {
|
||||
touch_controller.cancel_gestures();
|
||||
continue;
|
||||
} else if (event.type == SDL_EVENT_FINGER_UP) {
|
||||
touch_controller.on_finger_up(event.tfinger.fingerID, event.tfinger.x, event.tfinger.y);
|
||||
continue;
|
||||
}
|
||||
@@ -275,6 +278,7 @@ bool VulkanWindow::poll(bool forward_to_live_client) {
|
||||
SDL_HideCursor();
|
||||
os_cursor_hidden_ = true;
|
||||
} else if (event.type == SDL_EVENT_WINDOW_FOCUS_LOST) {
|
||||
touch_controller.cancel_gestures();
|
||||
SDL_CaptureMouse(false);
|
||||
PythonBoot::UIMouseButton(2, false, last_mx_, last_my_);
|
||||
PythonBoot::UIMouseButton(3, false, last_mx_, last_my_);
|
||||
|
||||
+75
-37
@@ -18,7 +18,7 @@
|
||||
class TouchController {
|
||||
public:
|
||||
struct ButtonDef {
|
||||
int id; // 1 = attack, 2..7 = skills, 8 = auto hunt, 9..10 = bottom quick slots
|
||||
int id; // 1 = attack, 2..7 = skills, 8 = auto hunt
|
||||
int dik;
|
||||
float x, y, radius;
|
||||
const char* label;
|
||||
@@ -33,12 +33,24 @@ public:
|
||||
}
|
||||
|
||||
void set_enabled(bool enabled) {
|
||||
if (enabled_ && !enabled) cancel_gestures();
|
||||
enabled_ = enabled;
|
||||
#ifdef MT_NATIVE_HAS_LIVE_CLIENT
|
||||
PythonBoot::SetTouchInput(enabled);
|
||||
#endif
|
||||
}
|
||||
bool is_enabled() const { return enabled_; }
|
||||
// OS cancellation/focus loss must discard gestures without synthesizing a world tap.
|
||||
void cancel_gestures() {
|
||||
release_gameplay_controls();
|
||||
ui_touch_finger_id_ = -1;
|
||||
ui_gesture_ = UiGesture::None;
|
||||
tap_stage_ = 0;
|
||||
keyboard_requested_ = false;
|
||||
#ifdef MT_NATIVE_HAS_LIVE_CLIENT
|
||||
PythonBoot::SetInventoryDrag(false);
|
||||
#endif
|
||||
}
|
||||
void set_minimum_touch_target(float logicalSize) { minimum_touch_target_ = std::max(48.0f, logicalSize); }
|
||||
// Short vibration when a long press fires (the host wires it to the platform).
|
||||
void set_haptic(void (*haptic)()) { haptic_ = haptic; }
|
||||
@@ -110,7 +122,8 @@ public:
|
||||
controls_were_visible_ = true;
|
||||
if (joystick_active_) {
|
||||
#ifdef MT_NATIVE_HAS_LIVE_CLIENT
|
||||
PythonBoot::SetMoveDirection(move_angle_, true);
|
||||
PythonBoot::SetMoveDirection(move_angle_,
|
||||
std::hypot(joystick_last_x_ - joystick_base_x_, joystick_last_y_ - joystick_base_y_) > 8.0f);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -165,12 +178,38 @@ public:
|
||||
}
|
||||
#endif
|
||||
|
||||
// PORT: two scene fingers own a pinch before the second can become a joystick.
|
||||
// A stationary new left thumb may join the pinch; an established moving stick stays movement.
|
||||
if (controls_visible && pinch_finger_id_ >= 0)
|
||||
return true; // Additional scene fingers cannot steal an ongoing pinch.
|
||||
if (controls_visible) {
|
||||
if (look_finger_id_ == finger_id) return true;
|
||||
if (look_finger_id_ >= 0) {
|
||||
begin_pinch(finger_id, px, py);
|
||||
return true;
|
||||
}
|
||||
if (joystick_active_ && !joystick_moved_) {
|
||||
look_finger_id_ = joystick_finger_id_;
|
||||
look_last_x_ = joystick_last_x_;
|
||||
look_last_y_ = joystick_last_y_;
|
||||
look_can_rotate_ = true;
|
||||
joystick_active_ = false;
|
||||
joystick_finger_id_ = -1;
|
||||
#ifdef MT_NATIVE_HAS_LIVE_CLIENT
|
||||
PythonBoot::SetMoveDirection(0.0f, false);
|
||||
#endif
|
||||
begin_pinch(finger_id, px, py);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// Mobile-game layout: the left half moves (floating stick), the right half looks.
|
||||
if (controls_visible && norm_x < kMoveZoneRight && norm_y > kMoveZoneTop && !joystick_active_) {
|
||||
joystick_active_ = true;
|
||||
joystick_finger_id_ = finger_id;
|
||||
joystick_base_x_ = px;
|
||||
joystick_base_y_ = py;
|
||||
joystick_base_x_ = joystick_last_x_ = px;
|
||||
joystick_base_y_ = joystick_last_y_ = py;
|
||||
joystick_moved_ = false;
|
||||
joystick_knob_x_ = px;
|
||||
joystick_knob_y_ = py;
|
||||
update_joystick_motion(px, py);
|
||||
@@ -195,15 +234,6 @@ public:
|
||||
#endif
|
||||
return true;
|
||||
}
|
||||
if (pinch_finger_id_ < 0 && look_can_rotate_ && in_look_zone) {
|
||||
pinch_finger_id_ = finger_id;
|
||||
pinch_x_ = px;
|
||||
pinch_y_ = py;
|
||||
pinch_last_dist_ = std::hypot(px - look_last_x_, py - look_last_y_);
|
||||
look_rotating_ = false;
|
||||
look_moved_ = true; // a pinch never ends as a tap
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -234,6 +264,10 @@ public:
|
||||
|
||||
// 2. Virtual Joystick finger
|
||||
if (joystick_active_ && finger_id == joystick_finger_id_) {
|
||||
joystick_last_x_ = px;
|
||||
joystick_last_y_ = py;
|
||||
if (std::hypot(px - joystick_base_x_, py - joystick_base_y_) > kLookDeadZone)
|
||||
joystick_moved_ = true;
|
||||
update_joystick_motion(px, py);
|
||||
return true;
|
||||
}
|
||||
@@ -253,7 +287,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
// 4. Two-finger pinch zoom (look finger + second right-half finger)
|
||||
// 4. Two-finger scene pinch: scale camera distance, without wheel inertia or UI scrolling.
|
||||
if (pinch_finger_id_ >= 0 && (finger_id == pinch_finger_id_ || finger_id == look_finger_id_)) {
|
||||
if (finger_id == pinch_finger_id_) {
|
||||
pinch_x_ = px;
|
||||
@@ -263,13 +297,13 @@ public:
|
||||
look_last_y_ = py;
|
||||
}
|
||||
const float cur_dist = std::hypot(pinch_x_ - look_last_x_, pinch_y_ - look_last_y_);
|
||||
const float delta_d = cur_dist - pinch_last_dist_;
|
||||
if (std::abs(delta_d) > 2.0f) {
|
||||
// Rebase very close/crossed fingers instead of dividing by a near-zero span.
|
||||
if (cur_dist >= 24.0f && pinch_last_dist_ >= 24.0f) {
|
||||
#ifdef MT_NATIVE_HAS_LIVE_CLIENT
|
||||
PythonBoot::UIMouseWheel(int(delta_d * 8.0f));
|
||||
PythonBoot::CameraZoomBy(pinch_last_dist_ / cur_dist);
|
||||
#endif
|
||||
pinch_last_dist_ = cur_dist;
|
||||
}
|
||||
pinch_last_dist_ = cur_dist;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -419,14 +453,16 @@ public:
|
||||
|
||||
// Right-side attack and quick-slot buttons.
|
||||
for (const auto& btn : buttons_) {
|
||||
draw_control_disc(commands, btn.x, btn.y, btn.radius, btn.pressed);
|
||||
|
||||
// Auto hunt is a secondary action: smaller art, unchanged accessible hit radius.
|
||||
const float r = btn.radius * (btn.id == kAutoHuntButton ? 0.72f : 1.0f);
|
||||
const uint32_t icon_col = 0xFFFFFFFF;
|
||||
const float r = btn.radius;
|
||||
if (btn.id == kAutoHuntButton) {
|
||||
draw_auto_hunt_button(commands, btn);
|
||||
auto visual = btn;
|
||||
visual.radius = r;
|
||||
draw_auto_hunt_button(commands, visual);
|
||||
continue;
|
||||
}
|
||||
draw_control_disc(commands, btn.x, btn.y, r, btn.pressed);
|
||||
|
||||
#ifdef MT_NATIVE_HAS_LIVE_CLIENT
|
||||
if (is_quick_slot_button(btn.id)) {
|
||||
@@ -469,14 +505,6 @@ public:
|
||||
}
|
||||
#endif
|
||||
|
||||
if (btn.id >= 9) {
|
||||
const std::string label = std::to_string(quick_slot_index(btn.id) + 1);
|
||||
const float h = r * 0.65f;
|
||||
draw_segment_text(commands, label, btn.x - segment_text_width(label, h) / 2,
|
||||
btn.y - h / 2, h, 0xFFD8C49A);
|
||||
continue;
|
||||
}
|
||||
|
||||
switch (btn.id) {
|
||||
case 1: { // ATK: crossed swords
|
||||
const float s = r * 0.35f;
|
||||
@@ -615,6 +643,16 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
void begin_pinch(int64_t finger_id, float px, float py) {
|
||||
pinch_finger_id_ = finger_id;
|
||||
pinch_x_ = px;
|
||||
pinch_y_ = py;
|
||||
pinch_last_dist_ = std::hypot(px - look_last_x_, py - look_last_y_);
|
||||
look_rotating_ = false;
|
||||
look_can_rotate_ = true;
|
||||
look_moved_ = true; // Neither finger may turn into a tap after pinching.
|
||||
}
|
||||
|
||||
bool gameplay_controls_visible() const {
|
||||
#ifdef MT_NATIVE_HAS_LIVE_CLIENT
|
||||
return PythonBoot::InGamePhase() && !PythonBoot::CurrentMapName().empty();
|
||||
@@ -646,8 +684,8 @@ private:
|
||||
}
|
||||
|
||||
static constexpr int kAutoHuntButton = 8;
|
||||
static bool is_quick_slot_button(int id) { return (id >= 2 && id <= 7) || id == 9 || id == 10; }
|
||||
static int quick_slot_index(int id) { return id >= 9 ? id - 3 : id - 2; }
|
||||
static bool is_quick_slot_button(int id) { return id >= 2 && id <= 7; }
|
||||
static int quick_slot_index(int id) { return id - 2; }
|
||||
|
||||
// Clear "AUTO" vector button; green glow while the hunt runs.
|
||||
static void draw_auto_hunt_button(std::vector<UIRenderCommand>& commands, const ButtonDef& btn) {
|
||||
@@ -655,16 +693,16 @@ private:
|
||||
#ifdef MT_NATIVE_HAS_LIVE_CLIENT
|
||||
on = PythonBoot::AutoHuntIsEnabled();
|
||||
#endif
|
||||
const uint32_t disc = btn.pressed ? (on ? 0xEB257D32 : 0xEB16110C) : (on ? 0xDD1B5E20 : 0x8A16110C);
|
||||
const uint32_t disc = btn.pressed ? (on ? 0xEB257D32 : 0xEB16110C) : (on ? 0xDD1B5E20 : 0x4416110C);
|
||||
draw_filled_disc(commands, btn.x, btn.y, btn.radius * 0.88f, disc);
|
||||
|
||||
const uint32_t ring_col = on ? 0xFF80FF90 : (btn.pressed ? 0xFFB89545 : 0x8A997847);
|
||||
const uint32_t ring_col = on ? 0xFF80FF90 : (btn.pressed ? 0xFFB89545 : 0x55997847);
|
||||
draw_circle(commands, btn.x, btn.y, btn.radius * 0.90f, ring_col, 32);
|
||||
if (on) {
|
||||
draw_circle(commands, btn.x, btn.y, btn.radius * 0.72f, 0x6680FF90, 32);
|
||||
}
|
||||
|
||||
const uint32_t text_col = on ? 0xFFFFFFFF : (btn.pressed ? 0xFFFFFFFF : 0xFFD8C49A);
|
||||
const uint32_t text_col = on ? 0xFFFFFFFF : (btn.pressed ? 0xFFFFFFFF : 0xBBD8C49A);
|
||||
const float h = std::round(btn.radius * 0.44f);
|
||||
const float w = std::round(h * 0.52f);
|
||||
const float gap = std::max(1.5f, std::round(h * 0.18f));
|
||||
@@ -723,8 +761,6 @@ private:
|
||||
buttons_.push_back({6, 0x06, 0, 0, 22.0f, "S5", 0x80603090, 0xD08050D0});
|
||||
buttons_.push_back({7, 0x07, 0, 0, 22.0f, "S6", 0x80308090, 0xD050C0D0});
|
||||
buttons_.push_back({kAutoHuntButton, 0, 0, 0, 22.0f, "AUTO", 0x80707070, 0xD0FFFFFF});
|
||||
buttons_.push_back({9, 0x08, 0, 0, 24.0f, "7", 0xB032211B, 0xE0664B2D});
|
||||
buttons_.push_back({10, 0x09, 0, 0, 24.0f, "8", 0xB032211B, 0xE0664B2D});
|
||||
for (auto& btn : buttons_) {
|
||||
if (is_quick_slot_button(btn.id)) {
|
||||
btn.color_idle = 0xA032211B;
|
||||
@@ -904,6 +940,8 @@ private:
|
||||
float joystick_radius_ = 65.0f;
|
||||
float joystick_knob_radius_ = 23.0f;
|
||||
float move_angle_ = 0.0f;
|
||||
float joystick_last_x_ = 0.0f, joystick_last_y_ = 0.0f;
|
||||
bool joystick_moved_ = false;
|
||||
|
||||
// Zones are fractions of the screen; distances are logical UI pixels.
|
||||
static constexpr float kMoveZoneRight = 0.5f;
|
||||
|
||||
+11
-14
@@ -9,8 +9,8 @@ namespace mt_host {
|
||||
struct TouchCircle { float x, y, radius; };
|
||||
|
||||
struct TouchLayout {
|
||||
// Attack, six skills, auto hunt, two bottom item quick slots.
|
||||
std::array<TouchCircle, 10> buttons;
|
||||
// Attack, six skills and auto hunt.
|
||||
std::array<TouchCircle, 8> buttons;
|
||||
float scale;
|
||||
};
|
||||
|
||||
@@ -21,21 +21,18 @@ inline TouchLayout make_touch_layout(float width, float height, float safe_inset
|
||||
const float s = layout.scale;
|
||||
const float ax = width - safe_inset - 74 * s;
|
||||
// Lowered attack button for thumb resting near the bottom edge.
|
||||
const float ay = height - 88 * s;
|
||||
const float ay = height - 94 * s;
|
||||
layout.buttons[0] = {ax, ay, 42 * s};
|
||||
// Compact single-layer skill arc in the upper-left of attack button:
|
||||
// 20-degree spacing from 170 to 270 degrees at radius 140 keeps the skills tightly
|
||||
// wrapped around the attack button without encroaching on the minimap or screen center.
|
||||
// A tighter single skill arc retains full touch targets: widening angular spacing
|
||||
// to 25 degrees lets the radius shrink from 140 to 120 without overlapping even
|
||||
// the 15% expanded hit circles. Keep the existing clockwise skill order.
|
||||
for (int slot = 0; slot < 6; ++slot) {
|
||||
const float angle = (170.0f + 20.0f * slot) * 3.14159265f / 180.0f;
|
||||
layout.buttons[slot + 1] = {ax + std::cos(angle) * 140 * s,
|
||||
ay + std::sin(angle) * 140 * s, 22 * s};
|
||||
const float angle = (165.0f + 25.0f * slot) * 3.14159265f / 180.0f;
|
||||
layout.buttons[slot + 1] = {ax + std::cos(angle) * 120 * s,
|
||||
ay + std::sin(angle) * 120 * s, 22 * s};
|
||||
}
|
||||
// Auto hunt button nestled compactly just outside the skill arc.
|
||||
layout.buttons[7] = {ax - 195 * s, ay - 50 * s, 22 * s};
|
||||
const float item_center = std::min(width / 2, layout.buttons[1].x - 114 * s);
|
||||
layout.buttons[8] = {item_center - 36 * s, height - 38 * s, 24 * s};
|
||||
layout.buttons[9] = {item_center + 36 * s, height - 38 * s, 24 * s};
|
||||
// Secondary action at the lower edge of combat controls, away from the central view.
|
||||
layout.buttons[7] = {ax - 60 * s, ay + 60 * s, 22 * s};
|
||||
return layout;
|
||||
}
|
||||
|
||||
|
||||
+28
-20
@@ -41,6 +41,8 @@ void VulkanWindow::render(
|
||||
check(vkWaitForFences(device_, 1, &f_->fence, VK_TRUE, UINT64_MAX), "vkWaitForFences");
|
||||
collect_pending_gpu_timestamp(*f_);
|
||||
reset_staging(*f_);
|
||||
f_->dynamic_geom_used = 0;
|
||||
f_->dynamic_geometries.clear();
|
||||
const auto fenced = std::chrono::steady_clock::now();
|
||||
prune_textures();
|
||||
std::uint32_t image_index = 0;
|
||||
@@ -205,26 +207,32 @@ void VulkanWindow::prepare_draws(const std::vector<Render3DDraw>& draws, const T
|
||||
back_buffer_list(in_scene).push_back(clear);
|
||||
continue;
|
||||
}
|
||||
decltype(geometries_)::iterator it;
|
||||
bool inserted = false;
|
||||
const Geometry* geometry_ptr = nullptr;
|
||||
if (draw.shared_geometry) {
|
||||
// Repeats an earlier draw of this frame, which uploaded (or kept) the geometry.
|
||||
it = geometries_.find(GeometryId{draw.geometry_key, draw.geometry_revision});
|
||||
auto it = geometries_.find(GeometryId{draw.geometry_key, draw.geometry_revision});
|
||||
if (it == geometries_.end()) continue;
|
||||
} else {
|
||||
geometry_ptr = &it->second;
|
||||
} else if (draw.geometry_key != 0) {
|
||||
if (draw.positions.empty() || draw.indices.empty()) continue;
|
||||
const auto signature = draw.geometry_key ? draw.geometry_revision : geometry_hash(draw);
|
||||
std::tie(it, inserted) = geometries_.try_emplace(GeometryId{draw.geometry_key, signature});
|
||||
auto [it, inserted] = geometries_.try_emplace(GeometryId{draw.geometry_key, draw.geometry_revision});
|
||||
if (inserted) {
|
||||
upload_geometry(draw, it->second);
|
||||
} else if (it->second.vertex_count != draw.positions.size() / 3 ||
|
||||
it->second.index_count != draw.indices.size()) {
|
||||
throw std::runtime_error("geometry key/revision reused with a different size");
|
||||
}
|
||||
it->second.last_used_frame = frame_number_;
|
||||
active_keys.insert(draw.geometry_key);
|
||||
geometry_ptr = &it->second;
|
||||
} else {
|
||||
// Immediate / uncached geometry (geometry_key == 0: particles, damage text, etc.)
|
||||
// Bump-allocated directly into this frame's dynamic ring buffer with zero vkAllocateMemory!
|
||||
if (draw.positions.empty() || draw.indices.empty()) continue;
|
||||
auto& dyn_geom = f_->dynamic_geometries.emplace_back();
|
||||
upload_dynamic_geometry(draw, dyn_geom);
|
||||
geometry_ptr = &dyn_geom;
|
||||
}
|
||||
auto& geometry = it->second;
|
||||
if (inserted) {
|
||||
upload_geometry(draw, geometry);
|
||||
} else if (!draw.shared_geometry && (geometry.vertex_count != draw.positions.size() / 3 ||
|
||||
geometry.index_count != draw.indices.size())) {
|
||||
throw std::runtime_error("geometry key/revision reused with a different size");
|
||||
}
|
||||
geometry.last_used_frame = frame_number_;
|
||||
if (draw.geometry_key) active_keys.insert(draw.geometry_key);
|
||||
|
||||
float skin_offset_encoded = 0.0f;
|
||||
if (!draw.bone_matrices.empty() && draw.bone_matrices.size() % 16 == 0 && f_->bone_mapped) {
|
||||
@@ -277,7 +285,7 @@ void VulkanWindow::prepare_draws(const std::vector<Render3DDraw>& draws, const T
|
||||
}
|
||||
PreparedDraw prepared_draw{};
|
||||
prepared_draw.target = target;
|
||||
prepared_draw.geometry = &geometry;
|
||||
prepared_draw.geometry = geometry_ptr;
|
||||
prepared_draw.pipeline = pipeline;
|
||||
prepared_draw.descriptor = descriptor;
|
||||
prepared_draw.constants = constants;
|
||||
@@ -297,13 +305,13 @@ void VulkanWindow::prepare_draws(const std::vector<Render3DDraw>& draws, const T
|
||||
prepared_draw.viewport = to_scene(prepared_draw.viewport);
|
||||
back_buffer_list(true).push_back(prepared_draw);
|
||||
} else prepared_draws.push_back(prepared_draw);
|
||||
frame.vertex_count += geometry.vertex_count;
|
||||
frame.index_count += geometry.index_count;
|
||||
frame.vertex_count += geometry_ptr->vertex_count;
|
||||
frame.index_count += geometry_ptr->index_count;
|
||||
}
|
||||
for (auto it = geometries_.begin(); it != geometries_.end();) {
|
||||
const auto age = frame_number_ - it->second.last_used_frame;
|
||||
const bool obsolete_revision = it->first.key && active_keys.contains(it->first.key);
|
||||
if (age > 120 || (age > 1 && (it->first.key == 0 || obsolete_revision))) {
|
||||
if (age > 120 || (age > 1 && obsolete_revision)) {
|
||||
release_geometry(it->second);
|
||||
it = geometries_.erase(it);
|
||||
} else ++it;
|
||||
@@ -430,7 +438,7 @@ void VulkanWindow::record_passes(std::uint32_t image_index, const FrameDraws& fr
|
||||
vkCmdBindDescriptorSets(f_->command, VK_PIPELINE_BIND_POINT_GRAPHICS, layout_, 1, 1,
|
||||
&f_->bone_descriptor_set, 1, &prepared_draw.state_offset);
|
||||
const auto& geometry = *prepared_draw.geometry;
|
||||
const VkDeviceSize vertex_offset = 0;
|
||||
const VkDeviceSize vertex_offset = geometry.vertex_offset;
|
||||
vkCmdBindVertexBuffers(f_->command, 0, 1, &geometry.buffer, &vertex_offset);
|
||||
vkCmdBindIndexBuffer(f_->command, geometry.buffer, geometry.index_offset, VK_INDEX_TYPE_UINT32);
|
||||
vkCmdPushConstants(
|
||||
|
||||
@@ -163,6 +163,17 @@ void VulkanWindow::create_descriptors_and_buffers() {
|
||||
slot.ui_index_capacity = kMaxUiIndicesPerFrame;
|
||||
slot.ui_vertex_bytes = kUiVertexBytes;
|
||||
slot.staging_wanted = kStagingRingBytes;
|
||||
|
||||
void* dynamic_geom_raw = nullptr;
|
||||
create_host_buffer(
|
||||
kDynamicGeomBytes,
|
||||
VK_BUFFER_USAGE_VERTEX_BUFFER_BIT | VK_BUFFER_USAGE_INDEX_BUFFER_BIT,
|
||||
slot.dynamic_geom_buffer,
|
||||
slot.dynamic_geom_memory,
|
||||
&dynamic_geom_raw);
|
||||
slot.dynamic_geom_mapped = static_cast<std::uint8_t*>(dynamic_geom_raw);
|
||||
slot.dynamic_geom_capacity = kDynamicGeomBytes;
|
||||
slot.dynamic_geom_used = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -381,18 +392,10 @@ void VulkanWindow::release_geometry(Geometry& geometry) {
|
||||
geometry = {};
|
||||
}
|
||||
|
||||
void VulkanWindow::upload_geometry(const Render3DDraw& draw, Geometry& geometry) {
|
||||
const ScopedMs timer(timings_.geometry_upload_ms);
|
||||
if (draw.positions.size() % 3 || draw.indices.size() % (draw.lines ? 2 : 3))
|
||||
throw std::runtime_error("invalid native geometry array size");
|
||||
const auto count = draw.positions.size() / 3;
|
||||
if (count > UINT32_MAX || draw.indices.size() > UINT32_MAX)
|
||||
throw std::runtime_error("geometry exceeds Vulkan index range");
|
||||
// D3D8 feeds opaque white for a vertex format without D3DFVF_DIFFUSE.
|
||||
static void unpack_draw_vertices(const Render3DDraw& draw, Vertex* vertices, std::size_t count) {
|
||||
const std::uint32_t default_argb = 0xffffffffu;
|
||||
const bool has_skin =
|
||||
draw.bone_indices.size() >= count * 4 && draw.bone_weights.size() >= count * 4;
|
||||
std::vector<Vertex> vertices(count);
|
||||
for (std::size_t i = 0; i < count; ++i) {
|
||||
vertices[i].position[0] = draw.positions[3*i];
|
||||
vertices[i].position[1] = draw.positions[3*i+1];
|
||||
@@ -438,7 +441,21 @@ void VulkanWindow::upload_geometry(const Render3DDraw& draw, Geometry& geometry)
|
||||
vertices[i].mask_uv[1] = 0.0f;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void VulkanWindow::upload_geometry(const Render3DDraw& draw, Geometry& geometry) {
|
||||
const ScopedMs timer(timings_.geometry_upload_ms);
|
||||
if (draw.positions.size() % 3 || draw.indices.size() % (draw.lines ? 2 : 3))
|
||||
throw std::runtime_error("invalid native geometry array size");
|
||||
const auto count = draw.positions.size() / 3;
|
||||
if (count > UINT32_MAX || draw.indices.size() > UINT32_MAX)
|
||||
throw std::runtime_error("geometry exceeds Vulkan index range");
|
||||
|
||||
std::vector<Vertex> vertices(count);
|
||||
unpack_draw_vertices(draw, vertices.data(), count);
|
||||
for (auto index : draw.indices) if (index >= count) throw std::runtime_error("draw index exceeds vertex count");
|
||||
|
||||
geometry.vertex_offset = 0;
|
||||
geometry.index_offset = vertices.size() * sizeof(Vertex);
|
||||
const auto bytes = geometry.index_offset + draw.indices.size() * sizeof(std::uint32_t);
|
||||
if (bytes > 128 * 1024 * 1024) throw std::runtime_error("native geometry buffer exceeds 128 MiB");
|
||||
@@ -466,4 +483,53 @@ void VulkanWindow::upload_geometry(const Render3DDraw& draw, Geometry& geometry)
|
||||
uploaded_bytes_ += bytes;
|
||||
}
|
||||
|
||||
void VulkanWindow::upload_dynamic_geometry(const Render3DDraw& draw, Geometry& geometry) {
|
||||
const ScopedMs timer(timings_.geometry_upload_ms);
|
||||
if (draw.positions.size() % 3 || draw.indices.size() % (draw.lines ? 2 : 3))
|
||||
throw std::runtime_error("invalid native geometry array size");
|
||||
const auto count = draw.positions.size() / 3;
|
||||
if (count > UINT32_MAX || draw.indices.size() > UINT32_MAX)
|
||||
throw std::runtime_error("geometry exceeds Vulkan index range");
|
||||
|
||||
const VkDeviceSize vertex_bytes = count * sizeof(Vertex);
|
||||
const VkDeviceSize index_bytes = draw.indices.size() * sizeof(std::uint32_t);
|
||||
const VkDeviceSize total_bytes = vertex_bytes + index_bytes;
|
||||
if (total_bytes > 128 * 1024 * 1024)
|
||||
throw std::runtime_error("dynamic geometry buffer exceeds 128 MiB");
|
||||
|
||||
const VkDeviceSize aligned_offset = (f_->dynamic_geom_used + 15) & ~VkDeviceSize(15);
|
||||
std::uint8_t* dst = nullptr;
|
||||
|
||||
if (f_->dynamic_geom_mapped && aligned_offset + total_bytes <= f_->dynamic_geom_capacity) {
|
||||
geometry.buffer = f_->dynamic_geom_buffer;
|
||||
geometry.memory = VK_NULL_HANDLE;
|
||||
geometry.vertex_offset = aligned_offset;
|
||||
geometry.index_offset = aligned_offset + vertex_bytes;
|
||||
f_->dynamic_geom_used = aligned_offset + total_bytes;
|
||||
dst = f_->dynamic_geom_mapped + aligned_offset;
|
||||
} else {
|
||||
VkBuffer buffer = VK_NULL_HANDLE;
|
||||
VkDeviceMemory memory = VK_NULL_HANDLE;
|
||||
void* mapped = nullptr;
|
||||
create_host_buffer(total_bytes, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT | VK_BUFFER_USAGE_INDEX_BUFFER_BIT,
|
||||
buffer, memory, &mapped);
|
||||
f_->retired_buffers.emplace_back(buffer, memory);
|
||||
geometry.buffer = buffer;
|
||||
geometry.memory = memory;
|
||||
geometry.vertex_offset = 0;
|
||||
geometry.index_offset = vertex_bytes;
|
||||
dst = static_cast<std::uint8_t*>(mapped);
|
||||
}
|
||||
|
||||
unpack_draw_vertices(draw, reinterpret_cast<Vertex*>(dst), count);
|
||||
for (auto index : draw.indices) if (index >= count) throw std::runtime_error("draw index exceeds vertex count");
|
||||
std::memcpy(dst + vertex_bytes, draw.indices.data(), index_bytes);
|
||||
|
||||
geometry.vertex_count = static_cast<std::uint32_t>(count);
|
||||
geometry.index_count = static_cast<std::uint32_t>(draw.indices.size());
|
||||
geometry.last_used_frame = frame_number_;
|
||||
++upload_count_;
|
||||
uploaded_bytes_ += total_bytes;
|
||||
}
|
||||
|
||||
} // namespace mt_host
|
||||
|
||||
@@ -116,6 +116,9 @@ VulkanWindow::~VulkanWindow() {
|
||||
if (slot.ui_mapped) vkUnmapMemory(device_, slot.ui_memory);
|
||||
if (slot.ui_buffer) vkDestroyBuffer(device_, slot.ui_buffer, nullptr);
|
||||
if (slot.ui_memory) vkFreeMemory(device_, slot.ui_memory, nullptr);
|
||||
if (slot.dynamic_geom_mapped) vkUnmapMemory(device_, slot.dynamic_geom_memory);
|
||||
if (slot.dynamic_geom_buffer) vkDestroyBuffer(device_, slot.dynamic_geom_buffer, nullptr);
|
||||
if (slot.dynamic_geom_memory) vkFreeMemory(device_, slot.dynamic_geom_memory, nullptr);
|
||||
if (slot.fence) vkDestroyFence(device_, slot.fence, nullptr);
|
||||
if (slot.acquire) vkDestroySemaphore(device_, slot.acquire, nullptr);
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <chrono>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <deque>
|
||||
#include <functional>
|
||||
#include <map>
|
||||
#include <string>
|
||||
@@ -37,6 +38,7 @@ class VulkanWindow {
|
||||
struct Geometry {
|
||||
VkBuffer buffer = VK_NULL_HANDLE;
|
||||
VkDeviceMemory memory = VK_NULL_HANDLE;
|
||||
VkDeviceSize vertex_offset = 0;
|
||||
VkDeviceSize index_offset = 0;
|
||||
std::uint64_t last_used_frame = 0;
|
||||
std::uint32_t vertex_count = 0, index_count = 0;
|
||||
@@ -73,7 +75,7 @@ class VulkanWindow {
|
||||
std::uint64_t last_used_frame = 0; // pruned with the textures once unused
|
||||
};
|
||||
struct PreparedDraw {
|
||||
Geometry* geometry = nullptr;
|
||||
const Geometry* geometry = nullptr;
|
||||
VkPipeline pipeline = VK_NULL_HANDLE;
|
||||
VkDescriptorSet descriptor = VK_NULL_HANDLE;
|
||||
PushConstants constants{};
|
||||
@@ -106,6 +108,7 @@ class VulkanWindow {
|
||||
static constexpr VkDeviceSize kUiBufferBytes = kUiVertexBytes + kMaxUiIndicesPerFrame * sizeof(std::uint32_t);
|
||||
static constexpr VkDeviceSize kStagingRingBytes = 4ull * 1024 * 1024;
|
||||
static constexpr VkDeviceSize kStagingRingMaxBytes = 64ull * 1024 * 1024;
|
||||
static constexpr VkDeviceSize kDynamicGeomBytes = 8ull * 1024 * 1024;
|
||||
|
||||
public:
|
||||
struct Timings {
|
||||
@@ -376,6 +379,8 @@ private:
|
||||
|
||||
void upload_geometry(const Render3DDraw& draw, Geometry& geometry);
|
||||
|
||||
void upload_dynamic_geometry(const Render3DDraw& draw, Geometry& geometry);
|
||||
|
||||
bool vsync_ = true;
|
||||
VkPresentModeKHR present_mode_ = VK_PRESENT_MODE_FIFO_KHR;
|
||||
float timestamp_period_ns_ = 1.0f;
|
||||
@@ -467,6 +472,12 @@ private:
|
||||
VkDeviceMemory staging_memory = VK_NULL_HANDLE;
|
||||
std::uint8_t* staging_mapped = nullptr;
|
||||
VkDeviceSize staging_capacity = 0, staging_used = 0, staging_wanted = 0;
|
||||
// Host-visible buffer for immediate / dynamic geometry (particles, text) with zero runtime allocations.
|
||||
VkBuffer dynamic_geom_buffer = VK_NULL_HANDLE;
|
||||
VkDeviceMemory dynamic_geom_memory = VK_NULL_HANDLE;
|
||||
std::uint8_t* dynamic_geom_mapped = nullptr;
|
||||
VkDeviceSize dynamic_geom_capacity = 0, dynamic_geom_used = 0;
|
||||
std::deque<Geometry> dynamic_geometries;
|
||||
// Uploads larger than the ring get their own staging buffer, freed when the slot comes back.
|
||||
std::vector<std::pair<VkBuffer, VkDeviceMemory>> retired_buffers;
|
||||
};
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
static const char c_szArmorShapesScript[] = R"PY(# -*- coding: utf-8 -*-
|
||||
import chrmgr
|
||||
|
||||
SHAPES = {32: "%s_7_1"}
|
||||
SHAPES = {32: "%s_7_1", 40062: "%s_salsa1", 40063: "%s_springwear1"}
|
||||
HAIRS = {161: "hair/hair_16_1", 191: "hair/hair_19_1"}
|
||||
# ShapeData PathName of each race msm (male, female).
|
||||
PATHS = {"warrior": ("pc", "pc2"), "assassin": ("pc2", "pc"), "sura": ("pc", "pc2"), "shaman": ("pc2", "pc")}
|
||||
|
||||
@@ -22,6 +23,9 @@ def Register(name):
|
||||
model = path + model % race
|
||||
chrmgr.SetShapeModel(shape, model + ".gr2")
|
||||
chrmgr.AppendShapeSkin(shape, 0, model + ".dds", model + ".dds")
|
||||
for hair, model in HAIRS.items():
|
||||
model = path + model
|
||||
chrmgr.SetHairSkin(hair, 0, model + ".gr2", model + ".dds", model + ".dds")
|
||||
|
||||
|
||||
def LoadLocalRaceData(name):
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,263 @@
|
||||
// Native shop platform glue; original AVA2 source is kept byte-equivalent after encoding normalization.
|
||||
static const char c_szAva2ShopSupportScript[]=R"PY(# -*- coding: utf-8 -*-
|
||||
import localeInfo,app,item
|
||||
item.ITEM_FLAG_STACKABLE=1<<2
|
||||
app.ENABLE_RENDER_TARGET=True
|
||||
app.ENABLE_MOUSEWHEEL_EVENT=True
|
||||
import ui
|
||||
ui.Window.SetMouseWheelScrollEvent=lambda self,event:setattr(self,'onMouseWheelScrollEvent',event)
|
||||
from mt_biolog import L
|
||||
LOCALE={'CATEGORY_0_NAME': 'Offers', 'CATEGORY_0_SUB_0_NAME': 'Battle pass', 'CATEGORY_0_SUB_1_NAME': 'Special packs', 'CATEGORY_0_SUB_2_NAME': 'Special Offers', 'CATEGORY_1_NAME': 'Special Objects', 'CATEGORY_2_NAME': 'Cosmetics', 'CATEGORY_2_SUB_0_NAME': 'Weapons Skins', 'CATEGORY_2_SUB_1_NAME': 'Body Costume', 'CATEGORY_2_SUB_2_NAME': 'Hairstyles', 'CATEGORY_2_SUB_3_NAME': 'Sash Skin', 'CATEGORY_2_SUB_4_NAME': 'Mount Skin', 'CATEGORY_3_NAME': 'Pets and mounts', 'CATEGORY_3_SUB_0_NAME': 'Mounts', 'CATEGORY_3_SUB_1_NAME': 'Leveable pets', 'CATEGORY_3_SUB_2_NAME': 'Normal pets', 'CATEGORY_4_NAME': 'Dungeons', 'CATEGORY_5_NAME': 'Reinforce Costume', 'CATEGORY_5_SUB_0_NAME': 'Weapon Skin', 'CATEGORY_5_SUB_1_NAME': 'Body Costume', 'CATEGORY_5_SUB_2_NAME': 'Hairstyles', 'CATEGORY_5_SUB_3_NAME': 'Mount Skin', 'CATEGORY_5_SUB_4_NAME': 'Sash Skin', 'CATEGORY_5_SUB_5_NAME': 'Effects', 'CATEGORY_6_NAME': 'Alchemy', 'CATEGORY_7_NAME': 'Equipment', 'ITEMSHOP_BUY': 'Comprar', 'ITEMSHOP_BUY_COIN': 'Home', 'ITEMSHOP_BUY_TEXT': 'Wanna buy |cffF7BD48%s|r ?', 'ITEMSHOP_BUY_TEXT_COUNT': 'Wanna buy |cffF7BD48%sx%d|r ?', 'ITEMSHOP_DRAGONCOINT': 'Dragon Coins', 'ITEMSHOP_HOTITEMS': '|Eishop/hot|ePOPULAR', 'ITEMSHOP_ITEMSEARCH_DEFAULT_TEXT': 'Search the itemshop ...', 'ITEMSHOP_LAST_COUNT': 'Remaining amount: %d', 'ITEMSHOP_OFFERS': '|Eishop/offer|e OFFERS', 'ITEMSHOP_PRICE_NEW': '|Eishop/mini_coin|e %s Coins', 'ITEMSHOP_PRICE_ONLY_TEXT': '%s Coins', 'ITEMSHOP_PRICE_WITH_DISCOUNT': '|Eishop/mini_coin|e |cffFF7B7B%s Coins (%d%%)', 'ITEMSHOP_PURCHASES': 'SHOPPING', 'ITEMSHOP_WHEEL': '|Eishop/wheel_icon|e Roulette', 'ITEMSHOP_WHEEL_BACK_ISHOP': 'Itemhop go back', 'ITEMSHOP_WHEEL_COIN_TEXT': ' |Eishop/coin|e Price: 10 Coins', 'ITEMSHOP_WHEEL_COIN_TEXT_INFO': 'You will use |cffF7BD48Coins|r to spin.', 'ITEMSHOP_WHEEL_PURCHASE': '|Eishop/wheel_icon|e |cffF7BD48Fortune roulette|r', 'ITEMSHOP_WHEEL_SKIP_ANIMATION': 'Skip animation', 'ITEMSHOP_WHEEL_TICKET_TEXT': '|Eishop/wheel_ticket|e x1 ticket', 'ITEMSHOP_WHEEL_TICKET_TEXT_INFO': 'Your are using |cffF7BD48Roulette ticket|r to spin.', 'PURCHASES_ACCOUNTID': 'ID account', 'PURCHASES_DATE': 'Date', 'PURCHASES_IP': 'IP', 'PURCHASES_ITEMBOUGHT': 'Purchased object', 'PURCHASES_PRICE': 'Price', 'PURCHASES_PRICE_TEXT': '|Eishop/mini_coin|e |cfff7bd48%s dragon coins', 'UI_CANCEL': 'Cancel', 'UI_OK': 'OK', 'WHEEL_REWARD_TEXT': 'You have received', 'WHEEL_REWARD_TEXT_1': 'In your inventory', 'WHEEL_REWARD_TITLE': 'Roulette reward', 'YES': 'Buy'}
|
||||
ZH={'YES':'确认','ITEMSHOP_BUY_COIN': '充值', 'ITEMSHOP_WHEEL': '幸运转盘', 'ITEMSHOP_PURCHASES': '购买记录', 'ITEMSHOP_HOTITEMS': '热销商品', 'ITEMSHOP_OFFERS': '限时优惠', 'ITEMSHOP_ITEMSEARCH_DEFAULT_TEXT': '搜索道具名称', 'ITEMSHOP_DRAGONCOINT': '点券', 'ITEMSHOP_BUY': '购买', 'ITEMSHOP_BUY_TEXT': '购买 %s?', 'ITEMSHOP_BUY_TEXT_COUNT': '购买 %s × %d?', 'ITEMSHOP_PRICE_NEW': '价格:%s 点券', 'ITEMSHOP_PRICE_ONLY_TEXT': '%s 点券', 'ITEMSHOP_PRICE_WITH_DISCOUNT': '原价 %s(优惠 %d%%)', 'ITEMSHOP_LAST_COUNT': '剩余:%d', 'PURCHASES_PRICE_TEXT': '支付:%s 点券', 'PURCHASES_DATE': '购买时间', 'PURCHASES_ACCOUNTID': '角色', 'PURCHASES_IP': '登录地址', 'PURCHASES_ITEMBOUGHT': '购买道具', 'PURCHASES_PRICE': '支付金额', 'ITEMSHOP_WHEEL_BACK_ISHOP': '返回商城'}
|
||||
ZH.update({'CATEGORY_0_NAME': '精选优惠', 'CATEGORY_0_SUB_0_NAME': '战令', 'CATEGORY_0_SUB_1_NAME': '超值礼包', 'CATEGORY_0_SUB_2_NAME': '特别优惠', 'CATEGORY_1_NAME': '特殊道具', 'CATEGORY_2_NAME': '外观', 'CATEGORY_2_SUB_0_NAME': '武器外观', 'CATEGORY_2_SUB_1_NAME': '服装', 'CATEGORY_2_SUB_2_NAME': '发型', 'CATEGORY_2_SUB_3_NAME': '披风外观', 'CATEGORY_2_SUB_4_NAME': '坐骑外观', 'CATEGORY_3_NAME': '宠物与坐骑', 'CATEGORY_3_SUB_0_NAME': '坐骑', 'CATEGORY_3_SUB_1_NAME': '成长宠物', 'CATEGORY_3_SUB_2_NAME': '普通宠物', 'CATEGORY_4_NAME': '副本', 'CATEGORY_5_NAME': '外观强化', 'CATEGORY_5_SUB_0_NAME': '武器外观', 'CATEGORY_5_SUB_1_NAME': '服装', 'CATEGORY_5_SUB_2_NAME': '发型', 'CATEGORY_5_SUB_3_NAME': '坐骑外观', 'CATEGORY_5_SUB_4_NAME': '披风外观', 'CATEGORY_5_SUB_5_NAME': '特效', 'CATEGORY_6_NAME': '龙魂炼金', 'CATEGORY_7_NAME': '装备'})
|
||||
for key,value in LOCALE.items():
|
||||
if not hasattr(localeInfo,key):setattr(localeInfo,key,L(value))
|
||||
for key,value in ZH.items():setattr(localeInfo,key,L(value))
|
||||
)PY";
|
||||
static const char c_szAva2ItemShopScript[]=R"PY(# -*- coding: utf-8 -*-
|
||||
import app,chat,constInfo,game,net,os,struct,types,ui
|
||||
import uiItemShopNew as native
|
||||
from mt_biolog import L
|
||||
# AVA2 ui.py calculateRect, retained for the native list's clipping rectangles.
|
||||
def calculateRect(curValue,maxValue):
|
||||
try:return -1.0+float(curValue)/float(maxValue)
|
||||
except:return 0.0
|
||||
ui.calculateRect=calculateRect
|
||||
window=None;pending=None;_serial=0;_next=0;_waiting=False;_requested=0;_queued=False;_logAt=0
|
||||
_product=struct.Struct('<IIqiBiiqiii');_log=struct.Struct('<I25s21si16sIIiq')
|
||||
ERRORS={1:'点券不足。',2:'超过本周限购数量。',3:'超过本月限购数量。',4:'商品库存不足。',5:'商品优惠已过期。',6:'商城暂不可用,请稍后重试。',7:'订单编号冲突,请重新登录。',9:'商品或价格已变化,请确认最新信息后重试。'}
|
||||
# AVA2 image callbacks include an event tag; classic image callbacks omit it.
|
||||
# Adapt only this module's handlers; preserve the original UI class hierarchy.
|
||||
_MISSING=object()
|
||||
def EventTag(original,arity):
|
||||
# Classic ui.__mem_func__ dispatches arguments using co_argcount; keep an explicit parameter.
|
||||
def call(self,first=_MISSING,*rest):
|
||||
args=rest if first is _MISSING else (first,)+rest
|
||||
if len(args)==arity-1:args=(None,)+args
|
||||
return original(self,*args)
|
||||
return call
|
||||
for owner,name,arity in ((native.ItemShopWindow,'ClickCategory',3),(native.ItemShopWindow,'ClickBanner',3),(native.ItemShopItem,'ClickBuyBtn',1),(native.ItemShopItem,'ClickCount',2),(native.ItemShopItem,'ClickItem',2)):
|
||||
if hasattr(owner,name):setattr(owner,name,EventTag(getattr(owner,name),arity))
|
||||
def PreviewItem(self,event=None,vnum=None):
|
||||
import mt_preview
|
||||
mt_preview.Preview('item',int(event if vnum is None else vnum))
|
||||
native.ItemShopItem.ClickItem=PreviewItem
|
||||
# AVA2 submenu radio buttons notify the parent on tooltip leave.
|
||||
class ShopRadio(ui.RadioButton):
|
||||
def SetHideToolTipEvent(self,callback,*args):self.shopLeave=(callback,args)
|
||||
def HideToolTip(self):
|
||||
ui.RadioButton.HideToolTip(self)
|
||||
event=getattr(self,'shopLeave',None)
|
||||
if event:event[0](*event[1])
|
||||
localUI=types.ModuleType('itemshop_ui');localUI.__dict__.update(ui.__dict__);localUI.RadioButton=ShopRadio;native.ui=localUI
|
||||
# No random reward previews from an unported wheel service.
|
||||
native.ItemShopWindow.SetTrailerMode=lambda self:self.children.update({'wheelStep':0,'circleRotation':0,'wheelRotation':0})
|
||||
native.ItemShopWindow.UpdateSingleFortune=lambda self:None
|
||||
_nativeUpdate=native.ItemShopWindow.OnUpdate
|
||||
def NativeUpdate(self):
|
||||
if self.children and 'wheelStep' in self.children:_nativeUpdate(self)
|
||||
native.ItemShopWindow.OnUpdate=NativeUpdate
|
||||
|
||||
|
||||
def Parse(raw):
|
||||
if not raw:raise ValueError('empty shop frame')
|
||||
op=struct.unpack_from('<B',raw)[0];offset=1
|
||||
def read(fmt):
|
||||
value=struct.unpack_from(fmt,raw,read.offset);read.offset+=struct.calcsize(fmt);return value
|
||||
read.offset=1
|
||||
if op==0:
|
||||
coins,revision,categories=read('<qii')
|
||||
if coins<0 or not 0<=categories<=8:raise ValueError('shop catalogue')
|
||||
rows=[];seen=set();groups=set()
|
||||
for unused in range(categories):
|
||||
category,subcount=read('<BB')
|
||||
if category>7 or subcount>10 or category in groups:raise ValueError('shop category')
|
||||
groups.add(category);subs=set()
|
||||
for unused2 in range(subcount):
|
||||
sub,count=read('<BB')
|
||||
if sub>9 or sub in subs:raise ValueError('shop subcategory')
|
||||
subs.add(sub)
|
||||
for unused3 in range(count):
|
||||
p=read(_product.format)
|
||||
if p[0] in seen or not p[0] or not p[1] or not 0<=p[2]<=1000000000000 or p[4]>100 or p[7]<0 or p[8]<0 or p[9]<0 or p[10]<-1:raise ValueError('shop product')
|
||||
seen.add(p[0]);rows.append((category,sub,p))
|
||||
result=(coins,revision,rows)
|
||||
elif op==1:
|
||||
count,=read('<i')
|
||||
if not 0<=count<=100:raise ValueError('shop log size')
|
||||
result=[read(_log.format) for unused in range(count)]
|
||||
elif op==7:
|
||||
token,status,coins=read('<32sBq')
|
||||
if status>9 or coins<0 or any(c not in bytearray(b'0123456789abcdefABCDEF') for c in bytearray(token)):raise ValueError('shop result')
|
||||
result=(token,status,coins)
|
||||
elif op==8:result=None
|
||||
else:raise ValueError('unknown shop message')
|
||||
if read.offset!=len(raw):raise ValueError('trailing shop data')
|
||||
return op,result
|
||||
|
||||
def Request():
|
||||
global _waiting,_requested,_next,_queued
|
||||
now=app.GetTime();_waiting=True;_requested=now;_queued=now<_next
|
||||
if not _queued:net.SendChatPacket('/ishop data -1');_next=now+1.1
|
||||
|
||||
def Toggle():
|
||||
global window
|
||||
if window and window.IsShow():window.Close();return
|
||||
if window is None:
|
||||
window=native.ItemShopWindow();window.SetCenterPosition()
|
||||
# Explicit refresh on every reopen; no stale balance, stock or expired offers.
|
||||
window.children['sendPacketData']=1;window.Show();window.SetTop();window.children['LoadingImage'].Show();Request()
|
||||
|
||||
# Original ItemShopUpdateItem assigned to a loop variable, leaving stored rows unchanged.
|
||||
def UpdateItem(itemID,itemVnum,itemPrice,discount,expiry,top,added,sold,stock):
|
||||
for categories in native.itemshopData.values():
|
||||
for rows in categories:
|
||||
for index,row in enumerate(rows):
|
||||
if row[0]==itemID:rows[index]=[itemID,itemVnum,itemPrice,discount,expiry,top,added,sold,stock]
|
||||
native.ItemShopUpdateItem=UpdateItem
|
||||
|
||||
def Total(unit,count,discount):return unit*count*(100-discount)//100
|
||||
|
||||
_setPrice=native.ItemShopItem.SetPrice
|
||||
def SetPrice(self,unit,discount):
|
||||
_setPrice(self,unit,discount)
|
||||
price=unit*self.buyCount
|
||||
if discount:
|
||||
text=native.localeInfo.ITEMSHOP_PRICE_WITH_DISCOUNT%(native.NumberToMoneyFormat(price),discount)
|
||||
text+='\n '+native.localeInfo.ITEMSHOP_PRICE_ONLY_TEXT%native.NumberToMoneyFormat(Total(unit,self.buyCount,discount))
|
||||
self.childrenTextLine['itemPrice'].SetText(text)
|
||||
native.ItemShopItem.SetPrice=SetPrice
|
||||
_setCoins=native.ItemShopWindow.SetDragonCoin
|
||||
def SetCoins(self,value):
|
||||
_setCoins(self,value);self.MoneyRange=abs(self.MoneyRange)
|
||||
native.ItemShopWindow.SetDragonCoin=SetCoins
|
||||
|
||||
_buyClick=native.ItemShopItem.ClickBuyBtn
|
||||
def BuyClick(self,*args):
|
||||
unit=self.data[native.LIST_ITEM_PRICE];discount=self.data[native.LIST_ITEM_DISCOUNT]
|
||||
total=Total(unit,self.buyCount,discount)
|
||||
self.shopQuote=(self.data[native.LIST_ITEM_ID],self.buyCount,total,self.data[native.LIST_ITEM_VNUM])
|
||||
_buyClick(self,*args)
|
||||
if native.buyQuestionDialog:
|
||||
native.item.SelectItem(self.shopQuote[3])
|
||||
if self.buyCount>1:text=native.localeInfo.ITEMSHOP_BUY_TEXT_COUNT%(native.item.GetItemName(),self.buyCount)
|
||||
else:text=native.localeInfo.ITEMSHOP_BUY_TEXT%native.item.GetItemName()
|
||||
text+='\n'+native.localeInfo.ITEMSHOP_PRICE_NEW%total
|
||||
native.buyQuestionDialog.SetText(text);native.buyQuestionDialog.SetCenterPosition()
|
||||
native.ItemShopItem.ClickBuyBtn=BuyClick
|
||||
|
||||
def AcceptBuy(self):
|
||||
global pending,_serial
|
||||
if pending or not getattr(self,'shopQuote',None):return
|
||||
_serial+=1
|
||||
token=os.urandom(16).encode('hex')
|
||||
product,count,total,vnum=self.shopQuote
|
||||
pending=(token,product,count,app.GetTime(),0,total,vnum)
|
||||
net.SendChatPacket('/ishop buy %d %d %s %d %d'%(pending[1],pending[2],pending[0],pending[5],pending[6]));self.CloseQuestionDialog()
|
||||
native.ItemShopItem.AcceptBuy=AcceptBuy
|
||||
# The source's wheel uses separate game services and reward configuration.
|
||||
# Keep its entry unavailable until that service has been ported and validated.
|
||||
def Wheel(self):chat.AppendChat(chat.CHAT_TYPE_INFO,L('幸运转盘尚未开放。'))
|
||||
def Recharge(self):chat.AppendChat(chat.CHAT_TYPE_INFO,L('充值服务尚未开放。'))
|
||||
native.ItemShopWindow.WheelBtn=Wheel;native.ItemShopWindow.BuyDragonCoin=Recharge
|
||||
# Never open the vendor's external website.
|
||||
native.ItemShopWindow.OpenWeb=lambda self,*args:None
|
||||
|
||||
def Receive(self,raw):
|
||||
global window,pending,_waiting,_logAt
|
||||
try:op,value=Parse(raw)
|
||||
except (ValueError,struct.error,TypeError):
|
||||
chat.AppendChat(chat.CHAT_TYPE_INFO,L('商城数据无效,请重新打开。'));return
|
||||
if op==8:
|
||||
_waiting=False;_logAt=0
|
||||
if window:window.CloseLoading();window.children.pop('sendPacketDataLog',None)
|
||||
chat.AppendChat(chat.CHAT_TYPE_INFO,L(ERRORS[6]));return
|
||||
if op==0:
|
||||
coins,revision,rows=value;native.itemshopData.clear();native.UPDATE_TIME=revision
|
||||
for category,sub,p in rows:native.ItemShopAppendItem(category,sub,p[0],p[1],p[2],p[4],p[5],p[3],p[6],p[7],p[10])
|
||||
_waiting=False
|
||||
if window:window.SetDragonCoin(coins);window.CloseLoading();window.LoadFirstOpening()
|
||||
elif op==1:
|
||||
_logAt=0
|
||||
native.ItemShopLogClear()
|
||||
for p in value:native.ItemShopAppendLog(p[2].split('\0',1)[0],p[3],p[1].split('\0',1)[0],p[4].split('\0',1)[0],p[6],p[7],p[8])
|
||||
if window:window.children['sendPacketDataLog']=1;window.CloseLoading();window.RefreshPurchasesWindow()
|
||||
elif op==7:
|
||||
token,status,coins=value
|
||||
if not pending or pending[0]!=token:return
|
||||
if status==8:return # Commit outcome uncertain: retry the same durable token.
|
||||
pending=None
|
||||
if window:window.SetDragonCoin(coins);window.children.pop('sendPacketDataLog',None)
|
||||
chat.AppendChat(chat.CHAT_TYPE_INFO,L(ERRORS.get(status,'购买成功,道具已发往商城仓库。')))
|
||||
Request()
|
||||
|
||||
_openLog=native.ItemShopWindow.OpenPurchasesWindow
|
||||
def OpenLog(self):
|
||||
global _logAt
|
||||
if 'sendPacketDataLog' not in self.children:_logAt=app.GetTime()
|
||||
_openLog(self)
|
||||
native.ItemShopWindow.OpenPurchasesWindow=OpenLog
|
||||
|
||||
def Tick():
|
||||
global pending,_waiting,_queued,_logAt
|
||||
now=app.GetTime()
|
||||
if _queued and now>=_next:Request()
|
||||
if _logAt and now-_logAt>=10:
|
||||
_logAt=0
|
||||
if window:window.CloseLoading();window.children.pop('sendPacketDataLog',None)
|
||||
chat.AppendChat(chat.CHAT_TYPE_INFO,L('购买记录请求超时,请重新打开。'))
|
||||
if pending and now-pending[3]>=5:
|
||||
# Re-send exactly the same durable order token; never create a replacement payment.
|
||||
token,product,count,unused,attempt,total,vnum=pending
|
||||
if attempt<3:net.SendChatPacket('/ishop buy %d %d %s %d %d'%(product,count,token,total,vnum));pending=(token,product,count,now,attempt+1,total,vnum)
|
||||
elif attempt==3:
|
||||
pending=(token,product,count,now,4,total,vnum);chat.AppendChat(chat.CHAT_TYPE_INFO,L('订单处理中,请查看购买记录;重新登录前不会再次扣款。'))
|
||||
if _waiting and now-_requested>=10:
|
||||
_waiting=False
|
||||
if window:window.CloseLoading()
|
||||
chat.AppendChat(chat.CHAT_TYPE_INFO,L('商城请求超时,请重新打开。'))
|
||||
|
||||
def HandleWheel(delta):
|
||||
if not window or not window.IsShow() or not window.IsIn():return False
|
||||
for key in ('itemListBox','categoryListBox','PurchasesListBox'):
|
||||
box=window.children.get(key)
|
||||
if box and box.IsShow() and box.IsIn():box.OnMouseWheel(delta);return True
|
||||
return True
|
||||
|
||||
def Clear():
|
||||
global window,pending,_waiting,_queued,_logAt,_next
|
||||
if window:window.Close();window.Destroy();window=None
|
||||
pending=None;_waiting=False;_queued=False;_logAt=0;_next=0;native.itemshopData.clear();native.ItemShopLogClear();native.UPDATE_TIME=-1
|
||||
_open=game.GameWindow.Open;_close=game.GameWindow.Close;_update=game.GameWindow.OnUpdate
|
||||
|
||||
def Open(self):
|
||||
_open(self);Clear()
|
||||
self.interface.OpenItemMall=Toggle;self.interface.OpenItemShopWindow=Toggle;self.interface.OpenItemShopMainWindow=Toggle
|
||||
self.onPressKeyDict[app.DIK_F9]=Toggle
|
||||
# Existing classic cash-shop button now opens the native AVA2 catalogue.
|
||||
if getattr(self.interface,'wndTaskBar',None):
|
||||
task=self.interface.wndTaskBar
|
||||
if hasattr(task,'SetItemShopEvent'):task.SetItemShopEvent(Toggle)
|
||||
for name in ('rampageGauge1','rampageGauge2'):
|
||||
gauge=getattr(task,name,None)
|
||||
if gauge:gauge.OnMouseLeftButtonUp=Toggle
|
||||
def Close(self):Clear();return _close(self)
|
||||
def Update(self):_update(self);Tick()
|
||||
game.GameWindow.Open=Open;game.GameWindow.Close=Close;game.GameWindow.OnUpdate=Update
|
||||
game.GameWindow.BINARY_Ava2ItemShop=Receive
|
||||
|
||||
_command=game.GameWindow.BINARY_ServerCommand_Run
|
||||
def Command(self,line):
|
||||
if line.startswith('MTPOINTS '):
|
||||
try:
|
||||
words=line.split()
|
||||
if len(words)!=3:return 1
|
||||
amount,balance=int(words[1]),long(words[2])
|
||||
if not 0<amount<=1000000 or not 0<=balance<=9223372036854775807:return 1
|
||||
except (ValueError,OverflowError):return 1
|
||||
if window:window.SetDragonCoin(balance)
|
||||
chat.AppendChat(chat.CHAT_TYPE_INFO,L('获得 %d 点券,当前余额 %d。')%(amount,balance))
|
||||
return 1
|
||||
return _command(self,line)
|
||||
game.GameWindow.BINARY_ServerCommand_Run=Command
|
||||
)PY";
|
||||
@@ -12,6 +12,9 @@ def Configure(stream,host,port,account_host,account_port):
|
||||
def SetConnectInfo(self,host,port,account_host=0,account_port=0):
|
||||
saved=getattr(self,'_portLiveEndpoint',None)
|
||||
if saved and getattr(self,'_portRestoreLiveEndpoint',False):host,port,account_host,account_port=saved
|
||||
elif saved:
|
||||
if not account_host or account_host==0 or account_host=='0' or str(account_host)=='192.168.21.205':account_host,account_port=saved[2],saved[3]
|
||||
if not host or str(host)=='192.168.21.205':host=saved[0]
|
||||
return _set(self,host,port,account_host,account_port)
|
||||
|
||||
def LoginOpen(self):
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// PORT: native transport owns routing; Python displays status and handles pending-login cancellation.
|
||||
static const char* c_szMeshPortScript = R"PY(# -*- coding: utf-8 -*-
|
||||
import app
|
||||
import sys
|
||||
import ui
|
||||
import wndMgr
|
||||
import player
|
||||
@@ -14,20 +15,36 @@ class NetworkNotice(ui.Window):
|
||||
ui.Window.__init__(self)
|
||||
self.label = ui.TextLine()
|
||||
self.label.SetHorizontalAlignCenter()
|
||||
self.label.SetOutline()
|
||||
self.label.SetFontName("Tahoma:14")
|
||||
self.label.AddFlag("not_pick")
|
||||
self.lastEvent = 0
|
||||
self.hideAt = 0
|
||||
self.Show()
|
||||
|
||||
def OnUpdate(self):
|
||||
event = native.event()
|
||||
if event:
|
||||
if event and event != self.lastEvent:
|
||||
self.lastEvent = event
|
||||
messages = {1: '正在组网,等待动态分配 IP...',
|
||||
2: '组网成功', 3: '组网连接失败,请检查网络后重试'}
|
||||
self.label.SetText(player.AutoHuntLocalize(messages[event]))
|
||||
self.label.SetPackedFontColor(0xff66ee88 if event == 2 else 0xffffdd77)
|
||||
self.label.SetPosition(wndMgr.GetScreenWidth() / 2, 32)
|
||||
self.label.Show()
|
||||
self.label.SetTop()
|
||||
self.hideAt = app.GetTime() + (65 if event == 1 else 6)
|
||||
mobile = sys.modules.get('mt_mobile_hud')
|
||||
inGame = bool(mobile and getattr(mobile, 'g_hud', None))
|
||||
self.hideAt = app.GetTime() + (5 if event == 1 and inGame else 65 if event == 1 else 6)
|
||||
# In-game notices live below status/buffs, outside menus, FPS and map announcements.
|
||||
mobile = sys.modules.get('mt_mobile_hud')
|
||||
hud = getattr(mobile, 'g_hud', None) if mobile else None
|
||||
if hud:
|
||||
self.label.SetHorizontalAlignLeft()
|
||||
self.label.SetPosition(*hud.networkNoticePosition)
|
||||
else:
|
||||
self.label.SetHorizontalAlignCenter()
|
||||
self.label.SetPosition(wndMgr.GetScreenWidth() / 2,
|
||||
min(72, max(52, int(wndMgr.GetScreenHeight()*.12))))
|
||||
if self.hideAt and app.GetTime() >= self.hideAt:
|
||||
self.label.Hide()
|
||||
self.hideAt = 0
|
||||
@@ -43,6 +60,7 @@ def _wrap_cancel(method):
|
||||
if net.CancelPendingLogin():
|
||||
notice.label.Hide()
|
||||
notice.hideAt = 0
|
||||
notice.lastEvent = 0
|
||||
return method(self, *args)
|
||||
return Cancel
|
||||
|
||||
|
||||
@@ -8,6 +8,10 @@ import wndMgr
|
||||
import mt_dungeons
|
||||
import mt_battlepass
|
||||
import mt_biolog
|
||||
import player
|
||||
|
||||
# Source literals are UTF-8; classic text widgets consume the active locale code page.
|
||||
L = player.AutoHuntLocalize
|
||||
|
||||
|
||||
class MapTextToolTip(ui.Window):
|
||||
@@ -25,7 +29,7 @@ class MapTextToolTip(ui.Window):
|
||||
ui.Window.__del__(self)
|
||||
|
||||
def SetText(self, text):
|
||||
self.textLine.SetText(text)
|
||||
self.textLine.SetText(L(text))
|
||||
|
||||
def SetTooltipPosition(self, PosX, PosY):
|
||||
self.textLine.SetPosition(PosX - 5, PosY)
|
||||
@@ -146,7 +150,7 @@ class MinimapOuterRing(object):
|
||||
btnSwitch.SetDownVisual("d:/ymir work/ui/game/new_inventory/switch_2.tga")
|
||||
btnSwitch.SetPosition(37, 0)
|
||||
if hasattr(btnSwitch, 'SetToolTipText'):
|
||||
btnSwitch.SetToolTipText("自动洗练")
|
||||
btnSwitch.SetToolTipText(L("自动洗练"))
|
||||
btnSwitch.SetEvent(lambda: interface.ToggleSwitchbotWindow())
|
||||
btnSwitch.Show()
|
||||
wndExpandedTaskBar.btnSwitchbot = btnSwitch
|
||||
@@ -165,7 +169,7 @@ class MinimapOuterRing(object):
|
||||
btnWiki.SetDownVisual("d:/ymir work/ui/game/new_inventory/wiki_2.tga")
|
||||
btnWiki.SetPosition(74, 0)
|
||||
if hasattr(btnWiki, 'SetToolTipText'):
|
||||
btnWiki.SetToolTipText("游戏百科")
|
||||
btnWiki.SetToolTipText(L("游戏百科"))
|
||||
btnWiki.SetEvent(wiki_toggle)
|
||||
btnWiki.Show()
|
||||
wndExpandedTaskBar.btnWiki = btnWiki
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// PORT: mobile presentation; menu actions and player data use the existing client APIs.
|
||||
static const char c_szMobileHUDScript[] = R"PY(# -*- coding: utf-8 -*-
|
||||
import app
|
||||
import chat
|
||||
import systemSetting
|
||||
import game
|
||||
import grp
|
||||
import math
|
||||
@@ -30,9 +32,12 @@ class RoundAction(ui.Window):
|
||||
def __init__(self, parent, text, action, icon=None):
|
||||
ui.Window.__init__(self)
|
||||
self.SetParent(parent)
|
||||
self.AddFlag("float")
|
||||
self.action = action
|
||||
self.down = False
|
||||
self.active = False
|
||||
self.visualScale = 1.0
|
||||
self.hasCaption = bool(text)
|
||||
self.label = _Text(self, text)
|
||||
self.label.SetHorizontalAlignCenter()
|
||||
self.label.SetVerticalAlignCenter()
|
||||
@@ -51,22 +56,27 @@ class RoundAction(ui.Window):
|
||||
self.SetSize(int(size), int(size))
|
||||
self.label.SetPosition(int(size/2), int(size/2))
|
||||
if self.icon:
|
||||
edge = size * .62
|
||||
edge = size * (.48 if self.hasCaption else .62) * self.visualScale
|
||||
self.icon.SetScale(edge / max(1, self.iconSize[0]), edge / max(1, self.iconSize[1]))
|
||||
self.icon.SetPosition(int((size-edge)/2), int((size-edge)/2))
|
||||
self.icon.SetPosition(int((size-edge)/2), int(size*(.39 if self.hasCaption else .5)-edge/2))
|
||||
if self.hasCaption:
|
||||
self.label.SetPosition(int(size/2), int(size*.72))
|
||||
|
||||
def OnRender(self):
|
||||
x, y = self.GetGlobalPosition()
|
||||
r = self.GetWidth()/2.0
|
||||
diameter = max(1, int(self.GetWidth()*self.visualScale))
|
||||
x += (self.GetWidth()-diameter)/2.0
|
||||
y += (self.GetHeight()-diameter)/2.0
|
||||
r = diameter/2.0
|
||||
if getattr(self, "active", False):
|
||||
grp.SetColor(0xEE207028 if self.down else 0xCC185820)
|
||||
else:
|
||||
grp.SetColor(0xE0664B2D if self.down else 0xBB281A16)
|
||||
# Horizontal strips fill a round button without requiring extra image assets.
|
||||
for row in xrange(0, self.GetHeight(), 3):
|
||||
for row in xrange(0, diameter, 3):
|
||||
dy = min(r, row + 1.5 - r)
|
||||
half = math.sqrt(max(0, r*r - dy*dy))
|
||||
grp.RenderBar(x+r-half, y+row, half*2, min(3, self.GetHeight()-row))
|
||||
grp.RenderBar(x+r-half, y+row, half*2, min(3, diameter-row))
|
||||
if getattr(self, "active", False):
|
||||
grp.SetColor(0xFFB0FFB0 if self.down else 0xFF80FF90)
|
||||
else:
|
||||
@@ -117,11 +127,7 @@ class Status(ui.Window):
|
||||
taskbar.GetChild(name).Hide()
|
||||
self.face = RoundAction(self, "", action, uiCharacter.FACE_IMAGE_DICT.get(net.GetMainActorRace()))
|
||||
self.name = _Text(self, "")
|
||||
self.hp = _Text(self, "")
|
||||
self.sp = _Text(self, "")
|
||||
self.energy = _Text(self, "")
|
||||
self.hp.SetHorizontalAlignCenter()
|
||||
self.sp.SetHorizontalAlignCenter()
|
||||
self.values = (0, 1, 0, 1, 0, 1)
|
||||
self.lastStatus = None
|
||||
self.Show()
|
||||
@@ -129,7 +135,7 @@ class Status(ui.Window):
|
||||
def Place(self, scale):
|
||||
self.scale = scale
|
||||
self.SetPosition(int(12*scale), int(10*scale))
|
||||
self.SetSize(int(290*scale), int(88*scale))
|
||||
self.SetSize(int(300*scale), int(80*scale))
|
||||
# The original three bars are native-size: their outer frame is 34 pixels tall.
|
||||
self.face.Place(18*scale, 14*scale+12, 34)
|
||||
self.name.SetPosition(int(66*scale), 0)
|
||||
@@ -137,11 +143,7 @@ class Status(ui.Window):
|
||||
bar_x = int(18*scale) + 34 - 56
|
||||
self.gauge.SetPosition(bar_x, int(14*scale))
|
||||
self.frame.SetPosition(bar_x, int(14*scale))
|
||||
self.hp.SetHorizontalAlignLeft()
|
||||
self.sp.SetHorizontalAlignLeft()
|
||||
self.hp.SetPosition(bar_x+166, int(24*scale))
|
||||
self.sp.SetPosition(bar_x+166, int(42*scale))
|
||||
self.energy.SetPosition(int(66*scale), int(68*scale))
|
||||
self.energy.SetPosition(int(66*scale), int(56*scale))
|
||||
|
||||
def Refresh(self):
|
||||
hp, mh = player.GetStatus(player.HP), player.GetStatus(player.MAX_HP)
|
||||
@@ -154,8 +156,6 @@ class Status(ui.Window):
|
||||
self.taskbar.RefreshStatus()
|
||||
self.lastStatus = status
|
||||
self.name.SetText("%s Lv.%d" % (player.GetName(), player.GetStatus(player.LEVEL)))
|
||||
self.hp.SetText("%d / %d" % (hp, mh) if mh > 0 else "--")
|
||||
self.sp.SetText("%d / %d" % (sp, ms) if ms > 0 else "--")
|
||||
energy = player.GetStatus(player.ENERGY)
|
||||
remaining = player.GetStatus(player.ENERGY_END_TIME) - app.GetGlobalTimeStamp()
|
||||
if energy > 0 and remaining > 0:
|
||||
@@ -187,7 +187,13 @@ class HUD(ui.Window):
|
||||
self.taskbar.IsShow = self.IsShow
|
||||
self.chat = weakref.proxy(interface.wndChat)
|
||||
self.chatColors = (self.chat.BOARD_START_COLOR, self.chat.BOARD_END_COLOR, self.chat.BOARD_MIDDLE_COLOR)
|
||||
self.chat.BOARD_START_COLOR = self.chat.BOARD_END_COLOR = self.chat.BOARD_MIDDLE_COLOR = 0
|
||||
self.chat.BOARD_MIDDLE_COLOR = 0xCC141719
|
||||
self.chatRenderOriginal = self.chat.OnRender
|
||||
self.chat.OnRender = self.RenderChatPreview
|
||||
self.chatWidthOriginal = self.chat.CHAT_WINDOW_WIDTH
|
||||
self.chatInputSizeOriginal = (self.chat.chatInputSet.GetWidth(), self.chat.chatInputSet.GetHeight())
|
||||
self.chatPositionOriginal = self.chat.GetLocalPosition()
|
||||
self.chatPlacement = None
|
||||
self.status = Status(self, interface.wndTaskBar, interface.ToggleCharacterWindowStatusPage)
|
||||
self.experience = self.taskbar.expGaugeBoard
|
||||
self.experiencePosition = self.experience.GetLocalPosition()
|
||||
@@ -198,10 +204,10 @@ class HUD(ui.Window):
|
||||
point.AddFlag("not_pick")
|
||||
self.experienceText = _Text(self.experience, "")
|
||||
self.top = []
|
||||
for text, index, action in (("", 0, interface.ToggleCharacterWindowStatusPage),
|
||||
("", 1, interface.ToggleInventoryWindow),
|
||||
("", 2, interface.ToggleMessenger),
|
||||
("", 3, interface.ToggleSystemDialog)):
|
||||
for text, index, action in (("角色", 0, interface.ToggleCharacterWindowStatusPage),
|
||||
("背包", 1, interface.ToggleInventoryWindow),
|
||||
("好友", 2, interface.ToggleMessenger),
|
||||
("设置", 3, interface.ToggleSystemDialog)):
|
||||
self.top.append(RoundAction(self, text, action, self.taskbar.toggleButtonDict[index].GetUpVisualFileName()))
|
||||
def _OnAutoHuntAction():
|
||||
try:
|
||||
@@ -214,41 +220,120 @@ class HUD(ui.Window):
|
||||
self.btnAutoHunt,
|
||||
RoundAction(self, "帮助", interface.OpenHelpWindow),
|
||||
RoundAction(self, "聊天", interface.ToggleChat)]
|
||||
import mt_itemshop
|
||||
self.shop = RoundAction(self, "商城", mt_itemshop.Toggle)
|
||||
self.menuExpanded = False
|
||||
self.more = RoundAction(self, "更多", self.ToggleMore)
|
||||
# Secondary menu art is 28% smaller; hit rectangles remain comfortably tappable.
|
||||
for button in self.top + self.side + [self.shop, self.more]:
|
||||
button.visualScale = .72
|
||||
self.drawer = [self.top[0], self.top[2], self.top[3]] + self.side
|
||||
self.menuBackdrop = ui.Bar()
|
||||
self.menuBackdrop.SetParent(self)
|
||||
self.menuBackdrop.SetWindowName("MobileMenuPanel")
|
||||
self.menuBackdrop.AddFlag("float")
|
||||
self.menuBackdrop.SetColor(0xD0181715)
|
||||
self.menuBackdrop.Hide()
|
||||
for button in self.drawer:
|
||||
button.Hide()
|
||||
# Close the drawer before handing off to the original window actions.
|
||||
for button in self.top + self.side + [self.shop]:
|
||||
action = button.action
|
||||
button.action = lambda action=action: self.RunMenuAction(action)
|
||||
self.dimensions = None
|
||||
self.OnUpdate()
|
||||
self.Show()
|
||||
|
||||
def ToggleMore(self):
|
||||
self.menuExpanded = not self.menuExpanded
|
||||
self.more.label.SetText(L("收起" if self.menuExpanded else "更多"))
|
||||
self.more.active = self.menuExpanded
|
||||
if self.menuExpanded:
|
||||
self.menuBackdrop.Show()
|
||||
self.menuBackdrop.SetTop()
|
||||
else:
|
||||
self.menuBackdrop.Hide()
|
||||
for button in self.drawer:
|
||||
if self.menuExpanded:
|
||||
button.Show()
|
||||
button.SetTop()
|
||||
else: button.Hide()
|
||||
|
||||
def RunMenuAction(self, action):
|
||||
if self.menuExpanded:
|
||||
self.ToggleMore()
|
||||
action()
|
||||
|
||||
def RenderChatPreview(self):
|
||||
if self.chat.IsEditMode():
|
||||
return self.chatRenderOriginal()
|
||||
if not systemSetting.IsViewChat():
|
||||
return
|
||||
lines = min(3, chat.GetVisibleLineCount(self.chat.chatID))
|
||||
if not lines:
|
||||
return
|
||||
x, y = self.chat.GetGlobalPosition()
|
||||
base = y+self.chat.EDIT_LINE_HEIGHT
|
||||
step = chat.GetLineStep(self.chat.chatID)
|
||||
top = base-lines*step-1
|
||||
grp.SetColor(0x66141619)
|
||||
grp.RenderBar(x, top-3, self.chatPreviewWidth, lines*step+7)
|
||||
chat.RenderPreview(self.chat.chatID, int(x+6), int(top),
|
||||
int(self.chatPreviewWidth-12), int(lines*step+1))
|
||||
|
||||
def Show(self):
|
||||
ui.Window.Show(self)
|
||||
self.SetTop()
|
||||
|
||||
def Hide(self):
|
||||
if getattr(self, 'menuExpanded', False):
|
||||
self.ToggleMore()
|
||||
ui.Window.Hide(self)
|
||||
|
||||
def OnUpdate(self):
|
||||
w, h = wndMgr.GetScreenWidth(), wndMgr.GetScreenHeight()
|
||||
target = max(48, mt_mobile_inventory.touch_target)
|
||||
dimensions = (w, h, target)
|
||||
if dimensions != self.dimensions:
|
||||
self.dimensions = dimensions
|
||||
s = max(target/52.0, min(1.35, max(.65, min(h/600.0, w/800.0))))
|
||||
# Keep spacing compact while preserving the device's minimum hit target.
|
||||
s = min(1.1, max(.65, min(h/600.0, w/800.0)))
|
||||
self.SetSize(w, h)
|
||||
self.status.Place(s)
|
||||
self.experience.SetPosition(int(12*s), int(h-self.experience.GetHeight()-6*s))
|
||||
self.experienceText.SetPosition(self.experience.GetWidth()+6, 10)
|
||||
size, gap = max(target, 48*s), 8*s
|
||||
for i, button in enumerate(self.top):
|
||||
button.Place(w-12*s-(4-i)*(size+gap), 10*s, size)
|
||||
for i, button in enumerate(self.side):
|
||||
if h < 520 or s > 1.25:
|
||||
button.Place(12*s+i*(size+gap), 140*s, size)
|
||||
else:
|
||||
button.Place(12*s, 140*s+i*(size+gap), size)
|
||||
self.window.affectShower.SetPosition(int(18*s), int(104*s))
|
||||
size, gap = max(target, 48*s), 6*s
|
||||
minimap = self.window.interface.wndMiniMap
|
||||
minimap.SetWindowHorizontalAlignLeft()
|
||||
minimap.SetWindowVerticalAlignTop()
|
||||
minimap.SetPosition(int(w-minimap.GetWidth()-12*s), int(72*s))
|
||||
chat = self.window.interface.wndChat
|
||||
chat.SetPosition(int(180*s), int(h-86*s))
|
||||
chat.Refresh()
|
||||
minimap.SetPosition(int(w-minimap.GetWidth()-12*s), int(10*s))
|
||||
# Three named primary entries; the remaining actions live in a temporary drawer.
|
||||
menus = [self.top[1], self.shop, self.more]
|
||||
menuX = w-minimap.GetWidth()-30*s-3*size-2*gap
|
||||
for i, button in enumerate(menus):
|
||||
button.Place(menuX+i*(size+gap), 10*s, size)
|
||||
drawerX = max(12*s, menuX)
|
||||
drawerY = 20*s+size
|
||||
rows = (len(self.drawer)+2)//3
|
||||
self.menuBackdrop.SetPosition(int(drawerX-6*s), int(drawerY-6*s))
|
||||
self.menuBackdrop.SetSize(int(3*size+2*gap+12*s), int(rows*(size+gap)-gap+12*s))
|
||||
for i, button in enumerate(self.drawer):
|
||||
button.Place(drawerX+(i%3)*(size+gap), drawerY+(i//3)*(size+gap), size)
|
||||
self.window.affectShower.SetPosition(int(18*s), int(124*s))
|
||||
self.networkNoticePosition = (int(18*s), int(156*s))
|
||||
self.chatPreviewWidth = min(310*s, w*.32)
|
||||
self.chat.CHAT_WINDOW_WIDTH = int(min(600, w-24*s))
|
||||
self.chat.chatInputSet.SetSize(self.chat.CHAT_WINDOW_WIDTH-50, 25)
|
||||
self.chat.chatInputSet.RefreshPosition()
|
||||
self.chatPlacement = None
|
||||
edit = self.chat.IsEditMode()
|
||||
placement = (w, h, target, edit)
|
||||
if self.chatPlacement != placement:
|
||||
self.chatPlacement = placement
|
||||
s = min(1.1, max(.65, min(h/600.0, w/800.0)))
|
||||
x = max(12*s, (w-self.chat.CHAT_WINDOW_WIDTH)/2) if edit else max(192*s, w*.23)
|
||||
self.chat.SetPosition(int(x), int(h-64*s))
|
||||
self.chat.Refresh()
|
||||
# The original help prompt would duplicate the touch-sized left-side entry.
|
||||
self.window.interface.wndGameButton.gameButtonDict["HELP"].Hide()
|
||||
energy = self.window.interface.wndEnergyBar
|
||||
@@ -269,13 +354,20 @@ class HUD(ui.Window):
|
||||
|
||||
def Destroy(self):
|
||||
self.Hide()
|
||||
self.chat.OnRender = self.chatRenderOriginal
|
||||
self.chat.CHAT_WINDOW_WIDTH = self.chatWidthOriginal
|
||||
self.chat.chatInputSet.SetSize(*self.chatInputSizeOriginal)
|
||||
self.chat.chatInputSet.RefreshPosition()
|
||||
self.chat.SetPosition(*self.chatPositionOriginal)
|
||||
self.chat.Refresh()
|
||||
self.chatRenderOriginal = None
|
||||
self.chat.BOARD_START_COLOR, self.chat.BOARD_END_COLOR, self.chat.BOARD_MIDDLE_COLOR = self.chatColors
|
||||
self.taskbar.Show, self.taskbar.Hide, self.taskbar.IsShow = self.original
|
||||
self.status.Restore()
|
||||
self.experience.Hide()
|
||||
self.experience.SetParent(self.taskbar)
|
||||
self.experience.SetPosition(*self.experiencePosition)
|
||||
for button in self.top + self.side:
|
||||
for button in self.top + self.side + [self.shop, self.more]:
|
||||
button.action = None
|
||||
self.window = None
|
||||
|
||||
|
||||
@@ -418,6 +418,15 @@ void UIMouseButton(int button, bool pressed, int x, int y)
|
||||
|
||||
void UIMouseWheel(int nLen)
|
||||
{
|
||||
// AVA2 native shop consumes wheel input inside its list, before camera zoom.
|
||||
PyObject* shop=PyDict_GetItemString(PyImport_GetModuleDict(),"mt_itemshop");
|
||||
if(shop) {
|
||||
PyObject* result=PyObject_CallMethod(shop,const_cast<char*>("HandleWheel"),const_cast<char*>("i"),nLen);
|
||||
const bool handled=result && PyObject_IsTrue(result)>0;
|
||||
Py_XDECREF(result);if(PyErr_Occurred())PyErr_Clear();
|
||||
if(handled)return;
|
||||
}
|
||||
|
||||
CCameraManager& rkCmrMgr = CCameraManager::Instance();
|
||||
CCamera* pkCmrCur = rkCmrMgr.GetCurrentCamera();
|
||||
if (pkCmrCur)
|
||||
@@ -681,6 +690,15 @@ void CameraRotateBy(float rollDeg, float pitchDeg)
|
||||
pkCmrCur->RotateEyeAroundTarget(pitchDeg, rollDeg);
|
||||
}
|
||||
|
||||
void CameraZoomBy(float distanceRatio)
|
||||
{
|
||||
CCamera* camera = CCameraManager::Instance().GetCurrentCamera();
|
||||
if (!camera || camera->IsLock() || !std::isfinite(distanceRatio) || distanceRatio <= 0.0f)
|
||||
return;
|
||||
camera->SetDistance(camera->GetDistance() * std::clamp(distanceRatio, 0.5f, 2.0f));
|
||||
// The normal CCamera::Update still enforces its configured min/max and terrain collision.
|
||||
}
|
||||
|
||||
void SetTouchInput(bool touch)
|
||||
{
|
||||
g_touch_input = touch;
|
||||
@@ -1051,6 +1069,8 @@ namespace PythonBoot
|
||||
#include "Ava2WikiSource.inc"
|
||||
#include "Ava2DropItemSource.inc"
|
||||
#include "Ava2NativeInterfacesScript.inc"
|
||||
#include "Ava2ItemShopNewSource.inc"
|
||||
#include "Ava2ItemShopScript.inc"
|
||||
#include "AttrLockSnapshotsScript.inc"
|
||||
#include "LiveEndpointScript.inc"
|
||||
#include "NativeChannelScript.inc"
|
||||
@@ -1170,6 +1190,9 @@ bool RunMainScript(const char* lpCmdLine, std::string* error)
|
||||
install_script_module("uiWiki",c_szAva2WikiSource);
|
||||
install_script_module("uiDropItem",c_szAva2DropItemSource);
|
||||
install_script_module("mt_ava2_native_interfaces",c_szAva2NativeInterfacesScript);
|
||||
install_script_module("mt_ava2_shop_support",c_szAva2ShopSupportScript);
|
||||
install_script_module("uiItemShopNew",c_szAva2ItemShopNewSource);
|
||||
install_script_module("mt_itemshop",c_szAva2ItemShopScript);
|
||||
install_script_module("mt_minimap_buttons", c_szMinimapOuterRingScript);
|
||||
if (g_touch_input)
|
||||
install_script_module("mt_mobile_hud", c_szMobileHUDScript);
|
||||
|
||||
@@ -102,6 +102,8 @@ bool UIIsAttaching();
|
||||
void UIDeattachObject();
|
||||
// Turns the camera around the player immediately, without CCamera::Drag's decaying velocity.
|
||||
void CameraRotateBy(float rollDeg, float pitchDeg);
|
||||
// PORT mobile pinch: immediate proportional zoom; native camera update retains distance/collision limits.
|
||||
void CameraZoomBy(float distanceRatio);
|
||||
bool IsPointInsideActiveUI(int x, int y);
|
||||
// Touch hosts: hide 40250's on-screen login keypad (the system keyboard types instead).
|
||||
// Also drops the mouse arrow: touch hosts run 40250's hardware-cursor mode with no OS cursor, so
|
||||
|
||||
@@ -354,6 +354,45 @@ bool CParticleSystemInstance::OnUpdate(float fElapsedTime)
|
||||
|
||||
namespace NParticleRenderer
|
||||
{
|
||||
static std::vector<TPTVertex> s_batchedVertices;
|
||||
static std::vector<WORD> s_batchedIndices;
|
||||
|
||||
void FlushBatch()
|
||||
{
|
||||
if (s_batchedVertices.empty())
|
||||
return;
|
||||
|
||||
const UINT primCount = static_cast<UINT>(s_batchedIndices.size() / 3);
|
||||
STATEMANAGER.DrawIndexedPrimitiveUP(
|
||||
D3DPT_TRIANGLELIST,
|
||||
0,
|
||||
static_cast<UINT>(s_batchedVertices.size()),
|
||||
primCount,
|
||||
s_batchedIndices.data(),
|
||||
D3DFMT_INDEX16,
|
||||
s_batchedVertices.data(),
|
||||
sizeof(TPTVertex));
|
||||
|
||||
s_batchedVertices.clear();
|
||||
s_batchedIndices.clear();
|
||||
}
|
||||
|
||||
inline void AppendQuad(const TPTVertex* quadMesh)
|
||||
{
|
||||
if (s_batchedVertices.size() + 4 > 65530)
|
||||
FlushBatch();
|
||||
|
||||
const WORD baseIndex = static_cast<WORD>(s_batchedVertices.size());
|
||||
s_batchedVertices.insert(s_batchedVertices.end(), quadMesh, quadMesh + 4);
|
||||
|
||||
s_batchedIndices.push_back(baseIndex + 0);
|
||||
s_batchedIndices.push_back(baseIndex + 1);
|
||||
s_batchedIndices.push_back(baseIndex + 2);
|
||||
s_batchedIndices.push_back(baseIndex + 2);
|
||||
s_batchedIndices.push_back(baseIndex + 1);
|
||||
s_batchedIndices.push_back(baseIndex + 3);
|
||||
}
|
||||
|
||||
struct TwoSideRenderer
|
||||
{
|
||||
const D3DXMATRIX * pmat;
|
||||
@@ -365,10 +404,10 @@ namespace NParticleRenderer
|
||||
inline void operator () (CParticleInstance * pInstance)
|
||||
{
|
||||
pInstance->Transform(pmat,D3DXToRadian(-30.0f));
|
||||
STATEMANAGER.DrawPrimitiveUP(D3DPT_TRIANGLESTRIP, 2, pInstance->GetParticleMeshPointer(), sizeof(TPTVertex));
|
||||
AppendQuad(pInstance->GetParticleMeshPointer());
|
||||
|
||||
pInstance->Transform(pmat,D3DXToRadian(+30.0f));
|
||||
STATEMANAGER.DrawPrimitiveUP(D3DPT_TRIANGLESTRIP, 2, pInstance->GetParticleMeshPointer(), sizeof(TPTVertex));
|
||||
AppendQuad(pInstance->GetParticleMeshPointer());
|
||||
}
|
||||
};
|
||||
|
||||
@@ -383,11 +422,11 @@ namespace NParticleRenderer
|
||||
inline void operator () (CParticleInstance * pInstance)
|
||||
{
|
||||
pInstance->Transform(pmat);
|
||||
STATEMANAGER.DrawPrimitiveUP(D3DPT_TRIANGLESTRIP, 2, pInstance->GetParticleMeshPointer(), sizeof(TPTVertex));
|
||||
AppendQuad(pInstance->GetParticleMeshPointer());
|
||||
pInstance->Transform(pmat,D3DXToRadian(-60.0f));
|
||||
STATEMANAGER.DrawPrimitiveUP(D3DPT_TRIANGLESTRIP, 2, pInstance->GetParticleMeshPointer(), sizeof(TPTVertex));
|
||||
AppendQuad(pInstance->GetParticleMeshPointer());
|
||||
pInstance->Transform(pmat,D3DXToRadian(+60.0f));
|
||||
STATEMANAGER.DrawPrimitiveUP(D3DPT_TRIANGLESTRIP, 2, pInstance->GetParticleMeshPointer(), sizeof(TPTVertex));
|
||||
AppendQuad(pInstance->GetParticleMeshPointer());
|
||||
}
|
||||
};
|
||||
|
||||
@@ -396,7 +435,7 @@ namespace NParticleRenderer
|
||||
inline void operator () (CParticleInstance * pInstance)
|
||||
{
|
||||
pInstance->Transform();
|
||||
STATEMANAGER.DrawPrimitiveUP(D3DPT_TRIANGLESTRIP, 2, pInstance->GetParticleMeshPointer(), sizeof(TPTVertex));
|
||||
AppendQuad(pInstance->GetParticleMeshPointer());
|
||||
}
|
||||
};
|
||||
struct AttachRenderer
|
||||
@@ -410,7 +449,7 @@ namespace NParticleRenderer
|
||||
inline void operator () (CParticleInstance * pInstance)
|
||||
{
|
||||
pInstance->Transform(pmat);
|
||||
STATEMANAGER.DrawPrimitiveUP(D3DPT_TRIANGLESTRIP, 2, pInstance->GetParticleMeshPointer(), sizeof(TPTVertex));
|
||||
AppendQuad(pInstance->GetParticleMeshPointer());
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -460,6 +499,7 @@ void CParticleSystemInstance::OnRender()
|
||||
ForEachParticleRendering(obj);
|
||||
}
|
||||
}
|
||||
NParticleRenderer::FlushBatch();
|
||||
}
|
||||
|
||||
void CParticleSystemInstance::OnSetDataPointer(CEffectElementBase * pElement)
|
||||
|
||||
@@ -11,6 +11,11 @@
|
||||
|
||||
class CParticleSystemData; // PORT: MSVC makes the friend declarations in the included headers visible; ISO C++ needs this
|
||||
|
||||
namespace NParticleRenderer
|
||||
{
|
||||
void FlushBatch();
|
||||
}
|
||||
|
||||
class CParticleSystemInstance : public CEffectElementBaseInstance
|
||||
{
|
||||
public:
|
||||
@@ -33,9 +38,10 @@ class CParticleSystemInstance : public CEffectElementBaseInstance
|
||||
for (; itor != m_ParticleInstanceListVector[dwFrameIndex].end(); ++itor)
|
||||
{
|
||||
if (!InFrustum(*itor))
|
||||
return;
|
||||
continue;
|
||||
FunObj(*itor);
|
||||
}
|
||||
NParticleRenderer::FlushBatch();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@ class CItemData
|
||||
ITEM_TYPE_SHINING, //35 PORT: AVA2 shining (not ported, keeps the AVA2 numbering)
|
||||
ITEM_TYPE_RINGS, //36 PORT: AVA2 new rings, worn in c_Equipment_Rings1/2
|
||||
|
||||
ITEM_TYPE_PET, // PORT: AVA2 pet type 37.
|
||||
|
||||
ITEM_TYPE_MAX_NUM,
|
||||
};
|
||||
|
||||
@@ -108,6 +110,9 @@ class CItemData
|
||||
COSTUME_MOUNT = 2, // PORT: AVA2 mount costume (value0 = horse race)
|
||||
COSTUME_SASH = 3, // PORT: AVA2 sash
|
||||
COSTUME_MOUNT_SKIN = 4, // PORT: AVA2 mount skin (needs a worn COSTUME_MOUNT)
|
||||
COSTUME_WEAPON = 5, // PORT: local subtype mapping.
|
||||
COSTUME_NEW_SASH = 6,
|
||||
COSTUME_PET = 7,
|
||||
COSTUME_NUM_TYPES,
|
||||
};
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
#include "../GameLib/ItemData.h"
|
||||
#include "../common/PortItemExtra.h"
|
||||
|
||||
struct SAffects
|
||||
{
|
||||
@@ -111,12 +112,19 @@ enum EDragonSoulStepTypes
|
||||
const DWORD c_Equipment_Pendant = c_Equipment_Start + 27; // PORT: AVA2 talisman, server WEAR_PENDANT
|
||||
const DWORD c_Equipment_Rings1 = c_Equipment_Start + 28; // PORT: AVA2 new rings, server WEAR_RINGS_1/2
|
||||
const DWORD c_Equipment_Rings2 = c_Equipment_Start + 29;
|
||||
const DWORD c_Costume_Slot_Weapon = c_Equipment_Start + 30;
|
||||
const DWORD c_Costume_Slot_Pet = c_Equipment_Start + 31;
|
||||
const DWORD c_Pet_Slot = c_Equipment_Start + 32;
|
||||
const DWORD c_Costume_Slot_NewSash = c_Equipment_Start + 33;
|
||||
const DWORD c_Shining_Slot_Weapon = c_Equipment_Start + 34;
|
||||
const DWORD c_Shining_Slot_Armor = c_Equipment_Start + 35;
|
||||
const DWORD c_Shining_Slot_Special = c_Equipment_Start + 36;
|
||||
|
||||
|
||||
// [주의] 숫자(32) 하드코딩 주의. 현재 서버에서 용혼석 슬롯은 32부터임.
|
||||
// 서버 common/length.h 파일의 EWearPositions 열거형이 32까지 확장될 것을 염두하고(32 이상은 확장 하기 힘들게 되어있음.),
|
||||
// 그 이후부터를 용혼석 장착 슬롯으로 사용.
|
||||
const DWORD c_Wear_Max = 32;
|
||||
const DWORD c_Wear_Max = 40; // PORT: shop costume, pet and shining equipment.
|
||||
const DWORD c_DragonSoul_Equip_Start = c_ItemSlot_Count + c_Wear_Max;
|
||||
const DWORD c_DragonSoul_Equip_Slot_Max = 6;
|
||||
const DWORD c_DragonSoul_Equip_End = c_DragonSoul_Equip_Start + c_DragonSoul_Equip_Slot_Max * DS_DECK_MAX_NUM;
|
||||
@@ -361,6 +369,8 @@ typedef struct packet_item
|
||||
DWORD anti_flags;
|
||||
LONG alSockets[ITEM_SOCKET_SLOT_MAX_NUM]; // PORT: LONG, the 32-bit Win32 long
|
||||
TPlayerItemAttribute aAttr[ITEM_ATTRIBUTE_SLOT_MAX_NUM];
|
||||
DWORD portId = 0; // PORT: owning item identity for pet operations.
|
||||
PortItemExtra extra{};
|
||||
} TItemData;
|
||||
|
||||
typedef struct packet_shop_item
|
||||
|
||||
@@ -94,6 +94,8 @@ void CInstanceBase::AddDamageEffect(DWORD damage,BYTE flag,BOOL bSelf,BOOL bTarg
|
||||
sDamage.damage = damage;
|
||||
sDamage.flag = flag;
|
||||
m_DamageQueue.push_back(sDamage);
|
||||
while (m_DamageQueue.size() > 4)
|
||||
m_DamageQueue.pop_front();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,6 +104,9 @@ void CInstanceBase::ProcessDamage()
|
||||
if(m_DamageQueue.empty())
|
||||
return;
|
||||
|
||||
while (m_DamageQueue.size() > 2)
|
||||
m_DamageQueue.pop_front();
|
||||
|
||||
SEffectDamage sDamage = m_DamageQueue.front();
|
||||
|
||||
m_DamageQueue.pop_front();
|
||||
@@ -138,42 +143,61 @@ void CInstanceBase::ProcessDamage()
|
||||
//return; 숫자도 표시.
|
||||
}
|
||||
|
||||
std::string strDamageType;
|
||||
DWORD rdwCRCEft = 0;
|
||||
/*
|
||||
if ( (flag & DAMAGE_POISON) )
|
||||
int typeIndex = 0;
|
||||
if(bSelf)
|
||||
{
|
||||
strDamageType = "poison_";
|
||||
rdwCRCEft = EFFECT_DAMAGE_POISON;
|
||||
typeIndex = 0;
|
||||
if(m_bDamageEffectType==0)
|
||||
rdwCRCEft = EFFECT_DAMAGE_SELFDAMAGE;
|
||||
else
|
||||
rdwCRCEft = EFFECT_DAMAGE_SELFDAMAGE2;
|
||||
m_bDamageEffectType = !m_bDamageEffectType;
|
||||
}
|
||||
else if(bTarget == false)
|
||||
{
|
||||
return;//현재 적용 안됨.
|
||||
}
|
||||
else
|
||||
*/
|
||||
{
|
||||
if(bSelf)
|
||||
{
|
||||
strDamageType = "damage_";
|
||||
if(m_bDamageEffectType==0)
|
||||
rdwCRCEft = EFFECT_DAMAGE_SELFDAMAGE;
|
||||
else
|
||||
rdwCRCEft = EFFECT_DAMAGE_SELFDAMAGE2;
|
||||
m_bDamageEffectType = !m_bDamageEffectType;
|
||||
}
|
||||
else if(bTarget == false)
|
||||
{
|
||||
strDamageType = "nontarget_";
|
||||
rdwCRCEft = EFFECT_DAMAGE_NOT_TARGET;
|
||||
return;//현재 적용 안됨.
|
||||
}
|
||||
else
|
||||
{
|
||||
strDamageType = "target_";
|
||||
rdwCRCEft = EFFECT_DAMAGE_TARGET;
|
||||
}
|
||||
typeIndex = 1;
|
||||
rdwCRCEft = EFFECT_DAMAGE_TARGET;
|
||||
}
|
||||
|
||||
|
||||
static const std::string s_damageTextures[2][10] = {
|
||||
{
|
||||
"d:/ymir work/effect/affect/damagevalue/damage_0.dds",
|
||||
"d:/ymir work/effect/affect/damagevalue/damage_1.dds",
|
||||
"d:/ymir work/effect/affect/damagevalue/damage_2.dds",
|
||||
"d:/ymir work/effect/affect/damagevalue/damage_3.dds",
|
||||
"d:/ymir work/effect/affect/damagevalue/damage_4.dds",
|
||||
"d:/ymir work/effect/affect/damagevalue/damage_5.dds",
|
||||
"d:/ymir work/effect/affect/damagevalue/damage_6.dds",
|
||||
"d:/ymir work/effect/affect/damagevalue/damage_7.dds",
|
||||
"d:/ymir work/effect/affect/damagevalue/damage_8.dds",
|
||||
"d:/ymir work/effect/affect/damagevalue/damage_9.dds",
|
||||
},
|
||||
{
|
||||
"d:/ymir work/effect/affect/damagevalue/target_0.dds",
|
||||
"d:/ymir work/effect/affect/damagevalue/target_1.dds",
|
||||
"d:/ymir work/effect/affect/damagevalue/target_2.dds",
|
||||
"d:/ymir work/effect/affect/damagevalue/target_3.dds",
|
||||
"d:/ymir work/effect/affect/damagevalue/target_4.dds",
|
||||
"d:/ymir work/effect/affect/damagevalue/target_5.dds",
|
||||
"d:/ymir work/effect/affect/damagevalue/target_6.dds",
|
||||
"d:/ymir work/effect/affect/damagevalue/target_7.dds",
|
||||
"d:/ymir work/effect/affect/damagevalue/target_8.dds",
|
||||
"d:/ymir work/effect/affect/damagevalue/target_9.dds",
|
||||
}
|
||||
};
|
||||
|
||||
D3DXMATRIX matBase;
|
||||
D3DXMatrixTranslation(&matBase, v3Pos.x, v3Pos.y, v3Pos.z);
|
||||
D3DXMatrixMultiply(&matBase, &pCamera->GetInverseViewMatrix(), &matBase);
|
||||
const D3DXMATRIX& matView = pCamera->GetViewMatrix();
|
||||
|
||||
DWORD index = 0;
|
||||
DWORD num = 0;
|
||||
std::vector<std::string> textures;
|
||||
std::vector<std::string> textures(1);
|
||||
while(damage>0)
|
||||
{
|
||||
if(index > 7)
|
||||
@@ -181,31 +205,20 @@ void CInstanceBase::ProcessDamage()
|
||||
TraceError("ProcessDamage\271\253\307\321\267\347\307\301 \260\241\264\311\274\272");
|
||||
break;
|
||||
}
|
||||
num = damage%10;
|
||||
DWORD num = damage%10;
|
||||
damage /= 10;
|
||||
char numBuf[MAX_PATH];
|
||||
sprintf(numBuf,"%d.dds",num);
|
||||
textures.push_back("d:/ymir work/effect/affect/damagevalue/"+strDamageType+numBuf);
|
||||
textures[0] = s_damageTextures[typeIndex][num];
|
||||
|
||||
rkEftMgr.SetEffectTextures(ms_adwCRCAffectEffect[rdwCRCEft],textures);
|
||||
|
||||
D3DXMATRIX matrix,matTrans;
|
||||
D3DXMatrixIdentity(&matrix);
|
||||
matrix._41 = v3Pos.x;
|
||||
matrix._42 = v3Pos.y;
|
||||
matrix._43 = v3Pos.z;
|
||||
D3DXMatrixTranslation(&matrix,v3Pos.x,v3Pos.y,v3Pos.z);
|
||||
D3DXMatrixMultiply(&matrix,&pCamera->GetInverseViewMatrix(),&matrix);
|
||||
D3DXMatrixTranslation(&matTrans,FONT_WIDTH*index,0,0);
|
||||
matTrans._41 = -matTrans._41;
|
||||
matrix = matTrans*matrix;
|
||||
D3DXMatrixMultiply(&matrix,&pCamera->GetViewMatrix(),&matrix);
|
||||
D3DXMATRIX matTrans;
|
||||
D3DXMatrixTranslation(&matTrans, -float(FONT_WIDTH*index), 0, 0);
|
||||
D3DXMATRIX matrix = matTrans * matBase;
|
||||
D3DXMatrixMultiply(&matrix, &matView, &matrix);
|
||||
|
||||
rkEftMgr.CreateEffect(ms_adwCRCAffectEffect[rdwCRCEft],D3DXVECTOR3(matrix._41,matrix._42,matrix._43)
|
||||
,v3Rot);
|
||||
|
||||
textures.clear();
|
||||
|
||||
index++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,17 @@
|
||||
#include "PythonMiniMap.h"
|
||||
#include "PythonSystem.h"
|
||||
|
||||
namespace PythonBoot { bool TouchInput(); }
|
||||
|
||||
static inline bool IsMobileDevice()
|
||||
{
|
||||
#if defined(__ANDROID__)
|
||||
return true;
|
||||
#else
|
||||
return PythonBoot::TouchInput();
|
||||
#endif
|
||||
}
|
||||
|
||||
std::string g_strEffectName = "d:/ymir work/effect/etc/direction/direction_land.mse";
|
||||
|
||||
DWORD CPythonBackground::GetRenderShadowTime()
|
||||
@@ -79,6 +90,9 @@ bool CPythonBackground::SetShadowLevel(int eLevel)
|
||||
if (!m_pkMap)
|
||||
return false;
|
||||
|
||||
if (IsMobileDevice() && eLevel > SHADOW_GROUND_AND_SOLO)
|
||||
eLevel = SHADOW_GROUND_AND_SOLO;
|
||||
|
||||
if (m_eShadowLevel == eLevel)
|
||||
return true;
|
||||
|
||||
@@ -572,7 +586,7 @@ void CPythonBackground::RenderCharacterShadowToTexture()
|
||||
{
|
||||
CPythonCharacterManager& rkChrMgr=CPythonCharacterManager::Instance();
|
||||
|
||||
if (m_eShadowLevel == SHADOW_GROUND_AND_SOLO)
|
||||
if (m_eShadowLevel == SHADOW_GROUND_AND_SOLO || IsMobileDevice())
|
||||
rkChrMgr.RenderShadowMainInstance();
|
||||
else
|
||||
rkChrMgr.RenderShadowAllInstances();
|
||||
|
||||
@@ -494,6 +494,19 @@ PyObject * chrmgrSetShapeModel(PyObject* poSelf, PyObject* poArgs)
|
||||
return Py_BuildNone();
|
||||
}
|
||||
|
||||
// PORT: register AVA2 hair definitions after the classic race file is loaded.
|
||||
PyObject* chrmgrSetHairSkin(PyObject*,PyObject* args)
|
||||
{
|
||||
int hair,part;char *model,*source,*target;
|
||||
if(!PyTuple_GetInteger(args,0,&hair) || !PyTuple_GetInteger(args,1,&part) ||
|
||||
!PyTuple_GetString(args,2,&model) || !PyTuple_GetString(args,3,&source) ||
|
||||
!PyTuple_GetString(args,4,&target))return Py_BadArgument();
|
||||
auto race=CRaceManager::Instance().GetSelectedRaceDataPointer();
|
||||
if(!race)return Py_BuildException("RaceData has not selected!");
|
||||
race->SetHairSkin(hair,part,model,source,target);
|
||||
return Py_BuildNone();
|
||||
}
|
||||
|
||||
PyObject * chrmgrAppendShapeSkin(PyObject* poSelf, PyObject* poArgs)
|
||||
{
|
||||
int eShape;
|
||||
@@ -722,6 +735,7 @@ void initchrmgr()
|
||||
{ "GetVIDInfo", chrmgrGetVIDInfo, METH_VARARGS },
|
||||
{ "GetPickedVID", chrmgrGetPickedVID, METH_VARARGS },
|
||||
{ "SetShapeModel", chrmgrSetShapeModel, METH_VARARGS },
|
||||
{ "SetHairSkin", chrmgrSetHairSkin, METH_VARARGS },
|
||||
{ "AppendShapeSkin", chrmgrAppendShapeSkin, METH_VARARGS },
|
||||
{ "SetPathName", chrmgrSetPathName, METH_VARARGS },
|
||||
{ "LoadRaceData", chrmgrLoadRaceData, METH_VARARGS },
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "StdAfx.h"
|
||||
#include "PythonChat.h"
|
||||
#include "../../platform/EterLib/UIRenderCommands.h" // PORT mobile preview scissor, no chat-history changes.
|
||||
#include "PythonItem.h"
|
||||
#include "../GameLib/ItemManager.h"
|
||||
|
||||
@@ -66,6 +67,22 @@ PyObject * chatRender(PyObject* poSelf, PyObject* poArgs)
|
||||
return Py_BuildNone();
|
||||
}
|
||||
|
||||
// PORT: draw the existing fading chat through a bounded mobile preview rectangle.
|
||||
// The chat list, history, text layout and edit/log render paths remain owned by CPythonChat.
|
||||
PyObject* chatRenderPreview(PyObject*, PyObject* args)
|
||||
{
|
||||
int id, x, y, width, height;
|
||||
if (!PyArg_ParseTuple(args, "iiiii", &id, &x, &y, &width, &height)) return nullptr;
|
||||
if (width <= 0 || height <= 0 || width > 4096 || height > 4096) {
|
||||
PyErr_SetString(PyExc_ValueError, "invalid chat preview rectangle");
|
||||
return nullptr;
|
||||
}
|
||||
UIRenderSetClip(float(x), float(y), float(width), float(height));
|
||||
CPythonChat::Instance().Render(id);
|
||||
UIRenderRestoreClip();
|
||||
return Py_BuildNone();
|
||||
}
|
||||
|
||||
PyObject * chatSetBoardState(PyObject* poSelf, PyObject* poArgs)
|
||||
{
|
||||
int iID;
|
||||
@@ -459,6 +476,7 @@ void initChat()
|
||||
{ "CreateChatSet", chatCreateChatSet, METH_VARARGS },
|
||||
{ "Update", chatUpdate, METH_VARARGS },
|
||||
{ "Render", chatRender, METH_VARARGS },
|
||||
{ "RenderPreview", chatRenderPreview, METH_VARARGS },
|
||||
|
||||
{ "SetBoardState", chatSetBoardState, METH_VARARGS },
|
||||
{ "SetPosition", chatSetPosition, METH_VARARGS },
|
||||
|
||||
@@ -188,7 +188,8 @@ class CMainPacketHeaderMap : public CNetworkPacketHeaderMap
|
||||
Set(HEADER_GC_SASH, CNetworkPacketHeaderMap::TPacketType(sizeof(TPacketSash), STATIC_SIZE_PACKET)); // PORT: AVA2 sash
|
||||
Set(HEADER_GC_CHESTDROP, CNetworkPacketHeaderMap::TPacketType(sizeof(TPacketGCChestDrop), DYNAMIC_SIZE_PACKET));
|
||||
Set(HEADER_GC_AVA2_DROP,CNetworkPacketHeaderMap::TPacketType(sizeof(TPacketGCAva2Drop),STATIC_SIZE_PACKET));
|
||||
Set(HEADER_GC_AVA2_EVENTS,CNetworkPacketHeaderMap::TPacketType(sizeof(TPacketGCAva2Events),DYNAMIC_SIZE_PACKET));
|
||||
Set(93,CNetworkPacketHeaderMap::TPacketType(sizeof(TPacketGCAva2Events),DYNAMIC_SIZE_PACKET));
|
||||
Set(HEADER_GC_AVA2_EVENTS,CNetworkPacketHeaderMap::TPacketType(sizeof(TPacketGCAva2Events),DYNAMIC_SIZE_PACKET));
|
||||
Set(HEADER_GC_SWITCHBOT, CNetworkPacketHeaderMap::TPacketType(sizeof(TPacketGCSwitchbot), DYNAMIC_SIZE_PACKET)); // PORT: AVA2 switchbot
|
||||
|
||||
}
|
||||
@@ -545,6 +546,15 @@ bool CPythonNetworkStream::CheckPacket(TPacketHeader * pRetHeader)
|
||||
return false;
|
||||
}
|
||||
|
||||
// Native shop/calendar use DWORD lengths. Wait for the entire frame before dispatch.
|
||||
if(header==93 || header==HEADER_GC_AVA2_EVENTS) {
|
||||
TPacketGCAva2Events p;
|
||||
if(!Peek(sizeof(p),&p))return false;
|
||||
const unsigned minimum=sizeof(p)+(header==93?1:6);
|
||||
if(p.size<minimum || p.size>32768) { ClearRecvBuffer();PostQuitMessage(0);return false; }
|
||||
if(!Peek(p.size))return false;
|
||||
*pRetHeader=header;return true;
|
||||
}
|
||||
// AVA2 chest preview uses a DWORD length, unlike the base WORD dynamic header.
|
||||
if(header==HEADER_GC_CHESTDROP) {
|
||||
TPacketGCChestDrop p;
|
||||
|
||||
@@ -562,6 +562,7 @@ class CPythonNetworkStream : public CNetworkStream, public CSingleton<CPythonNet
|
||||
bool RecvSashPacket(bool bReturn = false); // PORT: AVA2 sash
|
||||
bool RecvAva2DropQuery();
|
||||
bool RecvAva2Events();
|
||||
bool RecvAva2ItemShop();
|
||||
bool RecvSwitchbotPacket(); // PORT: AVA2 switchbot
|
||||
|
||||
// MiniMap Info
|
||||
|
||||
@@ -641,6 +641,7 @@ void CPythonNetworkStream::GamePhase()
|
||||
ret=RecvAva2DropQuery();break;
|
||||
case HEADER_GC_AVA2_EVENTS:
|
||||
ret=RecvAva2Events();break;
|
||||
case 93:ret=RecvAva2ItemShop();break;
|
||||
case HEADER_GC_SWITCHBOT: // PORT: AVA2 switchbot
|
||||
ret = RecvSwitchbotPacket();
|
||||
break;
|
||||
@@ -4219,8 +4220,8 @@ bool CPythonNetworkStream::SendClientVersionPacket()
|
||||
TPacketCGClientVersion2 kVersionPacket;
|
||||
kVersionPacket.header = HEADER_CG_CLIENT_VERSION2;
|
||||
strncpy(kVersionPacket.filename, filename.c_str(), sizeof(kVersionPacket.filename)-1);
|
||||
// PORT: " mt20261019" enables the AVA2 switchbot on the server (port_switchbot.cpp); the version check uses atoi.
|
||||
strncpy(kVersionPacket.timestamp, "1215955205 mt20261019", sizeof(kVersionPacket.timestamp)-1); // # python time.time 앞자리
|
||||
// PORT: revision mt20261022 adds native itemshop; preserve the numeric prefix for atoi version checks.
|
||||
strncpy(kVersionPacket.timestamp, "1215955205 mt20261022", sizeof(kVersionPacket.timestamp)-1); // # python time.time 앞자리
|
||||
//strncpy(kVersionPacket.timestamp, __TIMESTAMP__, sizeof(kVersionPacket.timestamp)-1); // old_string_ver
|
||||
//strncpy(kVersionPacket.timestamp, "1218055205", sizeof(kVersionPacket.timestamp)-1); // new_future
|
||||
//strncpy(kVersionPacket.timestamp, "1214055205", sizeof(kVersionPacket.timestamp)-1); // old_past
|
||||
@@ -4233,9 +4234,8 @@ bool CPythonNetworkStream::SendClientVersionPacket()
|
||||
TPacketCGClientVersion kVersionPacket;
|
||||
kVersionPacket.header = HEADER_CG_CLIENT_VERSION;
|
||||
strncpy(kVersionPacket.filename, filename.c_str(), sizeof(kVersionPacket.filename)-1);
|
||||
// PORT: protocol date instead of __TIMESTAMP__; the server sends the AVA2 switchbot packets only from
|
||||
// "mt20261019" on (metin2-server port_switchbot.h PORT_SWITCHBOT_CLIENT_VERSION).
|
||||
strncpy(kVersionPacket.timestamp, "mt20261019", sizeof(kVersionPacket.timestamp)-1);
|
||||
// PORT: native itemshop requires mt20261022; older AVA2 services retain their own revision gates.
|
||||
strncpy(kVersionPacket.timestamp, "mt20261022", sizeof(kVersionPacket.timestamp)-1);
|
||||
|
||||
if (!Send(sizeof(kVersionPacket), &kVersionPacket))
|
||||
Tracef("SendClientReportPacket Error");
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
#include "PythonNetworkStream.h"
|
||||
#include "Ava2QueryPackets.h"
|
||||
#include <vector>
|
||||
#include "PythonPlayer.h"
|
||||
#include "PythonSafeBox.h"
|
||||
|
||||
bool CPythonNetworkStream::SendAva2DropQuery(BYTE subheader,LONG vnum) {
|
||||
if (!PORT_IsGamePhase() || (subheader!=0 && subheader!=1 && subheader!=6 && subheader!=7 && subheader!=8 && subheader!=9 && subheader!=10) || vnum<0)return false;
|
||||
@@ -23,3 +25,31 @@ bool CPythonNetworkStream::RecvAva2Events() {
|
||||
PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME],"BINARY_Ava2Events",Py_BuildValue("(s#)",data.data(),int(data.size())));
|
||||
return true;
|
||||
}
|
||||
|
||||
// Native AVA2 GC93, parsed atomically by the embedded shop bridge.
|
||||
bool CPythonNetworkStream::RecvAva2ItemShop() {
|
||||
TPacketGCAva2Events p;
|
||||
if (!Recv(sizeof(p),&p) || p.size<sizeof(p)+1 || p.size>32768)return false;
|
||||
std::vector<char> data(p.size-sizeof(p));
|
||||
if (!Recv(data.size(),data.data()))return false;
|
||||
if(uint8_t(data[0])==10) {
|
||||
#pragma pack(push,1)
|
||||
struct Extra {uint8_t op,window;uint16_t cell;uint32_t vnum,id;PortItemExtra extra;};
|
||||
#pragma pack(pop)
|
||||
if(data.size()!=sizeof(Extra))return false;
|
||||
Extra extra;memcpy(&extra,data.data(),sizeof(extra));extra.extra.name[24]=0;
|
||||
TItemData* target=nullptr;
|
||||
if(extra.window==SAFEBOX){if(!CPythonSafeBox::Instance().GetItemDataPtr(extra.cell,&target))return false;}
|
||||
else if(extra.window==MALL){if(!CPythonSafeBox::Instance().GetMallItemDataPtr(extra.cell,&target))return false;}
|
||||
else {
|
||||
TItemPos pos(extra.window,extra.cell);
|
||||
if(!pos.IsValidCell())return false;
|
||||
target=const_cast<TItemData*>(CPythonPlayer::Instance().GetItemData(pos));
|
||||
}
|
||||
if(!target || target->vnum!=extra.vnum)return true;
|
||||
target->portId=extra.id;target->extra=extra.extra;
|
||||
return true;
|
||||
}
|
||||
PyCallClassMemberFunc(m_apoPhaseWnd[PHASE_WINDOW_GAME],"BINARY_Ava2ItemShop",Py_BuildValue("(s#)",data.data(),int(data.size())));
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -668,13 +668,25 @@ DWORD CPythonPlayer::GetItemCountByVnum(DWORD dwVnum)
|
||||
return dwCount;
|
||||
}
|
||||
|
||||
DWORD CPythonPlayer::GetItemID(TItemPos Cell)
|
||||
{
|
||||
const auto item=Cell.IsValidCell() ? GetItemData(Cell) : nullptr;
|
||||
return item ? item->portId : 0;
|
||||
}
|
||||
|
||||
const char* CPythonPlayer::GetItemNewName(TItemPos Cell)
|
||||
{
|
||||
const auto item=Cell.IsValidCell() ? GetItemData(Cell) : nullptr;
|
||||
return item ? item->extra.name : "";
|
||||
}
|
||||
|
||||
DWORD CPythonPlayer::GetItemMetinSocket(TItemPos Cell, DWORD dwMetinSocketIndex)
|
||||
{
|
||||
if (!Cell.IsValidCell())
|
||||
return 0;
|
||||
|
||||
if (dwMetinSocketIndex >= ITEM_SOCKET_SLOT_MAX_NUM)
|
||||
return 0;
|
||||
return dwMetinSocketIndex<8 ? GetItemData(Cell)->extra.sockets[dwMetinSocketIndex-3] : 0;
|
||||
|
||||
return GetItemData(Cell)->alSockets[dwMetinSocketIndex];
|
||||
}
|
||||
@@ -688,7 +700,10 @@ void CPythonPlayer::GetItemAttribute(TItemPos Cell, DWORD dwAttrSlotIndex, BYTE
|
||||
return;
|
||||
|
||||
if (dwAttrSlotIndex >= ITEM_ATTRIBUTE_SLOT_MAX_NUM)
|
||||
{
|
||||
if(dwAttrSlotIndex<15){*pbyType=GetItemData(Cell)->extra.types[dwAttrSlotIndex-7];*psValue=GetItemData(Cell)->extra.values[dwAttrSlotIndex-7];}
|
||||
return;
|
||||
}
|
||||
|
||||
*pbyType = GetItemData(Cell)->aAttr[dwAttrSlotIndex].bType;
|
||||
*psValue = GetItemData(Cell)->aAttr[dwAttrSlotIndex].sValue;
|
||||
|
||||
@@ -292,6 +292,8 @@ class CPythonPlayer : public CSingleton<CPythonPlayer>, public IAbstractPlayer
|
||||
DWORD GetItemCount(TItemPos Cell);
|
||||
DWORD GetItemCountByVnum(DWORD dwVnum);
|
||||
DWORD GetItemMetinSocket(TItemPos Cell, DWORD dwMetinSocketIndex);
|
||||
DWORD GetItemID(TItemPos Cell);
|
||||
const char* GetItemNewName(TItemPos Cell);
|
||||
void GetItemAttribute(TItemPos Cell, DWORD dwAttrSlotIndex, BYTE * pbyType, short * psValue);
|
||||
void SendClickItemPacket(DWORD dwIID);
|
||||
|
||||
|
||||
@@ -943,6 +943,24 @@ PyObject * playerGetItemCountByVnum(PyObject* poSelf, PyObject* poArgs)
|
||||
return Py_BuildValue("i", ItemNum);
|
||||
}
|
||||
|
||||
// PORT: AVA2 pet dialogs identify the saved item and display its custom name.
|
||||
static bool PortItemPosition(PyObject* args,TItemPos& cell)
|
||||
{
|
||||
if(PyTuple_Size(args)==1)return PyTuple_GetInteger(args,0,&cell.cell);
|
||||
if(PyTuple_Size(args)==2)return PyTuple_GetByte(args,0,&cell.window_type) && PyTuple_GetInteger(args,1,&cell.cell);
|
||||
return false;
|
||||
}
|
||||
PyObject* playerGetItemID(PyObject*,PyObject* args)
|
||||
{
|
||||
TItemPos cell;if(!PortItemPosition(args,cell))return Py_BuildException();
|
||||
return Py_BuildValue("I",CPythonPlayer::Instance().GetItemID(cell));
|
||||
}
|
||||
PyObject* playerGetItemNewName(PyObject*,PyObject* args)
|
||||
{
|
||||
TItemPos cell;if(!PortItemPosition(args,cell))return Py_BuildException();
|
||||
return Py_BuildValue("s",CPythonPlayer::Instance().GetItemNewName(cell));
|
||||
}
|
||||
|
||||
PyObject * playerGetItemMetinSocket(PyObject* poSelf, PyObject* poArgs)
|
||||
{
|
||||
TItemPos Cell;
|
||||
@@ -2364,6 +2382,8 @@ void initPlayer()
|
||||
{ "GetItemCount", playerGetItemCount, METH_VARARGS },
|
||||
{ "GetItemCountByVnum", playerGetItemCountByVnum, METH_VARARGS },
|
||||
{ "GetItemMetinSocket", playerGetItemMetinSocket, METH_VARARGS },
|
||||
{ "GetItemID", playerGetItemID, METH_VARARGS },
|
||||
{ "GetItemNewName", playerGetItemNewName, METH_VARARGS },
|
||||
{ "GetItemAttribute", playerGetItemAttribute, METH_VARARGS },
|
||||
#if defined(GAIDEN)
|
||||
{ "GetItemUnbindTime", playerGetItemUnbindTime, METH_VARARGS },
|
||||
|
||||
@@ -206,14 +206,14 @@ PyObject * safeboxGetItemMetinSocket(PyObject * poSelf, PyObject * poArgs)
|
||||
if (!PyTuple_GetInteger(poArgs, 1, &iSocketIndex))
|
||||
return Py_BadArgument();
|
||||
|
||||
if (iSocketIndex >= ITEM_SOCKET_SLOT_MAX_NUM)
|
||||
if (iSocketIndex < 0 || iSocketIndex >= 8)
|
||||
return Py_BuildException();
|
||||
|
||||
TItemData * pItemData;
|
||||
if (!CPythonSafeBox::Instance().GetItemDataPtr(iSlotIndex, &pItemData))
|
||||
return Py_BuildException();
|
||||
|
||||
return Py_BuildValue("i", pItemData->alSockets[iSocketIndex]);
|
||||
return Py_BuildValue("i", iSocketIndex<3?pItemData->alSockets[iSocketIndex]:pItemData->extra.sockets[iSocketIndex-3]);
|
||||
}
|
||||
|
||||
PyObject * safeboxGetItemAttribute(PyObject * poSelf, PyObject * poArgs)
|
||||
@@ -225,11 +225,11 @@ PyObject * safeboxGetItemAttribute(PyObject * poSelf, PyObject * poArgs)
|
||||
if (!PyTuple_GetInteger(poArgs, 1, &iAttrSlotIndex))
|
||||
return Py_BuildException();
|
||||
|
||||
if (iAttrSlotIndex >= 0 && iAttrSlotIndex < ITEM_ATTRIBUTE_SLOT_MAX_NUM)
|
||||
if (iAttrSlotIndex >= 0 && iAttrSlotIndex < 15)
|
||||
{
|
||||
TItemData * pItemData;
|
||||
if (CPythonSafeBox::Instance().GetItemDataPtr(iSlotIndex, &pItemData))
|
||||
return Py_BuildValue("ii", pItemData->aAttr[iAttrSlotIndex].bType, pItemData->aAttr[iAttrSlotIndex].sValue);
|
||||
return Py_BuildValue("ii", iAttrSlotIndex<7?pItemData->aAttr[iAttrSlotIndex].bType:pItemData->extra.types[iAttrSlotIndex-7], iAttrSlotIndex<7?pItemData->aAttr[iAttrSlotIndex].sValue:pItemData->extra.values[iAttrSlotIndex-7]);
|
||||
}
|
||||
|
||||
return Py_BuildValue("ii", 0, 0);
|
||||
@@ -275,14 +275,14 @@ PyObject * safeboxGetMallItemMetinSocket(PyObject * poSelf, PyObject * poArgs)
|
||||
if (!PyTuple_GetInteger(poArgs, 1, &iSocketIndex))
|
||||
return Py_BadArgument();
|
||||
|
||||
if (iSocketIndex >= ITEM_SOCKET_SLOT_MAX_NUM)
|
||||
if (iSocketIndex < 0 || iSocketIndex >= 8)
|
||||
return Py_BuildException();
|
||||
|
||||
TItemData * pItemData;
|
||||
if (!CPythonSafeBox::Instance().GetMallItemDataPtr(iSlotIndex, &pItemData))
|
||||
return Py_BuildException();
|
||||
|
||||
return Py_BuildValue("i", pItemData->alSockets[iSocketIndex]);
|
||||
return Py_BuildValue("i", iSocketIndex<3?pItemData->alSockets[iSocketIndex]:pItemData->extra.sockets[iSocketIndex-3]);
|
||||
}
|
||||
|
||||
PyObject * safeboxGetMallItemAttribute(PyObject * poSelf, PyObject * poArgs)
|
||||
@@ -294,11 +294,11 @@ PyObject * safeboxGetMallItemAttribute(PyObject * poSelf, PyObject * poArgs)
|
||||
if (!PyTuple_GetInteger(poArgs, 1, &iAttrSlotIndex))
|
||||
return Py_BuildException();
|
||||
|
||||
if (iAttrSlotIndex >= 0 && iAttrSlotIndex < ITEM_ATTRIBUTE_SLOT_MAX_NUM)
|
||||
if (iAttrSlotIndex >= 0 && iAttrSlotIndex < 15)
|
||||
{
|
||||
TItemData * pItemData;
|
||||
if (CPythonSafeBox::Instance().GetMallItemDataPtr(iSlotIndex, &pItemData))
|
||||
return Py_BuildValue("ii", pItemData->aAttr[iAttrSlotIndex].bType, pItemData->aAttr[iAttrSlotIndex].sValue);
|
||||
return Py_BuildValue("ii", iAttrSlotIndex<7?pItemData->aAttr[iAttrSlotIndex].bType:pItemData->extra.types[iAttrSlotIndex-7], iAttrSlotIndex<7?pItemData->aAttr[iAttrSlotIndex].sValue:pItemData->extra.values[iAttrSlotIndex-7]);
|
||||
}
|
||||
|
||||
return Py_BuildValue("ii", 0, 0);
|
||||
|
||||
@@ -243,6 +243,9 @@ int CPythonSystem::GetShadowLevel()
|
||||
|
||||
void CPythonSystem::SetShadowLevel(unsigned int level)
|
||||
{
|
||||
#if defined(__ANDROID__)
|
||||
level = MIN(level, 2); // Cap to SHADOW_GROUND_AND_SOLO on mobile
|
||||
#endif
|
||||
m_Config.iShadowLevel = MIN(level, 5);
|
||||
CPythonBackground::instance().RefreshShadowLevel();
|
||||
}
|
||||
@@ -306,7 +309,11 @@ void CPythonSystem::SetDefaultConfig()
|
||||
|
||||
m_Config.bDecompressDDS = 0;
|
||||
m_Config.bSoftwareTiling = 0;
|
||||
#if defined(__ANDROID__)
|
||||
m_Config.iShadowLevel = 2; // SHADOW_GROUND_AND_SOLO
|
||||
#else
|
||||
m_Config.iShadowLevel = 3;
|
||||
#endif
|
||||
m_Config.bViewChat = true;
|
||||
m_Config.bAlwaysShowName = DEFAULT_VALUE_ALWAYS_SHOW_NAME;
|
||||
m_Config.dungeonTrack = false;
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
|
||||
// PORT: supplementary AVA2 pet/rarity state. Classic item packets retain 3 sockets / 7 attributes.
|
||||
#pragma pack(push,1)
|
||||
struct PortItemExtra {
|
||||
int32_t sockets[5];
|
||||
uint8_t types[8];
|
||||
int16_t values[8];
|
||||
char name[25];
|
||||
};
|
||||
#pragma pack(pop)
|
||||
static_assert(sizeof(PortItemExtra)==69,"extended item state");
|
||||
|
||||
inline std::string PortItemExtraHex(const PortItemExtra& extra) {
|
||||
static const char digits[]="0123456789abcdef";
|
||||
const auto p=reinterpret_cast<const unsigned char*>(&extra);
|
||||
std::string result(sizeof(extra)*2,'0');
|
||||
for(unsigned i=0;i<sizeof(extra);++i){result[2*i]=digits[p[i]>>4];result[2*i+1]=digits[p[i]&15];}
|
||||
return result;
|
||||
}
|
||||
inline bool PortItemExtraRead(const char* hex,PortItemExtra& extra) {
|
||||
std::memset(&extra,0,sizeof(extra));
|
||||
if(!hex || !*hex)return true;
|
||||
if(std::strlen(hex)!=sizeof(extra)*2)return false;
|
||||
auto nibble=[](char c){return c>='0' && c<='9'?c-'0':c>='A' && c<='F'?c-'A'+10:c>='a' && c<='f'?c-'a'+10:-1;};
|
||||
auto p=reinterpret_cast<unsigned char*>(&extra);
|
||||
for(unsigned i=0;i<sizeof(extra);++i){int a=nibble(hex[2*i]),b=nibble(hex[2*i+1]);if(a<0 || b<0){std::memset(&extra,0,sizeof(extra));return false;}p[i]=(a<<4)|b;}
|
||||
extra.name[24]=0;return true;
|
||||
}
|
||||
@@ -9,7 +9,7 @@ int main() {
|
||||
struct Screen { float width, height, inset, target; };
|
||||
for (const auto screen : {Screen{640, 360, 24, 48}, Screen{800, 600, 0, 48},
|
||||
Screen{1300, 600, 40, 48}, Screen{1067, 600, 32, 72},
|
||||
Screen{1366, 1024, 62, 48}}) {
|
||||
Screen{1366, 1024, 62, 48}, Screen{1169, 600, 0, 74}}) {
|
||||
const auto layout = mt_host::make_touch_layout(screen.width, screen.height, screen.inset, screen.target);
|
||||
const auto& attack = layout.buttons[0];
|
||||
float previous_angle = -1000;
|
||||
@@ -24,6 +24,7 @@ int main() {
|
||||
"skills leave the bottom status and menu strip clear");
|
||||
const float dx = b.x - attack.x, dy = b.y - attack.y;
|
||||
const float distance = std::hypot(dx, dy);
|
||||
check(distance <= 121 * layout.scale, "the skill arc stays compact around attack");
|
||||
if (i == 1) first_distance = distance;
|
||||
check(std::abs(distance - first_distance) < 0.01f, "all six skills occupy one ring");
|
||||
float angle = std::atan2(dy, dx);
|
||||
@@ -33,7 +34,7 @@ int main() {
|
||||
}
|
||||
for (int j = 0; j < i; ++j) {
|
||||
const auto& other = layout.buttons[j];
|
||||
check(std::hypot(b.x - other.x, b.y - other.y) > 1.05f * (b.radius + other.radius),
|
||||
check(std::hypot(b.x - other.x, b.y - other.y) > 1.15f * (b.radius + other.radius),
|
||||
"expanded touch areas cannot activate a neighboring control");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ class Widget:
|
||||
def Show(self):self.shown=True
|
||||
def Hide(self):self.shown=False
|
||||
def SetText(self,text):self.text=text
|
||||
def SetPosition(self,x,y):self.pos=(x,y)
|
||||
def __getattr__(self,name):return lambda *args:None
|
||||
class Tests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
@@ -16,7 +17,9 @@ class Tests(unittest.TestCase):
|
||||
modules={n:types.ModuleType(n) for n in ['app','ui','wndMgr','player','_mt_meshport','introLogin','net']}
|
||||
modules['app'].GetTime=lambda:self.now
|
||||
modules['ui'].Window=modules['ui'].TextLine=Widget
|
||||
modules['wndMgr'].GetScreenWidth=lambda:1280
|
||||
self.width,self.height=1280,600
|
||||
modules['wndMgr'].GetScreenWidth=lambda:self.width
|
||||
modules['wndMgr'].GetScreenHeight=lambda:self.height
|
||||
modules['player'].AutoHuntLocalize=lambda value:value
|
||||
self.cancelled=False
|
||||
modules['net'].CancelPendingLogin=lambda:self.cancelled
|
||||
@@ -43,6 +46,25 @@ class Tests(unittest.TestCase):
|
||||
self.events=[3,1,2]
|
||||
self.notice.OnUpdate();self.assertIn('失败',self.notice.label.text)
|
||||
self.notice.OnUpdate();self.notice.OnUpdate();self.assertEqual(self.notice.label.text,'组网成功')
|
||||
def test_repeated_progress_does_not_extend_notice(self):
|
||||
self.events=[1];self.notice.OnUpdate();deadline=self.notice.hideAt
|
||||
self.now=10;self.events=[1];self.notice.OnUpdate()
|
||||
self.assertEqual(self.notice.hideAt,deadline)
|
||||
self.now=66;self.notice.OnUpdate();self.assertFalse(self.notice.label.shown)
|
||||
def test_ingame_progress_is_brief_and_does_not_reset_on_same_state(self):
|
||||
old=sys.modules.get('mt_mobile_hud')
|
||||
try:
|
||||
sys.modules['mt_mobile_hud']=types.SimpleNamespace(g_hud=types.SimpleNamespace(networkNoticePosition=(18,156)))
|
||||
self.events=[1];self.notice.OnUpdate();self.assertEqual(self.notice.hideAt,5)
|
||||
self.assertEqual(self.notice.label.pos,(18,156))
|
||||
self.now=6;self.events=[1];self.notice.OnUpdate();self.assertFalse(self.notice.label.shown)
|
||||
finally:
|
||||
if old is None:sys.modules.pop('mt_mobile_hud',None)
|
||||
else:sys.modules['mt_mobile_hud']=old
|
||||
def test_notice_repositions_below_top_controls_after_resize(self):
|
||||
self.events=[2];self.notice.OnUpdate();self.assertEqual(self.notice.label.pos,(640,72))
|
||||
self.width,self.height=800,360;self.notice.OnUpdate()
|
||||
self.assertEqual(self.notice.label.pos,(400,52))
|
||||
def test_no_login_hooks_or_password_capture(self):
|
||||
self.assertNotIn('LoginWindow.Connect =',SOURCE);self.assertNotIn('password',SOURCE)
|
||||
def test_cancel_login_hides_only_its_pending_notice(self):
|
||||
|
||||
@@ -352,6 +352,7 @@ int main(int argc, char** argv)
|
||||
// by port. TChannelStatus::nPort is a short, so the fake server's ephemeral state port (> 32767)
|
||||
// never matches its own channel; offline the proof is the second channel (13002) it also lists.
|
||||
// Live the game port answers for the channels the db knows, the game port among them.
|
||||
if (!std::getenv("MT_TEST_PINCH"))
|
||||
{
|
||||
const int state_port = server ? server->StatePort() : game_port;
|
||||
const int key = server ? 2 : 1;
|
||||
@@ -501,6 +502,124 @@ int main(int argc, char** argv)
|
||||
return g_failures ? 1 : 0;
|
||||
}
|
||||
|
||||
if (mobile_test && std::getenv("MT_TEST_PINCH")) {
|
||||
CHECK(pump_until(5, [] { return py_true("not _stream.curtain.IsShow()"); }));
|
||||
CHECK(py("import mt_mobile_hud; _hud=mt_mobile_hud.g_hud\n"
|
||||
"assert not _hud.menuExpanded and all(not b.IsShow() for b in _hud.side)\n"
|
||||
"assert _hud.shop.IsShow() and _hud.more.IsShow()\n"
|
||||
"_hud.ToggleMore()\n"
|
||||
"assert _hud.menuExpanded and all(b.IsShow() for b in _hud.side)\n"
|
||||
"_hud.ToggleMore()\n"
|
||||
"assert not _hud.menuExpanded and all(not b.IsShow() for b in _hud.side)"));
|
||||
CHECK(py("import player\nassert _hud.top[1].IsShow() and not any(b.IsShow() for b in [_hud.top[0],_hud.top[2],_hud.top[3]])\n"
|
||||
"_hud.ToggleMore()\n"
|
||||
"assert all(b.IsShow() for b in _hud.drawer) and _hud.menuBackdrop.IsShow()\n"
|
||||
"_hud.top[1].action()\n"
|
||||
"assert not _hud.menuExpanded and not _hud.menuBackdrop.IsShow()\n"
|
||||
"assert _hud.window.interface.wndInventory.IsShow()\n"
|
||||
"_hud.window.interface.wndInventory.Hide()\n"
|
||||
"assert _hud.status.gauge.IsShow() and _hud.status.frame.IsShow()"));
|
||||
CHECK(py("_hud.ToggleMore()\n_menu_b=_hud.drawer[0]"));
|
||||
std::string drawerXY;
|
||||
CHECK(PythonBoot::Evaluate("'%d %d' % _menu_b.GetGlobalPosition()", &drawerXY, nullptr));
|
||||
int drawerX=0,drawerY=0;
|
||||
CHECK(std::sscanf(drawerXY.c_str(), "'%d %d'", &drawerX, &drawerY)==2 ||
|
||||
std::sscanf(drawerXY.c_str(), "%d %d", &drawerX, &drawerY)==2);
|
||||
PythonBoot::UIMouseMove(drawerX+24,drawerY+24);
|
||||
CHECK(py_true("__import__('wndMgr').IsPickedWindow(_menu_b.hWnd)"));
|
||||
CHECK(PythonBoot::IsPointInsideActiveUI(drawerX-3,drawerY-3));
|
||||
CHECK(py("_hud.ToggleMore()"));
|
||||
// Main entries, the complete drawer and the editing window fit narrow/wide layouts.
|
||||
for (const auto dimensions : {std::pair{640,360}, std::pair{800,600}, std::pair{1169,600}}) {
|
||||
PythonBoot::SetUISize(dimensions.first, dimensions.second);
|
||||
CHECK(py("import wndMgr\n_hud.OnUpdate()\n"
|
||||
"_hud.ToggleMore()\n"
|
||||
"for b in [_hud.top[1],_hud.shop,_hud.more]+_hud.drawer:\n"
|
||||
" x,y=b.GetGlobalPosition(); assert x>=0 and y>=0 and x+b.GetWidth()<=wndMgr.GetScreenWidth() and y+b.GetHeight()<=wndMgr.GetScreenHeight()\n"
|
||||
"_hud.ToggleMore()\n"
|
||||
"_hud.chat.OpenChat(); _hud.OnUpdate()\n"
|
||||
"assert _hud.chat.GetGlobalPosition()[0]+_hud.chat.GetWidth()<=wndMgr.GetScreenWidth()\n"
|
||||
"_hud.chat.CloseChat(); _hud.OnUpdate()"));
|
||||
}
|
||||
PythonBoot::SetUISize(800,600);
|
||||
CHECK(py("_hud.OnUpdate()"));
|
||||
// Preview only clips rendering: preserve complete chat history and restore full-screen scissor.
|
||||
CHECK(py("import chat\n"
|
||||
"_preview_id=20261019\n"
|
||||
"chat.CreateChatSet(_preview_id)\n"
|
||||
"chat.SetPosition(_preview_id,20,200)\n"
|
||||
"chat.SetHeight(_preview_id,300)\n"
|
||||
"for i in range(8): chat.AppendChat(chat.CHAT_TYPE_INFO, 'PREVIEW_%d_'%i+'long message '*40)\n"
|
||||
"chat.Update(_preview_id)\n"
|
||||
"_history_count=chat.GetLineCount(_preview_id)"));
|
||||
UIRenderSetSize(800,600);
|
||||
UIRenderBeginFrame();
|
||||
CHECK(py("chat.RenderPreview(_preview_id,10,150,100,45)"));
|
||||
const auto previewCommands = UIRenderCommands();
|
||||
CHECK(!previewCommands.empty());
|
||||
for (const auto& command : previewCommands) {
|
||||
CHECK(command.clip_x1 == 10 && command.clip_y1 == 150);
|
||||
CHECK(command.clip_x2 == 110 && command.clip_y2 == 195);
|
||||
}
|
||||
UIRenderBeginFrame();
|
||||
CHECK(py("chat.Render(_preview_id)\nassert chat.GetLineCount(_preview_id)==_history_count"));
|
||||
CHECK(!UIRenderCommands().empty());
|
||||
for (const auto& command : UIRenderCommands())
|
||||
CHECK(command.clip_x1==0 && command.clip_x2==800 && command.clip_y1==0 && command.clip_y2==600);
|
||||
TouchController touch;
|
||||
touch.set_enabled(true);
|
||||
touch.update_screen_size(800, 600);
|
||||
// PORT scene pinch: start across both halves, spread closer, close farther.
|
||||
CHECK(!PythonBoot::IsPointInsideActiveUI(480, 240));
|
||||
CHECK(!PythonBoot::IsPointInsideActiveUI(320, 240));
|
||||
auto* camera = CCameraManager::Instance().GetCurrentCamera();
|
||||
const float originalDistance = camera->GetDistance();
|
||||
CHECK(touch.on_finger_down(201, 0.4f, 0.4f));
|
||||
CHECK(touch.on_finger_down(202, 0.6f, 0.4f));
|
||||
const float beforePinch = camera->GetDistance();
|
||||
touch.on_finger_motion(202, 0.7f, 0.4f);
|
||||
CHECK(camera->GetDistance() < beforePinch * 0.8f);
|
||||
const float closeDistance = camera->GetDistance();
|
||||
touch.on_finger_motion(202, 0.6f, 0.4f);
|
||||
CHECK(camera->GetDistance() > closeDistance * 1.2f);
|
||||
CHECK(std::abs(camera->GetDistance() - beforePinch) < 1.0f);
|
||||
touch.on_finger_up(201, 0.4f, 0.4f); // remaining finger becomes look, never tap
|
||||
touch.on_finger_motion(202, 0.62f, 0.4f);
|
||||
CHECK(std::abs(camera->GetDistance() - beforePinch) < 1.0f);
|
||||
touch.on_finger_up(202, 0.62f, 0.4f);
|
||||
touch.update();
|
||||
CHECK(std::abs(camera->GetDistance() - beforePinch) < 1.0f);
|
||||
|
||||
// Reverse ownership order; right scene finger plus left scene finger also pinches.
|
||||
touch.on_finger_down(203, 0.6f, 0.4f);
|
||||
touch.on_finger_down(204, 0.4f, 0.4f);
|
||||
touch.on_finger_motion(204, 0.3f, 0.4f);
|
||||
CHECK(camera->GetDistance() < beforePinch * 0.8f);
|
||||
touch.on_finger_up(204, 0.3f, 0.4f);
|
||||
touch.on_finger_up(203, 0.6f, 0.4f);
|
||||
camera->SetDistance(originalDistance);
|
||||
touch.on_finger_down(207, 0.6f, 0.4f);
|
||||
touch.on_finger_down(208, 0.4f, 0.4f);
|
||||
touch.cancel_gestures();
|
||||
touch.on_finger_motion(208, 0.2f, 0.4f);
|
||||
CHECK(std::abs(camera->GetDistance() - originalDistance) < 1.0f);
|
||||
|
||||
// A moving joystick is not stolen by a second thumb looking around.
|
||||
touch.on_finger_down(205, 0.3f, 0.45f);
|
||||
touch.on_finger_motion(205, 0.35f, 0.45f);
|
||||
touch.on_finger_down(206, 0.6f, 0.4f);
|
||||
touch.on_finger_motion(206, 0.7f, 0.4f);
|
||||
CHECK(std::abs(camera->GetDistance() - originalDistance) < 1.0f);
|
||||
touch.on_finger_up(205, 0.35f, 0.45f);
|
||||
touch.on_finger_up(206, 0.7f, 0.4f);
|
||||
CHECK(py("import app; app.Exit()"));
|
||||
pump_until(2, [] { return !PythonBoot::IsAppLooping(); });
|
||||
PythonBoot::Stop();
|
||||
if (server) server->Stop();
|
||||
std::printf("mobile scene pinch: %s\n", g_failures ? "FAILED" : "PASS");
|
||||
return g_failures ? 1 : 0;
|
||||
}
|
||||
|
||||
if (mobile_test) {
|
||||
// Input remains blocked by the original phase curtain until its fade finishes.
|
||||
CHECK(pump_until(5, [] { return py_true("not _stream.curtain.IsShow()"); }));
|
||||
@@ -511,7 +630,7 @@ int main(int argc, char** argv)
|
||||
"_hud.window.interface.wndInventory.Hide()"));
|
||||
CHECK(py_true("_hud.IsShow()"));
|
||||
CHECK(py_true("not ui.Window.IsShow(_hud.taskbar)"));
|
||||
CHECK(py_true("len(_hud.top) == 4 and len(_hud.side) == 3"));
|
||||
CHECK(py_true("len(_hud.top) == 4 and len(_hud.side) == 4"));
|
||||
CHECK(py_true("all(button.GetWidth() >= 48 for button in _hud.top + _hud.side)"));
|
||||
CHECK(py_true("_hud.status.values[0] == player.GetStatus(player.HP)"));
|
||||
CHECK(py_true("_hud.experience is _hud.taskbar.expGaugeBoard and _hud.experience.IsShow()"));
|
||||
@@ -1650,6 +1769,8 @@ int main(int argc, char** argv)
|
||||
CHECK(kept_origin);
|
||||
touch.on_finger_up(101, 0.325f, 0.46666667f);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
CHECK(py("import app\napp.Exit()"));
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
"""Execute the shipping shop decoder and purchase callbacks with real native layouts."""
|
||||
import ast,struct,types,unittest
|
||||
from pathlib import Path
|
||||
ROOT=Path(__file__).resolve().parents[2]
|
||||
SRC=(ROOT/'src/platform/ScriptLib/Ava2ItemShopScript.inc').read_text().split('c_szAva2ItemShopScript[]=R"PY(',1)[1].split(')PY";',1)[0]
|
||||
class Wire(unittest.TestCase):
|
||||
def setUp(self):
|
||||
tree=ast.parse(SRC);fn=next(n for n in tree.body if isinstance(n,ast.FunctionDef) and n.name=='Parse')
|
||||
self.ns={'struct':struct,'_product':struct.Struct('<IIqiBiiqiii'),'_log':struct.Struct('<I25s21si16sIIiq')}
|
||||
exec(compile(ast.Module(body=[fn],type_ignores=[]),'<shop>','exec'),self.ns)
|
||||
def catalogue(self,discount=25,product=1):
|
||||
row=self.ns['_product'].pack(product,71084,99,0,discount,0,0,0,2,8,4)
|
||||
return struct.pack('<BqiiBBBB',0,999,7,1,0,1,0,1)+row
|
||||
def test_native_sizes_and_product_fields(self):
|
||||
self.assertEqual(self.ns['_product'].size,49);self.assertEqual(self.ns['_log'].size,90)
|
||||
op,(coins,rev,rows)=self.ns['Parse'](self.catalogue());self.assertEqual((op,coins,rev),(0,999,7));self.assertEqual(rows[0][2][1],71084)
|
||||
def test_all_partial_frames_fail_before_mutating_model(self):
|
||||
packet=self.catalogue()
|
||||
for size in range(len(packet)):
|
||||
with self.assertRaises((ValueError,struct.error)):self.ns['Parse'](packet[:size])
|
||||
def test_invalid_discount_duplicate_ids_trailing_and_unknown(self):
|
||||
for packet in [self.catalogue(101),self.catalogue()+b'x',b'\x09',struct.pack('<Bqii',0,-1,1,0)]:
|
||||
with self.assertRaises((ValueError,struct.error)):self.ns['Parse'](packet)
|
||||
packet=bytearray(self.catalogue());packet[20]=2;packet+=packet[-49:]
|
||||
with self.assertRaises((ValueError,struct.error)):self.ns['Parse'](bytes(packet))
|
||||
def test_purchase_reply_exact_token_status_balance(self):
|
||||
packet=struct.pack('<B32sBq',7,b'0123456789abcdef0123456789abcdef',0,100)
|
||||
self.assertEqual(self.ns['Parse'](packet)[1][-2:],(0,100))
|
||||
for packet in (packet[:-1],packet+b'x',struct.pack('<B32sBq',7,b'z'*32,0,100),struct.pack('<B32sBq',7,b'0'*32,10,100)):
|
||||
with self.assertRaises((ValueError,struct.error)):self.ns['Parse'](packet)
|
||||
def test_log_count_is_bounded(self):
|
||||
for count in (-1,101):
|
||||
with self.assertRaises(ValueError):self.ns['Parse'](struct.pack('<Bi',1,count))
|
||||
|
||||
class PurchaseFlow(unittest.TestCase):
|
||||
def functions(self,*names):
|
||||
nodes=[n for n in ast.parse(SRC).body if isinstance(n,ast.FunctionDef) and n.name in names]
|
||||
exec(compile(ast.Module(body=nodes,type_ignores=[]),'<shop-flow>','exec'),self.ns)
|
||||
def setUp(self):
|
||||
self.sent=[];self.now=0
|
||||
class Token:
|
||||
def encode(self,encoding):assert encoding=='hex';return 'a'*32
|
||||
self.ns=dict(pending=None,_serial=0,_next=0,_waiting=False,_queued=False,_requested=0,_logAt=0,window=None,
|
||||
os=types.SimpleNamespace(urandom=lambda size:Token()),app=types.SimpleNamespace(GetTime=lambda:self.now),
|
||||
net=types.SimpleNamespace(SendChatPacket=self.sent.append),chat=types.SimpleNamespace(CHAT_TYPE_INFO=1,AppendChat=lambda *args:None),L=lambda s:s)
|
||||
def test_displayed_discount_matches_server_integer_total(self):
|
||||
self.functions('Total')
|
||||
self.assertEqual(self.ns['Total'](58,1,50),29)
|
||||
self.assertEqual(self.ns['Total'](99,2,25),148)
|
||||
def test_confirmed_quote_is_frozen_and_double_accept_is_blocked(self):
|
||||
self.functions('AcceptBuy')
|
||||
item=types.SimpleNamespace(shopQuote=(1,2,148,71084),data=[999],buyCount=20,CloseQuestionDialog=lambda:None)
|
||||
self.ns['AcceptBuy'](item);self.ns['AcceptBuy'](item)
|
||||
self.assertEqual(self.sent,['/ishop buy 1 2 '+'a'*32+' 148 71084'])
|
||||
def test_retry_preserves_order_and_never_creates_second_payment(self):
|
||||
self.functions('Tick');self.ns['pending']=('a'*32,1,2,0,0,148,71084)
|
||||
for now in [5,10,15,20,25]:self.now=now;self.ns['Tick']()
|
||||
self.assertEqual(self.sent,['/ishop buy 1 2 '+'a'*32+' 148 71084']*3)
|
||||
self.assertEqual(self.ns['pending'][4],4)
|
||||
def test_point_reward_updates_balance_and_rejects_malformed_notifications(self):
|
||||
messages=[];balances=[]
|
||||
self.ns.update(long=int,_command=lambda self,line:42,
|
||||
window=types.SimpleNamespace(SetDragonCoin=balances.append),
|
||||
chat=types.SimpleNamespace(CHAT_TYPE_INFO=1,AppendChat=lambda kind,text:messages.append(text)))
|
||||
self.functions('Command')
|
||||
for line in ('MTPOINTS -1 100','MTPOINTS 1 -1','MTPOINTS bad 100','MTPOINTS 1 2 3'):
|
||||
self.assertEqual(self.ns['Command'](None,line),1)
|
||||
self.assertEqual(messages,[]);self.assertEqual(balances,[])
|
||||
self.assertEqual(self.ns['Command'](None,'MTPOINTS 3 103'),1)
|
||||
self.assertEqual(balances,[103]);self.assertEqual(messages,['获得 3 点券,当前余额 103。'])
|
||||
self.assertEqual(self.ns['Command'](None,'other-command'),42)
|
||||
def test_catalogue_refresh_is_queued_past_command_throttle(self):
|
||||
self.functions('Request','Tick');self.ns['Request']();self.now=.5;self.ns['Request']()
|
||||
self.assertEqual(len(self.sent),1);self.assertTrue(self.ns['_queued'])
|
||||
self.now=1.2;self.ns['Tick']();self.assertEqual(self.sent,['/ishop data -1']*2)
|
||||
def test_image_and_button_callbacks_keep_correct_event_arguments(self):
|
||||
self.ns['_MISSING']=object();self.functions('EventTag');calls=[]
|
||||
wrapped=self.ns['EventTag'](lambda self,event,category,sub:calls.append((event,category,sub)),3)
|
||||
self.assertGreater(wrapped.__code__.co_argcount,1) # classic ui.__mem_func__ must retain image arguments
|
||||
wrapped(None,2,1);wrapped(None,'button',2,1)
|
||||
self.assertEqual(calls,[(None,2,1),('button',2,1)])
|
||||
def test_uncertain_commit_keeps_same_pending_order(self):
|
||||
self.functions('Receive');pending=('a'*32,1,2,0,0,148,71084)
|
||||
self.ns.update(pending=pending,Parse=lambda raw:(7,('a'*32,8,10000)))
|
||||
self.ns['Receive'](None,b'');self.assertEqual(self.ns['pending'],pending)
|
||||
|
||||
if __name__=='__main__':unittest.main()
|
||||
@@ -29,6 +29,7 @@ class MockWidget(object):
|
||||
def SetDownVisual(self, v): self.visuals['down'] = v
|
||||
def SetEvent(self, ev): self.event = ev
|
||||
def SetText(self, t): self.text = t
|
||||
def SetToolTipText(self, t): self.tooltip = t
|
||||
def SetOutline(self): pass
|
||||
def SetHorizontalAlignRight(self): pass
|
||||
def SetPackedFontColor(self, c): pass
|
||||
@@ -40,11 +41,15 @@ class MockWidget(object):
|
||||
|
||||
class MinimapButtonsTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
names = ('app', 'game', 'ui', 'wndMgr', 'mt_dungeons', 'mt_battlepass', 'mt_biolog')
|
||||
names = ('app', 'game', 'ui', 'wndMgr', 'mt_dungeons', 'mt_battlepass', 'mt_biolog', 'player', 'mt_channel', 'mt_wiki')
|
||||
mods = {n: types.ModuleType(n) for n in names}
|
||||
mods['app'].DIK_F5 = 63
|
||||
mods['app'].DIK_F6 = 64
|
||||
mods['app'].DIK_F7 = 65
|
||||
mods['app'].DIK_F8 = 66
|
||||
mods['player'].AutoHuntLocalize = lambda text: text.encode('gbk')
|
||||
mods['mt_channel'].Toggle = lambda: None
|
||||
mods['mt_wiki'].Toggle = lambda: None
|
||||
|
||||
self.toggles = {'dungeon': 0, 'battlepass': 0, 'biolog': 0}
|
||||
mods['mt_dungeons'].Toggle = lambda: self.toggles.__setitem__('dungeon', self.toggles['dungeon'] + 1)
|
||||
@@ -75,7 +80,10 @@ class MinimapButtonsTests(unittest.TestCase):
|
||||
self.wndMiniMap.ShowMiniMap = lambda: self.wndMiniMap.OpenWindow.Show()
|
||||
self.wndMiniMap.OnUpdate = lambda: None
|
||||
|
||||
self.gw.interface = types.SimpleNamespace(wndMiniMap=self.wndMiniMap)
|
||||
self.expanded = MockWidget()
|
||||
self.expanded.expandedTaskBarBoard = MockWidget()
|
||||
self.gw.interface = types.SimpleNamespace(
|
||||
wndMiniMap=self.wndMiniMap, wndExpandedTaskBar=self.expanded)
|
||||
self.game.GameWindow.Open(self.gw)
|
||||
self.ring = self.ns['g_ring']
|
||||
|
||||
@@ -96,17 +104,27 @@ class MinimapButtonsTests(unittest.TestCase):
|
||||
# Dungeon: (-10, 40)
|
||||
self.assertEqual(self.ring.btnDungeon.pos, (-10, 40))
|
||||
self.assertEqual(self.ring.btnDungeon.visuals['up'], "d:/ymir work/ui/game/minimapa/dungeon_0.tga")
|
||||
self.assertEqual(self.ring.tipDungeon.textLine.text, "[F5] 副本信息")
|
||||
self.assertEqual(self.ring.tipDungeon.textLine.text, "[F5] 副本信息".encode("gbk"))
|
||||
|
||||
# BattlePass: (0, 80)
|
||||
self.assertEqual(self.ring.btnBattlePass.pos, (0, 80))
|
||||
self.assertEqual(self.ring.btnBattlePass.visuals['up'], "d:/ymir work/ui/game/battle_pass/battlepass_icon_0.tga")
|
||||
self.assertEqual(self.ring.tipBattlePass.textLine.text, "[F6] 战斗通行证")
|
||||
self.assertEqual(self.ring.tipBattlePass.textLine.text, "[F6] 战斗通行证".encode("gbk"))
|
||||
|
||||
# Biolog: (15, 105)
|
||||
self.assertEqual(self.ring.btnBiolog.pos, (15, 105))
|
||||
self.assertEqual(self.ring.btnBiolog.visuals['up'], "d:/ymir work/ui/game/minimapa/biolog_0.tga")
|
||||
self.assertEqual(self.ring.tipBiolog.textLine.text, "[F7] 生物学家")
|
||||
self.assertEqual(self.ring.tipBiolog.textLine.text, "[F7] 生物学家".encode("gbk"))
|
||||
|
||||
def test_all_chinese_tooltips_use_locale_bytes(self):
|
||||
expected = ((self.ring.tipDungeon, "[F5] 副本信息"),
|
||||
(self.ring.tipBattlePass, "[F6] 战斗通行证"),
|
||||
(self.ring.tipBiolog, "[F7] 生物学家"),
|
||||
(self.ring.tipChannel, "[F8] 点击换线"))
|
||||
for tooltip, label in expected:
|
||||
self.assertEqual(tooltip.textLine.text.decode('gbk'), label)
|
||||
self.assertEqual(self.expanded.btnSwitchbot.tooltip.decode('gbk'), "自动洗练")
|
||||
self.assertEqual(self.expanded.btnWiki.tooltip.decode('gbk'), "游戏百科")
|
||||
|
||||
def test_button_clicks_trigger_subsystems(self):
|
||||
self.ring.btnDungeon.event()
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
"""Verify runtime race registration against the AVA2 definitions, for every sex/job."""
|
||||
from pathlib import Path
|
||||
import re
|
||||
import sys
|
||||
import types
|
||||
import unittest
|
||||
from unittest.mock import patch
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
REFERENCE = ROOT.parent/'AVA2/1. Client DEV/pack_maker/root'
|
||||
|
||||
|
||||
@unittest.skipUnless(REFERENCE.is_dir(), 'requires original AVA2 race definitions')
|
||||
class ShopAppearance(unittest.TestCase):
|
||||
def test_models_and_skins_match_original_race_definitions(self):
|
||||
calls = []
|
||||
module = types.ModuleType('chrmgr')
|
||||
module.LoadLocalRaceData = lambda name: calls.append(('load', name)) or True
|
||||
for name in ('SetShapeModel', 'AppendShapeSkin', 'SetHairSkin'):
|
||||
setattr(module, name, lambda *args, method=name: calls.append((method,)+args))
|
||||
text = (ROOT/'src/platform/ScriptLib/ArmorShapesScript.inc').read_text()
|
||||
script = text.split('R"PY(', 1)[1].split(')PY"', 1)[0]
|
||||
with patch.dict(sys.modules, chrmgr=module):
|
||||
exec(compile(script, '<appearance>', 'exec'), {})
|
||||
for race in ('warrior', 'assassin', 'sura', 'shaman'):
|
||||
for sex in ('m', 'w'):
|
||||
with self.subTest(race=race, sex=sex):
|
||||
calls.clear()
|
||||
filename = race+'_'+sex+'.msm'
|
||||
self.assertTrue(module.LoadLocalRaceData(filename))
|
||||
self.assertEqual(calls[0], ('load', filename))
|
||||
source = (REFERENCE/filename).read_text(errors='replace')
|
||||
hair_data = source[source.index('Group HairData'):]
|
||||
base = re.search(r'PathName\s+"([^"]+)"', hair_data).group(1).lower()
|
||||
groups = re.findall(r'\{([^{}]+)\}', source)
|
||||
for index, kind in ((40062, 'Shape'), (40063, 'Shape'), (161, 'Hair'), (191, 'Hair')):
|
||||
group = next(g for g in groups if re.search(kind+r'Index\s+'+str(index)+r'\b', g))
|
||||
model = re.search(r'Model\s+"([^"]+)"', group).group(1).lower()
|
||||
skin = re.search(r'TargetSkin\s+"([^"]+)"', group).group(1).lower()
|
||||
if kind == 'Shape':
|
||||
self.assertIn(('SetShapeModel', index, base+model), calls)
|
||||
self.assertIn(('AppendShapeSkin', index, 0, base+skin, base+skin), calls)
|
||||
else:
|
||||
self.assertIn(('SetHairSkin', index, 0, base+model, base+skin, base+skin), calls)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -4,7 +4,7 @@ from pathlib import Path
|
||||
import hashlib,json
|
||||
ROOT=Path(__file__).resolve().parents[2]
|
||||
REF=ROOT.parent/'AVA2/1. Client DEV/pack_maker/root'
|
||||
SOURCES={'BattlePassEx':'uibattlepassex.py','EventCalendarNew':'uieventcalendarnew.py','WikiUI':'wikiui.py','Wiki':'uiwiki.py','DropItem':'uidropitem.py'}
|
||||
SOURCES={'ItemShopNew':'uiitemshopnew.py','BattlePassEx':'uibattlepassex.py','EventCalendarNew':'uieventcalendarnew.py','WikiUI':'wikiui.py','Wiki':'uiwiki.py','DropItem':'uidropitem.py'}
|
||||
manifest={}
|
||||
for label,name in SOURCES.items():
|
||||
raw=(REF/name).read_bytes();s=raw.decode('cp1254').replace('\r\n','\n')
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
{
|
||||
"uiitemshopnew.py": {
|
||||
"sha256": "b0e76028a37763bf021feaef31979040535174a60ec60c885877f9d19a07cb6d",
|
||||
"module": "ItemShopNew",
|
||||
"changes": [
|
||||
"CP1254 to UTF-8",
|
||||
"CRLF to LF"
|
||||
]
|
||||
},
|
||||
"uibattlepassex.py": {
|
||||
"sha256": "c0ac6e2e3dfcd6c6c0716e5da4bfdf29169087109a7216d507f67d7ac3ed00d2",
|
||||
"module": "BattlePassEx",
|
||||
|
||||
@@ -7,7 +7,7 @@ def stage(pack_maker,assets):
|
||||
spec=importlib.util.spec_from_file_location('ava2_items',ROOT/'tools/server/ava2-items/make_items.py')
|
||||
module=importlib.util.module_from_spec(spec);spec.loader.exec_module(module)
|
||||
files=module.pack_index(pack_maker)
|
||||
prefixes=('d:/ymir work/ui/game/battle_pass/','d:/ymir work/ui/game/event_calendar/','d:/ymir work/ui/game/wiki/','d:/ymir work/ui/game/drop_item/','d:/ymir work/worldard/')
|
||||
prefixes=('d:/ymir work/ui/game/ishop/','d:/ymir work/ui/game/battle_pass/','d:/ymir work/ui/game/event_calendar/','d:/ymir work/ui/game/wiki/','d:/ymir work/ui/game/drop_item/','d:/ymir work/worldard/')
|
||||
count=0
|
||||
for name,source in files.items():
|
||||
if name.startswith(prefixes):
|
||||
|
||||
@@ -45,6 +45,8 @@ def stone_lock_reason(cols, E):
|
||||
# Models of the armor shapes the 40250 race msm lack (registered by the client's mt_shapes script): shape ->
|
||||
# model stem ('%s' = race); RACE_PATHS = the ShapeData PathName of each race msm.
|
||||
ARMOR_SHAPES={32:'%s_7_1'}
|
||||
SHOP_ARMOR_SHAPES={40062:'%s_salsa1',40063:'%s_springwear1'}
|
||||
SHOP_HAIRS={161:'hair/hair_16_1',191:'hair/hair_19_1'}
|
||||
RACE_PATHS={'warrior':('pc','pc2'),'assassin':('pc2','pc'),'sura':('pc','pc2'),'shaman':('pc2','pc')} # (male, female)
|
||||
# Kept with their 40250 meaning; everything else becomes ITEM_NONE (see module doc).
|
||||
KEEP_TYPES={'ITEM_MATERIAL','ITEM_QUEST','ITEM_GIFTBOX','ITEM_NONE','ITEM_TREASURE_BOX','ITEM_TREASURE_KEY','ITEM_NEW_RINGS'}
|
||||
@@ -65,6 +67,8 @@ SASH_LOCALE={'locale/en/ui/acce/acce_combine.tga':'locale/zh/ui/acce/acce_combin
|
||||
# target; AVA2 apply numbers in value0 equal 203's (P2 aligned 139/140). The rest stay locked.
|
||||
ENCHANT_KEEP=((54001,54078),(54124,54174))
|
||||
DESC_SUB={('ITEM_USE','USE_CHANGE_ATTRIBUTE'):'拖到未穿戴的对应时装上,附加一条固定属性(每件时装最多 3 条,不能重复)。',
|
||||
('ITEM_COSTUME','COSTUME_BODY'):'时装。装备后改变角色服装外观,附加属性在装备期间生效。',
|
||||
('ITEM_COSTUME','COSTUME_HAIR'):'发型时装。装备后改变角色发型或头饰,附加属性在装备期间生效。',
|
||||
('ITEM_COSTUME','COSTUME_MOUNT'):'坐骑时装。装备后召唤该坐骑(需要已拥有马匹),装备期间属性生效。',
|
||||
('ITEM_COSTUME','COSTUME_MOUNT_SKIN'):'坐骑外观。需先装备坐骑时装,装备后改变坐骑外观。',
|
||||
('ITEM_ARMOR','ARMOR_PENDANT'):'护符。装备在护符栏,对相应属性的怪物伤害提高(强化等级 +1 = +1%)。可用护符强化道具重洗属性,用护符加持道具追加属性(最多 5 条)。'}
|
||||
@@ -110,6 +114,12 @@ def names():
|
||||
for base,label in ((85001,'领主'),(85005,'大师'),(85011,'王朝'),(85015,'皇家')):
|
||||
for grade,suffix in enumerate(('普通','精致','高级','个人')):
|
||||
result[base+grade]=label+'披风('+suffix+')'
|
||||
result.update({41119:'萨尔萨礼服(男)',41120:'萨尔萨舞裙(女)',
|
||||
41121:'绅士礼服(男)',41122:'鸡尾酒礼裙(女)',
|
||||
45005:'莫西干发型(男)',45006:'刘海发型(女)',
|
||||
45057:'博加特礼帽(男)',45058:'花饰发型(女)'})
|
||||
for base,label in ((71500,'狮子'),(71503,'野猪'),(71506,'狼'),(71509,'老虎')):
|
||||
result[base]=label+'封印(7天)';result[base+1]=label+'封印(30天)'
|
||||
for v in sorted(STONE_IDS):result[v]=stone_name(v)
|
||||
result.update({50348:'属性锁定符',50349:'属性解锁符',70002:'第三只手'})
|
||||
for month in range(1,13):result[25149+month]='%d月战令票'%month
|
||||
@@ -124,6 +134,7 @@ def convert(cols,E,imported):
|
||||
(t,st) in (('ITEM_USE','USE_CHANGE_ATTRIBUTE'),('ITEM_USE','USE_ADD_ATTRIBUTE')) and int(c[0]) in PENDANT_SCROLLS) or (
|
||||
int(c[0]) in (50348,50349) and (t,st)==('ITEM_USE','USE_CHANGE_ATTRIBUTE')) or (
|
||||
int(c[0])==70002 and (t,st)==('ITEM_USE','USE_SPECIAL'))
|
||||
if t=='ITEM_COSTUME' and st in ('COSTUME_BODY','COSTUME_HAIR') and int(c[0]) in (41119,41120,41121,41122,45005,45006,45057,45058):kept=True
|
||||
if stone_lock_reason(c,E):kept=False
|
||||
anti=tokens(c[5]);flags=tokens(c[6])
|
||||
if 'ITEM_STACKABLE' in anti:anti.remove('ITEM_STACKABLE');flags.append('ITEM_STACKABLE')
|
||||
@@ -160,6 +171,10 @@ def shape_models():
|
||||
for d in dict.fromkeys(dirs):
|
||||
for stem in ARMOR_SHAPES.values():
|
||||
out+=['d:/ymir work/%s/%s/%s%s'%(d,race,stem%race,e) for e in ('.gr2','.dds','_lod_01.gr2','_lod_02.gr2','_lod_03.gr2')]
|
||||
for stem in SHOP_ARMOR_SHAPES.values():
|
||||
out+=['d:/ymir work/%s/%s/%s%s'%(d,race,stem%race,e) for e in ('.gr2','.dds')]
|
||||
for stem in SHOP_HAIRS.values():
|
||||
out+=['d:/ymir work/%s/%s/%s%s'%(d,race,stem,e) for e in ('.gr2','.dds')]
|
||||
return out
|
||||
|
||||
def effect_files(files):
|
||||
@@ -315,7 +330,7 @@ def prepare(ava,proto_reader,locale,output,tool,packer,wrap=lambda text:text):
|
||||
target=assets/q;target.parent.mkdir(parents=True,exist_ok=True)
|
||||
if not target.exists():shutil.copy2(files[q],target);copied+=1
|
||||
# Native AVA2 BattlePassEx, event manager, encyclopedia and drop finder.
|
||||
native_prefixes=('d:/ymir work/ui/game/battle_pass/','d:/ymir work/ui/game/event_calendar/',
|
||||
native_prefixes=('d:/ymir work/ui/game/ishop/','d:/ymir work/ui/game/battle_pass/','d:/ymir work/ui/game/event_calendar/',
|
||||
'd:/ymir work/ui/game/wiki/','d:/ymir work/ui/game/drop_item/','d:/ymir work/worldard/')
|
||||
for q in files:
|
||||
if q.startswith(native_prefixes):
|
||||
|
||||
@@ -35,11 +35,25 @@ class UIAssetTests(unittest.TestCase):
|
||||
def test_missing_atlas_rejects_pack(self):
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
root=Path(tmp);(root/'a.sub').write_bytes(b'version 1.0\nimage "missing.dds"\n')
|
||||
with self.assertRaisesRegex(ValueError,'missing UI subimage atlas'):m.pack_ui_subimages(root,{})
|
||||
with self.assertRaisesRegex(ValueError,'missing or ambiguous UI subimage atlas'):m.pack_ui_subimages(root,{})
|
||||
|
||||
@unittest.skipUnless(READER.is_file(),'needs ../metin2-server')
|
||||
class ConvertTests(unittest.TestCase):
|
||||
E=m.enums(READER) if READER.is_file() else None
|
||||
def test_shop_costume_gender_shape_and_first_use_duration(self):
|
||||
for vnum,subtype,shape in ((41119,'COSTUME_BODY',40062),(41121,'COSTUME_BODY',40063),
|
||||
(45005,'COSTUME_HAIR',161),(45057,'COSTUME_HAIR',191)):
|
||||
server,client,kept=m.convert(row(vnum,'ITEM_COSTUME',subtype,anti='ANTI_FEMALE',values=('0','0','0',str(shape),'0','0')),self.E,{vnum})
|
||||
self.assertTrue(kept)
|
||||
self.assertEqual(server[5],'ANTI_FEMALE')
|
||||
self.assertEqual(server[27],str(shape))
|
||||
for vnum,seconds in ((71500,604800),(71501,2592000)):
|
||||
data=row(vnum,'ITEM_COSTUME','COSTUME_MOUNT',values=('20113','0','0','0','0','0'))
|
||||
data[14:16]=['REAL_TIME_FIRST_USE',str(seconds)]
|
||||
server,client,kept=m.convert(data,self.E,{vnum})
|
||||
self.assertTrue(kept)
|
||||
self.assertEqual(server[14:16],['REAL_TIME_FIRST_USE',str(seconds)])
|
||||
self.assertEqual(server[24],'20113')
|
||||
def test_weapon_kept_without_unknown_flags(self):
|
||||
s,c,kept=m.convert(row(320,'ITEM_WEAPON','WEAPON_SWORD','ANTI_MUDANG | ANTI_WOLFMAN','ITEM_TUNABLE','WEAR_WEAPON',
|
||||
('APPLY_ATT_SPEED','18','APPLY_ATTBONUS_BOSS','5','APPLY_NONE','0'),refine=('321','81')),self.E,{320})
|
||||
@@ -90,8 +104,10 @@ class ConvertTests(unittest.TestCase):
|
||||
('APPLY_MOV_SPEED','5','APPLY_RESIST_MAGIC','25','APPLY_MAX_HP_PCT','20'),('0','210','0','32','0','0'),('21211','81')),self.E,{21210,21211})
|
||||
self.assertTrue(kept);self.assertEqual(s[3],'ARMOR_BODY');self.assertEqual(s[7],'WEAR_BODY');self.assertEqual(s[11:13],['21211','81'])
|
||||
self.assertEqual(s[5],'ANTI_ASSASSIN | ANTI_SURA | ANTI_MUDANG');self.assertEqual(s[27],'32') # value3 = armor shape
|
||||
models=m.shape_models();self.assertEqual(len(models),40)
|
||||
models=m.shape_models()
|
||||
self.assertIn('d:/ymir work/pc2/warrior/warrior_7_1_lod_03.gr2',models)
|
||||
self.assertIn('d:/ymir work/pc2/warrior/warrior_salsa1.gr2',models)
|
||||
self.assertIn('d:/ymir work/pc/sura/hair/hair_19_1.dds',models)
|
||||
def test_sash_kept(self):
|
||||
s,c,kept=m.convert(row(85004,'ITEM_COSTUME','COSTUME_SASH',wear='WEAR_COSTUME_BODY',
|
||||
values=('4','0','0','0','0','0')),self.E,{85004})
|
||||
@@ -178,7 +194,8 @@ class ConvertTests(unittest.TestCase):
|
||||
self.assertEqual(m.names()[70002],'第三只手')
|
||||
|
||||
def test_names_cover_ranges(self):
|
||||
n=m.names();self.assertEqual(len(n),518+6*200+4*9+14+12+136+1);self.assertEqual(n[54100],'武器外观强化石')
|
||||
n=m.names();self.assertEqual(n[54100],'武器外观强化石')
|
||||
self.assertTrue({41119,41120,41121,41122,45005,45006,45057,45058,71500,71501,71503,71504,71506,71507,71509,71510}.issubset(n))
|
||||
self.assertEqual([n[v] for v in (21210,21219,21279)],['暗龙铠甲+0','暗龙铠甲+9','神龙铠甲+9'])
|
||||
self.assertTrue(all(len(v.encode('gbk'))<=24 for v in n.values()))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user