Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.

Author Topic:  Joes archs  (Read 2285128 times)

0 Members and 1 Guest are viewing this topic.

smacky

« Reply #705 on: 18, August 2020, 12:00:36 »
Makes more sense than it did. :)

But for a mapper the image name are (mostly) irrelevant. They need the arch names.

For example (IIUC):

water_still_deep_fmask.101 became water_still_deep_fmask.101 (so no change)
water_still_deep_fmask.102 became water_still_deep_fmask1.101
water_still_deep_fmask.103 became water_still_deep_fmask2.101
water_still_deep_fmask.104 became water_still_deep_fmask3.101
water_still_deep_fmask.105 became water_still_deep_fmask4.101
etc

Side note .101 or whatever should not be in arch names, just images.

Joe

« Reply #706 on: 19, August 2020, 21:27:13 »
So before I start adding these new water masks, I need to ask what changes I should make to them first.  I see @grommit has updated his maps so I'll grab them first to work on.  Btw welcome back Grommit :)

I originally thought of doing the animations for example water_still_deep.101, water_still_deep.101a, water_still_deep.101b etc but that's just bad practice.  It would however save a TON of map editing... 

These masks had to be animated otherwise we would have nice animated water but the masks would remain sitting still.  That would look a bit silly.  Anyways let me know your thoughts before I get started.  Cheers!

EDIT:
Quote
For example (IIUC):

water_still_deep_fmask.101 became water_still_deep_fmask.101 (so no change)
water_still_deep_fmask.102 became water_still_deep_fmask1.101
water_still_deep_fmask.103 became water_still_deep_fmask2.101
water_still_deep_fmask.104 became water_still_deep_fmask3.101
water_still_deep_fmask.105 became water_still_deep_fmask4.101
etc

Yes that's correct.

The names of the arches should be as shown here:
Code: [Select]
Object water_still_deep_fmask.101
name deep water
face lake_deep_fmask.101
no_teleport 1
layer 2
animation water_still_deep_fmask.101
is_animated 1
anim_speed 2
speed 1
type 28
no_pick 1
end
« Last Edit: 20, August 2020, 02:38:49 by Joe »
Whoever said "Out of sight, out of mind" never had a spider disappear in their bedroom.

grommit

« Reply #707 on: 19, August 2020, 21:40:21 »
Thank you Joe. There are plenty of fmask singularities on my maps so you won't be short of material :)  Don't ask me for any technical help in that area though!

PS: Wondering why Smacky has a German flag - unless he moved!

smacky

« Reply #708 on: 20, August 2020, 12:59:51 »
Joe,

Ideally change the arch (and anim) names to remove '.101'. Also start thr vount one place higher (or lower). So eg:

water_still_deep_fmask.101 became water_still_deep_fmask1
water_still_deep_fmask.102 became water_still_deep_fmask2
water_still_deep_fmask.103 became water_still_deep_fmask3
water_still_deep_fmask.104 became water_still_deep_fmask4
water_still_deep_fmask.105 became water_still_deep_fmask5

The names aren't perfect (too verbose) IMO but they'll do.

Now it's over to a Linux MM.

Here's a really useful script I wrote a few years ago;

Code: [Select]
#!/bin/bash
# repl ARG1 ARG2 ARG3
# ARG1 is a regexp pattern.
# ARG2 is a string.
# ARG3 is a path. If this is a file, only that file is repl'd. If a directory,
# every file below it is repl'd, recursively.
# Where ARG2 is a non-empty string, substitute all instances of ARG1 with ARG2
# in ARG3.
# Where ARG2 is the empty string delete all LINES containg ARG1 in ARG3.
search="$1"
replace="$2"
[ -d "$3" ] && path="$3"/** || path="$3"
[ -z "$replace" ] && cmd="/$search/d" || cmd="s/$search/$replace/g"
echo "repl: $cmd $path"
shopt -s globstar
for f in $path; do
  if [ -f "$f" ]; then
    output=`grep -h --colour=always "$search" "$f"`
    if [ "$?" -eq 0 ]; then
      sed --in-place "$cmd" "$f"
      echo "$f"
      echo "$output"
      if [ ! -z "$replace" ]; then
        echo "    vvvvvvvv"
        grep -h --colour=always "$replace" "$f"
      fi
      echo "    --------"
    fi
  fi
done

So just do

Code: [Select]
repl '\(water_still_deep_fmask\).10\(.\)' '\1\2' daiserv/maps

(and so on for other groups of arches). Do every map in one go, save Joe! ;)

repl will cry about unresolved back refs (because the second grep is looking for \1\2 with no context). Ignore this, it did work.

grommit

« Reply #709 on: 20, August 2020, 13:07:44 »
regexps are so useful. My dashcam creates date folders as dd-mm-yyyy which is useless for sorting a directory listing so I use a clever program called Bulk Rename Utility with a regexp to change them to yyyy-mm-dd

smacky

« Reply #710 on: 20, August 2020, 13:14:55 »
cool! bulk rename might work instead of repl then. Thanks for volunteering for this job!

grommit

« Reply #711 on: 20, August 2020, 13:15:43 »
oops

grommit

« Reply #712 on: 21, August 2020, 11:57:56 »
Happy to have a go if I am told what to do. Meanwhile I have a bit of a problem with plants - I've posted something in chat about it. Probably my fault for not keeping up with the times.

grommit

« Reply #713 on: 09, September 2020, 16:05:24 »
Dunno if this is one of yours, Joe, but I was using the flesh_generic arch for apple mash in Cider World which is now no more so CW is broken. I found a png file which looks like what I would have been using, but it has no .arc file associated. This is arch/items/organic/bodyparts/skin.101.png

grommit

« Reply #714 on: 03, October 2020, 14:51:53 »
Joe are you still around? Could do with advice on what to do with water fmasks. Maybe change the arch names as per Smacky's suggestion in an earlier post. I'll ask in Chat to see what Smacky thinks.

grommit

« Reply #715 on: 13, December 2020, 13:30:21 »
Returning to this subject, there is a slight problem with the new lake png files: they are the same colour as the water they are sitting on, whereas the original mask pngs were a darker shade. This means that with the new faces, they are invisible without animation. I am assuming (hoping) that when animated they will show up once more.

As I have suggested in chat, maybe we should move the new stuff to a safe holding place until Joe can complete the project, and replace them for the time being with the originals. At the moment we have a half-way house which suits nobody.

smacky

« Reply #716 on: 13, December 2020, 14:09:48 »
i agree. should be as simple as copying entire current water dir to mapserv for safekeeping then reverting sf version to 'classic' version.

grommit

« Reply #717 on: 13, December 2020, 16:02:29 »
OK then that will be down to you, Smacky as I don't have privs to write to trunk. I have the originals in my archive if you don't have them available. Will you also be copying to main?

(You'll probably want to create a masks directory below arch (doesn't currently exist) on DaiServ (as I call it) and copy the water directory into that. That will keep the structure the same.)

Then it gets a bit more involved, I think, since archs need to be collected - mappers obviously need to, but do all users need to do that, or is there a one-off collection on the server? Trying to get my head round how it works!
« Last Edit: 13, December 2020, 16:07:41 by grommit »

smacky

« Reply #718 on: 13, December 2020, 16:27:46 »
well i meant just save the new versions anywhere (meaning NOT under arch) on mapserv (mapwiz) to get them out of the way.

then yes, revert trunk and main.

for collecting it's business as usual.

grommit

« Reply #719 on: 14, December 2020, 11:14:07 »
Will you be doing that, then?

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4061 Views
Last post 02, January 2006, 01:36:45
by Slash_Wraith
1 Replies
1859 Views
Last post 05, June 2006, 18:58:15
by Slash_Wraith
6 Replies
2770 Views
Last post 19, April 2006, 00:18:14
by Sherock
6 Replies
3509 Views
Last post 27, August 2006, 22:20:35
by Cleopatra2