Author Topic: Ask something - We can help.  (Read 162878 times)

MiteWiseacreLives!

  • Hold onto your Fossils!
Re: Ask something - We can help.
« Reply #1620 on: 09 Nov 2017, 18:04 »
and now for a necro-thread-revival!

What anti-virus are you guys running?
I use Avast Free, and I am convinced it hates AGS and causes all kinds of weird crappy behaviour on my computer (ie. massive delay to keystrokes in harmless software like WordPad)
Looking for an alternative...

Cl...

  • Don't listen to me.
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with translating
    •  
Re: Ask something - We can help.
« Reply #1621 on: 09 Nov 2017, 20:11 »
The built-in thing in Windows that keeps changing names. At the point of writing it's called Windows Defender, apparently.

cat

  • Mittens Baronet
  • AGS Baker
  • Now investigating MonoAGS
    • cat worked on a game that was nominated for an AGS Award!
      cat worked on a game that won an AGS Award!
Re: Ask something - We can help.
« Reply #1622 on: 10 Nov 2017, 12:07 »
The built-in thing in Windows that keeps changing names.
This and common sense.

Danvzare

  • The Man with No Name
    • I can help with AGS tutoring
    •  
    • I can help with play testing
    •  
    • I can help with proof reading
    •  
    • I can help with story design
    •  
    • I can help with voice acting
    •  
Re: Ask something - We can help.
« Reply #1623 on: 10 Nov 2017, 13:05 »
The built-in thing in Windows that keeps changing names.
This and common sense.
And an ad-blocker, and that no-script thing.

MiteWiseacreLives!

  • Hold onto your Fossils!
Re: Ask something - We can help.
« Reply #1624 on: 11 Nov 2017, 04:23 »
Thanks guys I’ll take this advice  :)

cat

  • Mittens Baronet
  • AGS Baker
  • Now investigating MonoAGS
    • cat worked on a game that was nominated for an AGS Award!
      cat worked on a game that won an AGS Award!
Re: Ask something - We can help.
« Reply #1625 on: 17 Dec 2017, 17:14 »
Suddenly MIDI does not work on my Win10 PC anymore ??? No matter what MIDI program I use (media player, VLC, midi editing tool), none of them can find the Windows MIDI device.
I have the Microsoft GS Wavetable Synth listed in Device Manager->Software devices, tried to deinstall/install it, still doesn't work.

Does anyone have an idea what can be wrong here?

NicolaGs

  • Going nowhere fast
    • NicolaGs worked on a game that was nominated for an AGS Award!
      NicolaGs worked on a game that won an AGS Award!
Re: Ask something - We can help.
« Reply #1626 on: 17 Dec 2017, 17:35 »
I have no idea about the cause of your problem but I'd use instead an alternative driver such as BASS MIDI driver, that uses Soundfont instruments files and provide a much better MIDI quality than default Windows MIDI driver.

Edit : a good and free soundfont working with the BASS driver can be found here.
« Last Edit: 17 Dec 2017, 21:08 by NicolaGs »
My first game : I Want Out!

cat

  • Mittens Baronet
  • AGS Baker
  • Now investigating MonoAGS
    • cat worked on a game that was nominated for an AGS Award!
      cat worked on a game that won an AGS Award!
Re: Ask something - We can help.
« Reply #1627 on: 18 Dec 2017, 18:46 »
Thanks NicolaGs. I was hoping to get the Windows Synth to work, but I guess I'll try your solution.

need a help - not ags related
« Reply #1628 on: 27 Dec 2017, 19:32 »
guys, I have started learning c language through a book but I am facing some difficulties related to some topics so can anyone help me out
someone who is quite well in c and c++

arj0n

  • Mittens Vassal
  • art consists in drawing a line somewhere
    • arj0n worked on a game that was nominated for an AGS Award!
Re: Ask something - We can help.
« Reply #1629 on: 27 Dec 2017, 20:04 »
Thanks NicolaGs. I was hoping to get the Windows Synth to work, but I guess I'll try your solution.

Here's one I use: the Arachno SoundFont (free download: www.arachnosoft.com/main/soundfont.php)

Why I use this one:
(Quoting from arachnosoft website:) Arachno SoundFont has been primarily built to enhance the MIDI music of these old video games you played and loved.


Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Ask something - We can help.
« Reply #1630 on: 27 Dec 2017, 20:31 »
guys, I have started learning c language through a book but I am facing some difficulties related to some topics so can anyone help me out
someone who is quite well in c and c++

Please be more specific, what topics are these?

Re: Ask something - We can help.
« Reply #1631 on: 28 Dec 2017, 05:47 »
guys, I have started learning c language through a book but I am facing some difficulties related to some topics so can anyone help me out
someone who is quite well in c and c++

Please be more specific, what topics are these?
like pointers and functions
actually I know what they are and how to use them in program but I am having problems in using them

Crimson Wizard

  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Ask something - We can help.
« Reply #1632 on: 28 Dec 2017, 10:43 »
actually I know what they are and how to use them in program but I am having problems in using them

I am still not sure how to help you. You are saying you have problems, but not telling what these problems are.
Maybe you can give an example?
« Last Edit: 28 Dec 2017, 11:36 by Crimson Wizard »

cat

  • Mittens Baronet
  • AGS Baker
  • Now investigating MonoAGS
    • cat worked on a game that was nominated for an AGS Award!
      cat worked on a game that won an AGS Award!
Re: Ask something - We can help.
« Reply #1633 on: 28 Dec 2017, 11:17 »
Here's one I use: the Arachno SoundFont (free download: www.arachnosoft.com/main/soundfont.php)

Which software synth are you using?

Re: Ask something - We can help.
« Reply #1634 on: 28 Dec 2017, 11:43 »

Quote
I am still not sure how to help you. You are saying you have problems, but not telling what these problems are.
Maybe you can give an example?

alright
so to begin with, can you make me understand the working of this code
main()
{
    int yr;
    printf("Enter year");
    scanf("%d", &yr);
    yr = romanise (yr, 1000, 'm');
    similarly for 500, 100, and so on;
}
romanise(int y, int k, char ch)
{
    int i,j;
    if(y==9)
    {
          printf("ix");
          return (y%9);
    }
    if(y==4)
    {
         printf("iv");
         return (y%4);
    }
    j=y/k;
    for(i=1;i<=j;i++)
        printf("%c", ch);
    return(y-k*j);
}
please explain me how is the romanise function is working here
rest I have got
« Last Edit: 28 Dec 2017, 12:11 by amit14 »

arj0n

  • Mittens Vassal
  • art consists in drawing a line somewhere
    • arj0n worked on a game that was nominated for an AGS Award!
Re: Ask something - We can help.
« Reply #1635 on: 28 Dec 2017, 13:56 »
Here's one I use: the Arachno SoundFont (free download: www.arachnosoft.com/main/soundfont.php)

Which software synth are you using?

BassMIDI driver.

Out of my head:
1. Extract the file 'Arachno SoundFont - Version 1.0.sf2'
2. Open 'Configure BassMIDI driver'
3. Load the sf2 file in BassMIDI driver's 'SoundFonts (Port A)' tab and click apply.
3. In the BassMidi Advanced tab:
Vol: around 8000
Default MIDI Synth: SoundFonts (Port A)
Click apply

Done.

Snarky

  • Global Moderator
  • Mittens Earl
  • Private Insultant
    • I can help with proof reading
    •  
    • I can help with translating
    •  
Re: Ask something - We can help.
« Reply #1636 on: 28 Dec 2017, 15:23 »
alright
so to begin with, can you make me understand the working of this code

please explain me how is the romanise function is working here

OK, so this code is meant to print a number in Roman numerals. So we first have to make sure we understand how Roman numerals work.

Basically, you have a set of symbols: M (1000), D (500), C (100), L (50), X (10), V (10) and I (1). Usually, to read a number you just add all the "digits" together. For example, MMXVII = M + M + X + V + I + I = 1000 + 1000 + 10 + 5 + 1 + 1 = 2017. This is the "simple" method, and we always go from the highest to the lowest symbol.

One twist: commonly, instead of writing 4 as IIII and 9 as VIIII, you write it as IV and IX (smaller digit first, meaning you subtract it from the higher digit instead of adding them). You'll sometimes see the same logic applied to 40 (written XL instead of XXXX), 90 (XC instead of LXXXX), 400 (CD instead of CCCC) and 900 (CM instead of DCCCC), but that's more of a modern convention, and this code doesn't do it.

OK, so how do we write a number in this format? It should be pretty obvious, but let's break down the steps:

You start with the highest symbol (M), and see how many times it "fits" into your number. You repeat it that many times (which can be zero), and then move on to the next symbol, fitting it into the part of the number remaining. So for 2017, we ask "how many times does 1000 go into 2017?" The answer is 2, so we write M twice: MM (2000). We subtract 2000 from 2017, leaving 17. Now we ask the same for D (500), C (100) and L (50). In each case, the answer is 0 (all those numbers are bigger than 17), so we don't write anything. When we get to X (10), the answer is 1, so we write a single X after MM: MMX. We subtract 10 from 17, leaving 7, ask how many times V (5) goes into 7 (once), giving MMXV and leaving 2, and finally ask how many times 1 goes into 2 (twice), giving us MMXVII.

And that's pretty much what the code does. It breaks the task down into handling each symbol, which is done by the romanise() function. It takes three arguments: the first (y) is the number you want to write. The second (k) is the value of the symbol you want to try to fit into that number. The third (ch) is the character representation of that symbol that you want to print. The function prints the symbol ch as many times as its value k fits into the number y, and returns how much of the number is left over:

Code: C
  1.     j=y/k; // How many times does k fit into y (divide y by k, rounding down)
  2.     for(i=1;i<=j;i++) // Print the character ch that many times
  3.         printf("%c", ch);
  4.     return(y-k*j); // Return the part of y that is left over (subtract the value of k, multiplied by the number of times we printed it, j)

The rest of the function deals with the fact that 4 and 9 are written differently as special cases. Should be pretty clear, except for one thing: The return values, (y%9) and (y%4), use an operation called modulo. (Which gives the remainder of an integer division. For example, 17%5 = 2 because 17/5 = 3 and 17 - (3*5) = 2.) They will always be equal to 0, and writing them in this format is a little pointless.

So when we call romanise() repeatedly, each call will print a certain symbol a certain number of times, and let us know how much of the number remains to be printed. We feed that value into the next function call (it's important to note that since we write yr = romanise (...) on each line, the value of yr is changing at each step; it's always the remaining part of the number the user entered). We repeat until we're down to 1, and at that point the number is complete:

Code: C
  1. main()
  2. {
  3.     int yr;
  4.     printf("Enter year");
  5.     scanf("%d", &yr);
  6.     yr = romanise (yr, 1000, 'm');
  7.     yr = romanise (yr, 500, 'd');
  8.     yr = romanise (yr, 100, 'c');
  9.     yr = romanise (yr, 50, 'l');
  10.     yr = romanise (yr, 10, 'x');
  11.     yr = romanise (yr, 5, 'v');
  12.     yr = romanise (yr, 1, 'i');
  13. }
« Last Edit: 28 Dec 2017, 15:52 by Snarky »

Re: Ask something - We can help.
« Reply #1637 on: 28 Dec 2017, 17:31 »
thanks for your help
now I have understood it

Re: Ask something - We can help.
« Reply #1638 on: 28 Dec 2017, 18:10 »
Hello! Does anybody know of any 3d modules working in the newer versions of AGS? At least 3.0 onwards. I tried easy-3D, to no avail. 3D-AGS seems to be missing some plugins. I don't even want something too complex; something like doom working on a few rooms is enough (I plan to use it for mini-games, not the whole game). Thanks in advance!

Kweepa

  • Mutated Guano Deviser
    • Best Innovation Award Winner 2009, for his modules and plugins
    •  
    • Kweepa worked on a game that was nominated for an AGS Award!
Re: Ask something - We can help.
« Reply #1639 on: 29 Dec 2017, 00:48 »
Which plugins are missing from AGS-3D?
Still waiting for Purity of the Surf II