با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
برای راه اندازی موفقیت آمیز SDK در داخل یک بازی، چندین الزام باید برآورده شود. این موارد عبارتند از:
اجرا از یک بازی با امضای دیجیتال قابل اجرا
راه اندازی بازی قابل اجرا از Google Play Games
اینها می تواند برای توسعه دهندگانی که به طور فعال بازی خود را در یک ویرایشگر بازی یا کد IDE می سازند، سنگین باشد زیرا به بسته بندی و انتشار بازی برای انتشار نیاز دارند.
برای ارائه گردش کار توسعه بهتر، SDK حالت توسعه دهنده را ارائه می دهد. وقتی فعال باشد، حالت توسعه دهنده به SDK اجازه می دهد تا در داخل یک ویرایشگر بازی یا کد IDE کار کند. SDK را میتوان بدون نیاز به امضای دیجیتال یا راهاندازی فایل اجرایی از Google Play Games، مقداردهی اولیه کرد.
پیش نیازها
یک GUID شریک دسترسی اولیه (EAP) دریافت کنید. این یک کلید مخفی است که به تیم توسعهدهنده شما اجازه میدهد تا بدون نیاز به بستهبندی یا امضای دیجیتالی بازی شما یا راهاندازی آن از بازیهای Google Play، از SDK از درون ویرایشگر موتور بازیتان استفاده کنند.
مرحله 1 : حالت توسعه دهنده را در مانیفست فعال کنید
با تنظیم IsDeveloperMode روی true در داخل manifest.xml برنامه، حالت توسعه دهنده را برای برنامه خود فعال کنید.
با تنظیم مقدار رشته EarlyAccessPartnerGuid در زیر کلید رجیستری HKLM\Software\Google\Play Games Services\EarlyAccessPartnerGuid دسترسی زودهنگام را در دستگاهی که در آن آزمایش می کنید، فعال کنید.
این را می توان با استفاده از ویرایشگر رجیستری ویندوز یا از ترمینال cmd admin با دستور زیر انجام داد:
مرحله 3 : وارد Google Play Games برای رایانه شخصی شوید
وقتی حالت برنامهنویس فعال است، SDK هنگام برقراری تماسهای API از حساب وارد شده به Google Play Games برای رایانه شخصی استفاده میکند. اگر چندین حساب وارد شده باشد، از حساب فعال استفاده خواهد شد.
اگر بازی شما به صورت عمومی منتشر نشده است (هرگز در مسیر انتشار تولید داخل کنسول Play منتشر نشده است)، توصیه می کنیم از یک حساب Google استفاده کنید که به گروه آزمایش داخلی بازی شما ملحق شده است. آزمایش کنندگان داخلی قبل از انتشار به بازی شما دسترسی خواهند داشت که برای عملکرد برخی از API های SDK لازم است. برای مثال، تکمیل خرید با Play Billing. میتوانید آزمایشکنندگان داخلی برنامهتان را در داخل کنسول Play مدیریت کنید.
مراحل بعدی
ویژگی های رایانه شخصی Google Play را به برنامه خود اضافه کنید:
تاریخ آخرین بهروزرسانی 2025-09-02 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-09-02 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# Use the PC SDK while developing\n\nIn order to successfully initialize the SDK inside of a game several\nrequirements must be satisfied. These include:\n\n- Running from a digitally signed game executable\n\n- Launching the game executable from Google Play Games\n\nThese can be burdensome for developers that are actively building their game\ninside of a game editor or code IDE as they require packaging \\& publishing the\ngame for release.\n\nTo provide a better development workflow the SDK offers a developer\nmode. When enabled, the developer mode allows the SDK to function inside\nof a game editor or code IDE. The SDK can be initialized without\nrequiring the executable to be digitally signed or launched from Google Play\nGames.\n\nPrerequisites\n-------------\n\n- Obtain an early-access partner (EAP) GUID. This a secret key that allows your development team to use the SDK from within your game engine editor without needing to package or digitally sign your game executable or launch it from Google Play Games.\n\n| **Note:** Work with your Google Partner to get an early-access partner GUID for your development team. If you don't have an early-access partner, complete the [express interest form](https://docs.google.com/forms/d/e/1FAIpQLScn35BX-X63ggG84S76okR37nwq6qRA1PNPk4fsBpDbD7J21Q/viewform?_ga=2.233777694.1640262997.1747860154-345235146.1745606832).\n\n**Step 1**: Enable developer mode in the manifest\n-------------------------------------------------\n\n| **Warning:** Make sure to remove the `\u003cIsDeveloperMode\u003e` tag before publishing your game.\n\nEnable developer mode for your application by setting `IsDeveloperMode` to\n`true` inside of the your application's `manifest.xml`. \n\n \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n \u003cManifest version=\"1\"\u003e\n \u003cApplication\u003e\n \u003cPackageName\u003e\u003cvar translate=\"no\"\u003ecom.example.package\u003c/var\u003e\u003c/PackageName\u003e\n \\\u003cIsDeveloperMode\\\u003etrue\\\u003c/IsDeveloperMode\\\u003e\n \u003c/Application\u003e\n \u003c/Manifest\u003e\n\n**Step 2**: Enable early access\n-------------------------------\n\n| **Warning:** The early access partner GUID is a secret. Don't share this value.\n\nEnable early access on the device where your are testing by setting the\n`EarlyAccessPartnerGuid` string value under the\n`HKLM\\Software\\Google\\Play Games Services\\EarlyAccessPartnerGuid` registry key.\n\nThis can be done either using the Windows Registry Editor, or from an admin cmd\nterminal with the command: \n\n C:\\\u003e reg add \"HKLM\\Software\\Google\\Play Games Services\" /v EarlyAccessPartnerGuid /t REG_SZ /d \u003cvar translate=\"no\"\u003eEAP GUID\u003c/var\u003e\n\n**Step 3**: Sign into Google Play Games for PC\n----------------------------------------------\n\nWhen developer mode is enabled, the SDK uses the account signed into\n[Google Play Games for PC](https://play.google.com/googleplaygames) when making API\ncalls. If multiple accounts are signed in, the active account will be used.\n\nIf your game not been publicly released (has never published to the production\nrelease track inside of the Play Console), we recommend using a Google Account\nthat has joined your game's internal testing group. Internal testers will have\naccess to your game before release which is required for some SDK APIs to\nfunction. For example, completing a purchase with Play Billing. You may manage\nyour app's internal testers inside of the\n[Play Console](https://play.google.com/console/about/internal-testing/).\n\nNext steps\n----------\n\nAdd Google Play PC features to your app:\n\n- Sell digital goods with [Play Billing](/games/playgames/native-pc/billing)\n- Measure your marketing with [Play Install Referrer](/games/playgames/native-pc/install_referrer)"]]