Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - MrGreen

#1
Quote from: Crimson Wizard on Tue 28/01/2025 22:03:14In order to support more formats we'd need to include other video decoding libraries into the engine, which is not in the immediate plans.
This may be addressed later though. Another option is implementing a support for plugins to decode videos.

That sounds good.

Thank you for your reply, but you misunderstood me.
I know that only Theora code is supported. My question was only about the extension of the file name not the decoding. For example ".dat" (or whatever) instead of ".ogv" to "hide" the videos from the players.

Also, are there any plans to package all videos (or all external source material) into an uncompressed database in the future?
#2
Hi!
Videos cannot be played with any other extension than ogv.
PlayVideo (still possible in 3.6), and the new VideoPlayer also doesn't play with other extensions.
Is this a bug or planned?
#3
Ooh, I'm stupid.  (roll)  That's how I did it before, but when I tried to get autocomplete to work, I gave up on the wrong version.
Thanks!
#4
Hi!
I cannot access Struct properties via array in AGS 4.0
I only see the length property of the array.

When I try to run it it throws a "Null pointer referenced" error on the first line when I try to access the struct property. (Error line: testStruct_Array[0].int1 = 1;)
However, it works perfectly in 3.6

Any idea what could be the problem?  ???

Header:
Code: ags
managed struct TestStruct {
  int int1;
  int int2;
  int int3;
  bool flag;
};

Script:
Code: ags
TestStruct* testStruct_Array[];

function test_func() {
  testStruct_Array = new TestStruct[10];
  
  testStruct_Array[0].int1 = 1;
  testStruct_Array[0].int2 = 2;
  testStruct_Array[0].int3 = 3;
  testStruct_Array[0].flag = true;
}
SMF spam blocked by CleanTalk