Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

The problem with Cyrillic

Featured Replies

Good afternoon.

 

I can't find the reason for this behavior in any way.

There are no problems when trying to output the text in English.

But if you try to output the symbols of the Russian language, then strange things happen.

 

The string is cut off at the end and in some places characters that are not there may appear.

 

Game.DisplayNotification("The very long message. The very long message. The very long message. The very long message. The very long message. The very long message. The very long message. The very long message. The very long message. The very long message. The very long message. The very long message.");

Game.DisplayNotification("Очень большая строка. Очень большая строка. Очень большая строка. Очень большая строка. Очень большая строка. Очень большая строка. Очень большая строка. Очень большая строка. Очень большая строка. Очень большая строка. Очень большая строка. Очень большая строка.");
Spoiler

Could contain: Neutral

40 minutes ago, NotWorkingCode said:

Good afternoon.

 

I can't find the reason for this behavior in any way.

There are no problems when trying to output the text in English.

But if you try to output the symbols of the Russian language, then strange things happen.

 

The string is cut off at the end and in some places characters that are not there may appear.

 

Game.DisplayNotification("The very long message. The very long message. The very long message. The very long message. The very long message. The very long message. The very long message. The very long message. The very long message. The very long message. The very long message. The very long message.");

Game.DisplayNotification("Очень большая строка. Очень большая строка. Очень большая строка. Очень большая строка. Очень большая строка. Очень большая строка. Очень большая строка. Очень большая строка. Очень большая строка. Очень большая строка. Очень большая строка. Очень большая строка.");
  Reveal hidden contents

Could contain: Neutral

I think it is because c# do not support every character but I'am not sure, you should try to investigate what character encoding is used

by Mytical.

  • Author
8 hours ago, Mytical49 said:

I think it is because c# do not support every character but I'am not sure, you should try to investigate what character encoding is used

C# uses Unicode as the encoding. Unicode has full Cyrillic support

  • Author
2 hours ago, LMS said:

Does it work fine if you replace the text in a GTA language file and not display it via code?

I found a solution to my problem and wrote a small library to solve this problem.
It allows you to output any message in any language that is supported by UTF-8 encoding.

 

However, when using it, LSPDFR crashes with an error: System.IO.FileNotFoundException: "System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"

 

I wrote the library on .NET Framework 4.7.2.

In this case, the message is displayed.

 

Full error log:

 

Spoiler

[5/6/2023 5:12:50 PM.436] LSPD First Response: ==============================
[5/6/2023 5:12:50 PM.436] LSPD First Response: UNHANDLED EXCEPTION DURING GAME FIBER TICK
[5/6/2023 5:12:50 PM.436] LSPD First Response: ------------------------------
[5/6/2023 5:12:50 PM.436] LSPD First Response: Origin: Game fiber "LoadingSpinner".
[5/6/2023 5:12:50 PM.436] LSPD First Response: ------------------------------
[5/6/2023 5:12:50 PM.436] LSPD First Response: Exception type: System.IO.FileNotFoundException
[5/6/2023 5:12:50 PM.436] LSPD First Response: Exception message: Не удалось загрузить файл или сборку "System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e" либо одну из их зависимостей. Не удается найти указанный файл.
[5/6/2023 5:12:50 PM.436] LSPD First Response: ------------------------------
[5/6/2023 5:12:50 PM.436] LSPD First Response: Inner exceptions:
[5/6/2023 5:12:50 PM.436] LSPD First Response: ------------------------------
[5/6/2023 5:12:50 PM.436] LSPD First Response: Stack trace:
[5/6/2023 5:12:50 PM.436] LSPD First Response: at Chill_Callouts.Main.RegisterCallouts()
[5/6/2023 5:12:50 PM.436] at Chill_Callouts.Main.OnOnDutyStateChangedHandler(Boolean OnDuty)
[5/6/2023 5:12:50 PM.436] at LSPD_First_Response.Mod.API.Functions.OnDutyStateChangedEventHandler.Invoke(Boolean onDuty)
[5/6/2023 5:12:50 PM.436] at WPUGJNEEtIsMBgTtQIJLcOvjRTKU.HnlCnpSuQLXtvxgiNVtEaGkxGLkM(Boolean ) in D:\GTA V\LSPD First Response\LSPD First Response\Mod\PlayerDutyController.cs:line 69
[5/6/2023 5:12:50 PM.436] at WPUGJNEEtIsMBgTtQIJLcOvjRTKU.OpXaOTtozjKrgykjxAOHDWOsIqEeA(Boolean , Boolean ) in D:\GTA V\LSPD First Response\LSPD First Response\Mod\PlayerDutyController.cs:line 371
[5/6/2023 5:12:50 PM.436] at YBeSNSbUDenUrDGxsCoooKyzWFeu.qZixAkQjrzhmWATYFUuYhxJaMdqd() in D:\GTA V\LSPD First Response\LSPD First Response\Mod\Menus\DutyMenu.cs:line 235
[5/6/2023 5:12:50 PM.436] at ydhCZUAxXcearzXBERdIOnpNJjx.UStwBMsbYesFYstAaLioGJgIWNOo() in D:\GTA V\LSPD First Response\LSPD First Response\Engine\UI\LoadingSpinner.cs:line 42
[5/6/2023 5:12:50 PM.436] at Rage.GameFiber.Main()
[5/6/2023 5:12:50 PM.436] LSPD First Response: ==============================

What could be the reason for this behavior?

  • Management Team
1 hour ago, NotWorkingCode said:

I found a solution to my problem and wrote a small library to solve this problem.
It allows you to output any message in any language that is supported by UTF-8 encoding.

 

However, when using it, LSPDFR crashes with an error: System.IO.FileNotFoundException: "System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"

 

It is not LSPDFR crashing, it is "ChillCallouts". It looks like it is trying to pull in .NET (non-framework) references.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

  • Author
1 hour ago, LMS said:

 

It is not LSPDFR crashing, it is "ChillCallouts". It looks like it is trying to pull in .NET (non-framework) references.

Who exactly? The plugin itself works. My library uses only .NET Framework

  • Management Team
56 minutes ago, NotWorkingCode said:

Who exactly? The plugin itself works. My library uses only .NET Framework

 

My guess would be ChillCallouts or one of its dependencies.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

  • Author
1 hour ago, LMS said:

 

My guess would be ChillCallouts or one of its dependencies.

No. ChillCallouts works fine if I compile it without using my library. My Dependencies in screen.

I will try to get more information using PDB and tracing.

 

Снимок экрана 2023-05-07 002716.png

  • Management Team
3 minutes ago, NotWorkingCode said:

No. ChillCallouts works fine if I compile it without using my library. My Dependencies in screen.

I will try to get more information using PDB and tracing.

 

If it works fine without your library, then the issue is with your library. You can check something like dnSpy to see which dependencies you are really loading in and what code might be triggered from "RegisterCallouts" in ChillCallouts.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.