| author | ecalot
<ecalot> 2004-10-17 06:40:10 UTC |
| committer | ecalot
<ecalot> 2004-10-17 06:40:10 UTC |
| parent | 04ca9384dfe0f03d3dd7fa76eaded3ad87f8fd47 |
| FP/src/conf/awk/res_conf_files.awk | +47 | -1 |
| FP/src/conf/awk/res_conf_mods.awk | +34 | -1 |
| FP/src/conf/awk/res_conf_parts.awk | +40 | -1 |
| FP/src/conf/awk/res_conf_resources.awk | +31 | -0 |
| FP/src/conf/awk/res_conf_types.awk | +31 | -0 |
| FP/src/conf/awk/states_conf_static.awk | +30 | -0 |
| FP/src/conf/files.conf | +30 | -0 |
| FP/src/conf/mods.conf | +31 | -0 |
| FP/src/conf/parts.conf | +32 | -1 |
| FP/src/conf/resources.conf | +35 | -5 |
| FP/src/conf/states/main.conf | +31 | -1 |
| stuff/FP-Attic/states_conf_properties.awk | +30 | -0 |
| stuff/FP-Attic/statesproperties.conf | +30 | -0 |
diff --git a/FP/src/conf/awk/res_conf_files.awk b/FP/src/conf/awk/res_conf_files.awk index cc36a3b..41d4cca 100644 --- a/FP/src/conf/awk/res_conf_files.awk +++ b/FP/src/conf/awk/res_conf_files.awk @@ -1 +1,47 @@ -BEGIN {res=0} {printf "#define RES_FILE_%s %d\n",$1,res;for (i = 2; i <= NF; i++) {filelist=(filelist coma $i);coma="\",\\\n\t\"";res++}} END {print (" /* numbers */\n#define RES_FILES {\\\n\t\""filelist "\"\\\n}")} +# Princed V3 - Prince of Persia Level Editor for PC Version +# Copyright (C) 2003 Princed Development Team +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# The authors of this program may be contacted at http://forum.princed.com.ar + +# res_conf_files.awk: FreePrince : files.conf parser +# \xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf +# Copyright 2004, 2003 Princed Development Team +# Created: 15 Oct 2004 +# +# Author: Enrique Calot <ecalot.cod@princed.com.ar> +# +# Note: +# DO NOT remove this copyright notice +# + +BEGIN { + res=0 +} + +{ + printf "#define RES_FILE_%s %d\n",$1,res + for (i = 2; i <= NF; i++) { + filelist=(filelist coma $i) + coma="\",\\\n\t\"" + res++ + } +} + +END { + print (" /* numbers */\n#define RES_FILES {\\\n\t\""filelist "\"\\\n}") +} + diff --git a/FP/src/conf/awk/res_conf_mods.awk b/FP/src/conf/awk/res_conf_mods.awk index 79bfeae..1dc74ff 100644 --- a/FP/src/conf/awk/res_conf_mods.awk +++ b/FP/src/conf/awk/res_conf_mods.awk @@ -1 +1,34 @@ -{printf "#define RES_MODS_%s %s\n",$1,$2} +# Princed V3 - Prince of Persia Level Editor for PC Version +# Copyright (C) 2003 Princed Development Team +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# The authors of this program may be contacted at http://forum.princed.com.ar + +# res_conf_mods.awk: FreePrince : mods.conf parser +# \xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf +# Copyright 2004, 2003 Princed Development Team +# Created: 15 Oct 2004 +# +# Author: Enrique Calot <ecalot.cod@princed.com.ar> +# +# Note: +# DO NOT remove this copyright notice +# + +{ + printf "#define RES_MODS_%s %s\n",$1,$2 +} + diff --git a/FP/src/conf/awk/res_conf_parts.awk b/FP/src/conf/awk/res_conf_parts.awk index 3eb6a67..11936e7 100644 --- a/FP/src/conf/awk/res_conf_parts.awk +++ b/FP/src/conf/awk/res_conf_parts.awk @@ -1,3 +1,33 @@ +# Princed V3 - Prince of Persia Level Editor for PC Version +# Copyright (C) 2003 Princed Development Team +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# The authors of this program may be contacted at http://forum.princed.com.ar + +# res_conf_parts.awk: FreePrince : parts.conf parser +# \xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf +# Copyright 2004, 2003 Princed Development Team +# Created: 15 Oct 2004 +# +# Author: Enrique Calot <ecalot.cod@princed.com.ar> +# +# Note: +# DO NOT remove this copyright notice +# + BEGIN { offset=0 printf("\n/* parts */\n") @@ -6,5 +36,14 @@ BEGIN { { start=offset offset=end=$2+offset - printf " /* %s, size=%d */\n#define res_get_part_%s(a) (((a)>>%d)&0x%08x)\n#define res_set_part_%s(a) (((a)&0x%08x)<<%d)\n",$1,$2,$1,start,(2^$2-1),$1,(2^$2-1),start + printf (" /* %s, size=%d */\n#define res_get_part_%s(a) (((a)>>%d)&0x%08x)\n#define res_set_part_%s(a) (((a)&0x%08x)<<%d)\n",\ + $1,\ + $2,\ + $1,\ + start,\ + (2^$2-1),\ + $1,\ + (2^$2-1)\ + ,start\ + ) } diff --git a/FP/src/conf/awk/res_conf_resources.awk b/FP/src/conf/awk/res_conf_resources.awk index 86f068f..d6ba579 100644 --- a/FP/src/conf/awk/res_conf_resources.awk +++ b/FP/src/conf/awk/res_conf_resources.awk @@ -1,3 +1,33 @@ +# Princed V3 - Prince of Persia Level Editor for PC Version +# Copyright (C) 2003 Princed Development Team +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# The authors of this program may be contacted at http://forum.princed.com.ar + +# res_conf_resources.awk: FreePrince : resources.conf parser +# \xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf +# Copyright 2004, 2003 Princed Development Team +# Created: 15 Oct 2004 +# +# Author: Enrique Calot <ecalot.cod@princed.com.ar> +# +# Note: +# DO NOT remove this copyright notice +# + BEGIN { res=0 coma="" @@ -57,6 +87,7 @@ BEGIN { items=0 } } + END { print(" /* define codes */\n#define RES_LIST {" filelist "}\n") } diff --git a/FP/src/conf/awk/res_conf_types.awk b/FP/src/conf/awk/res_conf_types.awk index f5f1c65..ef21d8e 100644 --- a/FP/src/conf/awk/res_conf_types.awk +++ b/FP/src/conf/awk/res_conf_types.awk @@ -1,3 +1,33 @@ +# Princed V3 - Prince of Persia Level Editor for PC Version +# Copyright (C) 2003 Princed Development Team +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# The authors of this program may be contacted at http://forum.princed.com.ar + +# res_conf_types.awk: FreePrince : types.conf parser +# \xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf +# Copyright 2004, 2003 Princed Development Team +# Created: 15 Oct 2004 +# +# Author: Enrique Calot <ecalot.cod@princed.com.ar> +# +# Note: +# DO NOT remove this copyright notice +# + BEGIN { type=0 } @@ -5,3 +35,4 @@ BEGIN { { printf "#define RES_TYPE_%s %d\n",$1,type++ } + diff --git a/FP/src/conf/awk/states_conf_static.awk b/FP/src/conf/awk/states_conf_static.awk index c72cfba..f73481d 100644 --- a/FP/src/conf/awk/states_conf_static.awk +++ b/FP/src/conf/awk/states_conf_static.awk @@ -1,3 +1,33 @@ +# Princed V3 - Prince of Persia Level Editor for PC Version +# Copyright (C) 2003 Princed Development Team +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# The authors of this program may be contacted at http://forum.princed.com.ar + +# states_conf_static.awk: FreePrince : states.conf parser +# \xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf +# Copyright 2004, 2003 Princed Development Team +# Created: 15 Oct 2004 +# +# Author: Enrique Calot <ecalot.cod@princed.com.ar> +# +# Note: +# DO NOT remove this copyright notice +# + BEGIN { currentCondition=-1 currentAction=0 diff --git a/FP/src/conf/files.conf b/FP/src/conf/files.conf index e83d79c..6053a89 100644 --- a/FP/src/conf/files.conf +++ b/FP/src/conf/files.conf @@ -1,3 +1,33 @@ +# Princed V3 - Prince of Persia Level Editor for PC Version +# Copyright (C) 2003 Princed Development Team +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# The authors of this program may be contacted at http://forum.princed.com.ar + +# files.conf: FreePrince : Resource files list +# \xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf +# Copyright 2004, 2003 Princed Development Team +# Created: 15 Aug 2004 +# +# Author: Enrique Calot <ecalot.cod@princed.com.ar> +# +# Note: +# DO NOT remove this copyright notice +# + #files LEVEL levels.dat diff --git a/FP/src/conf/mods.conf b/FP/src/conf/mods.conf index f35ccb9..38d44a4 100644 --- a/FP/src/conf/mods.conf +++ b/FP/src/conf/mods.conf @@ -1,3 +1,33 @@ +# Princed V3 - Prince of Persia Level Editor for PC Version +# Copyright (C) 2003 Princed Development Team +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# The authors of this program may be contacted at http://forum.princed.com.ar + +# mods.conf: FreePrince : Resource mods defines +# \xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf +# Copyright 2004, 2003 Princed Development Team +# Created: 15 Aug 2004 +# +# Author: Enrique Calot <ecalot.cod@princed.com.ar> +# +# Note: +# DO NOT remove this copyright notice +# + INVERT 0x01 BW 0x02 HAS_D 0x04 @@ -7,3 +37,4 @@ WHITE 0x00 RED 0x20 GREEN 0x40 BLUE 0x60 + diff --git a/FP/src/conf/parts.conf b/FP/src/conf/parts.conf index d91286c..3e2f13e 100644 --- a/FP/src/conf/parts.conf +++ b/FP/src/conf/parts.conf @@ -1,6 +1,37 @@ -# this is the distribution the resource number will have +# Princed V3 - Prince of Persia Level Editor for PC Version +# Copyright (C) 2003 Princed Development Team +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# The authors of this program may be contacted at http://forum.princed.com.ar + +# parts.conf: FreePrince : Resource number parts +# \xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf +# Copyright 2004, 2003 Princed Development Team +# Created: 15 Aug 2004 +# +# Author: Enrique Calot <ecalot.cod@princed.com.ar> +# +# Note: +# DO NOT remove this copyright notice +# + +# this is the bit distribution for our resource number mods 8 size 8 from 12 type 3 + diff --git a/FP/src/conf/resources.conf b/FP/src/conf/resources.conf index 0810d54..2fef432 100644 --- a/FP/src/conf/resources.conf +++ b/FP/src/conf/resources.conf @@ -1,8 +1,38 @@ -#resources are -# type LVL: 1 (the first level) -# type IMG: 1 (palette) n (frames) -# type PAL: undefined yet -# type OF(L|R|D): edge offsets, values from -64 to 191. Modifies the next IMG. +# Princed V3 - Prince of Persia Level Editor for PC Version +# Copyright (C) 2003 Princed Development Team +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# The authors of this program may be contacted at http://forum.princed.com.ar + +# resources.conf: FreePrince : Resource list +# \xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf +# Copyright 2004, 2003 Princed Development Team +# Created: 15 Aug 2004 +# +# Author: Enrique Calot <ecalot.cod@princed.com.ar> +# +# Note: +# DO NOT remove this copyright notice +# + +# Resources are +# type LVL: 1 (the first level) +# type IMG: 1 (palette) n (frames) +# type PAL: undefined yet +# type OF(L|R|D): edge offsets, values from -64 to 191. Modifies the next IMG. #define type file resources MAP LVL LEVEL 2000 diff --git a/FP/src/conf/states/main.conf b/FP/src/conf/states/main.conf index a26323f..5110890 100644 --- a/FP/src/conf/states/main.conf +++ b/FP/src/conf/states/main.conf @@ -1,4 +1,33 @@ - #states tree +# Princed V3 - Prince of Persia Level Editor for PC Version +# Copyright (C) 2003 Princed Development Team +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# The authors of this program may be contacted at http://forum.princed.com.ar + +# states.conf: FreePrince : States tree +# \xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf +# Copyright 2004, 2003 Princed Development Team +# Created: 15 Oct 2004 +# +# Author: Enrique Calot <ecalot.cod@princed.com.ar> +# +# Note: +# DO NOT remove this copyright notice +# + normal: action Start walking when it is near a falling conditions # Note that conditions are case sensitive!!! @@ -71,3 +100,4 @@ normalNearToFall: #end + diff --git a/stuff/FP-Attic/states_conf_properties.awk b/stuff/FP-Attic/states_conf_properties.awk index 57eb3cc..9af08bb 100644 --- a/stuff/FP-Attic/states_conf_properties.awk +++ b/stuff/FP-Attic/states_conf_properties.awk @@ -1,3 +1,33 @@ +# Princed V3 - Prince of Persia Level Editor for PC Version +# Copyright (C) 2003 Princed Development Team +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# The authors of this program may be contacted at http://forum.princed.com.ar + +# states_conf_properties.awk: FreePrince : properties.conf parser +# \xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf +# Copyright 2004, 2003 Princed Development Team +# Created: 16 Oct 2004 +# +# Author: Enrique Calot <ecalot.cod@princed.com.ar> +# +# Note: +# DO NOT remove this copyright notice +# + { printf("#define STATES_COND_%s %d\n",$1,$2) } diff --git a/stuff/FP-Attic/statesproperties.conf b/stuff/FP-Attic/statesproperties.conf index 5748cb9..04c1d41 100644 --- a/stuff/FP-Attic/statesproperties.conf +++ b/stuff/FP-Attic/statesproperties.conf @@ -1,3 +1,33 @@ +# Princed V3 - Prince of Persia Level Editor for PC Version +# Copyright (C) 2003 Princed Development Team +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# The authors of this program may be contacted at http://forum.princed.com.ar + +# statesproperties.conf: FreePrince : States properties +# \xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf +# Copyright 2004, 2003 Princed Development Team +# Created: 15 Oct 2004 +# +# Author: Enrique Calot <ecalot.cod@princed.com.ar> +# +# Note: +# DO NOT remove this copyright notice +# + #Key types pressed 1 notPressed 0