Page 1 of 1

Midonik - sounds PASSED

Posted: Sat Sep 23, 2017 6:55 pm
by Stratego (dev)
In AOW there are no sounds implemented yet in json, so
task 1: put in this sound to json form:

the defaultSoundUh means "unit_selected_small4.ogg" file, and its weight is given by its number of occurence - never ask why was it :)


Code: Select all

	
int defaultSoundUh = SoundsDef.addSound("unit_selected_small4.ogg");

	SoundsDef.packs.append(SOUND_PACK_UNIT_SELECT_US_BLD, 
				new int[] { 
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				SoundsDef.addSound("unit_selected_us_yes.ogg"),
				SoundsDef.addSound("unit_selected_us_yes_sir.ogg"),
				SoundsDef.addSound("unit_selected_us_your_orders.ogg"),				
				}

			);

		SoundsDef.packs.append(SOUND_PACK_UNIT_SELECT_GER_BLD, 
				new int[] { 
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh, 
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				defaultSoundUh,
				SoundsDef.addSound("unit_selected_us_yes.ogg"),
				SoundsDef.addSound("unit_selected_us_yes_sir.ogg"),
				SoundsDef.addSound("unit_selected_us_your_orders.ogg"),				
				}

			);


		// -----------------------
		// UNIT DAMAGE
		// -----------------------
		
		
		SoundsDef.packs.append(SOUND_PACK_UNIT_DAMAGE_TANK, 
				new int[] { 
				SoundsDef.addSound("unit_damage_tank.ogg"),
				}
		); 
		SoundsDef.packs.append(SOUND_PACK_UNIT_DAMAGE_VEHICLE, 
				new int[] { 
				SoundsDef.addSound("unit_damage_tank.ogg"),
				}
		); 
		SoundsDef.packs.append(SOUND_PACK_UNIT_DAMAGE_SHIP, 
				new int[] { 
				SoundsDef.addSound("unit_damage_tank.ogg"),
				}
		); 
		SoundsDef.packs.append(SOUND_PACK_UNIT_DAMAGE_PLANE, 
				new int[] { 
				SoundsDef.addSound("unit_damage_tank.ogg"),
				}
		); 
		SoundsDef.packs.append(SOUND_PACK_UNIT_DAMAGE_INF, 
				new int[] { 
				SoundsDef.addSound("unit_damage_tank.ogg"),
				} 
		); 
		SoundsDef.packs.append(SOUND_PACK_UNIT_DAMAGE_FIXED, 
				new int[] { 
				SoundsDef.addSound("unit_damage_tank.ogg"),
				}
		);  
		SoundsDef.packs.append(SOUND_PACK_UNIT_DAMAGE_BLD, 
				new int[] { 
				SoundsDef.addSound("unit_damage_tank.ogg"),
				}
		); 
		
		// -----------------------
		// UNIT MEND/HEAL etc. SOUNDS
		// -----------------------
		
		SoundsDef.packs.append(SOUND_PACK_UNIT_HEAL, 
				new int[] {
				SoundsDef.addSound("unit_action_heal.ogg"),
				}
		);

		SoundsDef.packs.append(SOUND_PACK_UNIT_CONVERT, 
				new int[] {
				SoundsDef.addSound("unit_action_convert.ogg"),
				}
		);
		
		SoundsDef.packs.append(SOUND_PACK_UNIT_MEND_BUILD, 
				new int[] {
				SoundsDef.addSound("unit_action_mend_build.ogg"),
				}
		);

		SoundsDef.packs.append(SOUND_PACK_UNIT_MEND_BUILD, 
				new int[] {
				SoundsDef.addSound("unit_action_mend_build.ogg"),
				}
		);



Re: Midonik - sounds

Posted: Fri Sep 29, 2017 11:11 pm
by Stratego (dev)
any proggress here?

Re: Midonik - sounds

Posted: Fri Oct 06, 2017 6:05 am
by Stratego (dev)
How is it going?

Re: Midonik - sounds

Posted: Mon Oct 09, 2017 5:47 pm
by Stratego (dev)
Hi, are are you about finish this lecture?

Re: Midonik - sounds

Posted: Tue Dec 26, 2017 11:17 am
by Midonik
Ok,I started to make it (by editing Sunrise Samurai json,is it ok?),and I have a question: all units types should have the same sound file (unit_damage_tank.ogg) when damaged?

Re: Midonik - sounds

Posted: Tue Dec 26, 2017 11:42 am
by Midonik
Ok,I think its ready.

Re: Midonik - sounds

Posted: Wed Dec 27, 2017 8:11 am
by Stratego (dev)
"SOUND_PACK_UNIT_CONVERT"
is wrongly embedded into an other sound pack.

here is the current sound json, please add yours here similarily (sort of merging).

Re: Midonik - sounds

Posted: Wed Dec 27, 2017 1:35 pm
by Midonik
Is it good?

Re: Midonik - sounds

Posted: Wed Dec 27, 2017 7:32 pm
by Stratego (dev)
what editor are u using?

Re: Midonik - sounds

Posted: Wed Dec 27, 2017 7:47 pm
by Midonik
JSON editor,its its name.

Re: Midonik - sounds

Posted: Wed Dec 27, 2017 9:07 pm
by Stratego (dev)
could u please use a simple text editor? (that app ruins the nicely aligned, compact textfile that was well readable)

Re: Midonik - sounds

Posted: Wed Dec 27, 2017 9:08 pm
by Midonik
But... it is simply text editor.

Re: Midonik - sounds

Posted: Wed Dec 27, 2017 9:11 pm
by Stratego (dev)
are u using a pc? or phone?

for pc i use the free "TextPad"

Re: Midonik - sounds

Posted: Wed Dec 27, 2017 9:15 pm
by Midonik
Phone.

Re: Midonik - sounds

Posted: Wed Dec 27, 2017 10:37 pm
by Stratego (dev)
ok.
so you dont see that you change the total file by only loading and saving with that app? (it automatically "beautifies" it, that is unwanted - maybe can u turn beautifying off?)

Re: Midonik - sounds

Posted: Thu Dec 28, 2017 8:10 am
by Midonik
Hmm. Can you tell me what does it beatifying? Mayby I make this unintentionally. I were using it all the time.

Re: Midonik - sounds

Posted: Thu Dec 28, 2017 8:41 am
by Stratego (dev)
in your version
- the weights are not in same row with the soundfile
- also check the brackets they are all in separate row instead of being packed nicely.

check the file i attached comparing to yours
(remark: this does not effect the working of a json - these are only beauty things, json can work in any way even without line breaks)

here are samples:

Code: Select all

{
      "packIDString": "SOUND_PACK_UNIT_MOVE_FIXED",
      "items": [
         {
            "fileName": "unit_selected_unit_move_tank.ogg",
            "weight": 1
         }
      ]
   }

Code: Select all

{
	"packIDString": "SOUND_PACK_UNIT_ATTACK_VEHICLE_SHOOT",
	"items": [
		{"fileName": "unit_tank_shoot.ogg", 	"weight": 1}
	]		
}

Re: Midonik - sounds

Posted: Sat Jan 27, 2018 12:57 pm
by Stratego (dev)
i am doing it now as i have to compile aow with it